From 2f02fac9b5eb06197f1d4c2f0509ff10d2c5ef6c Mon Sep 17 00:00:00 2001 From: Lidiya Dzhumayeva <81679574+lidiyacommercetools@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:44:41 -0500 Subject: [PATCH] FCT-1276-Price keys (#713) * Added keys to prices and added additional prices to variants that use a distribution channel. * Updated test * Delete a product image --- .changeset/few-ghosts-count.md | 5 + .../abigail-lounge-chair-01.spec.ts | 400 ++- .../abigail-lounge-chair-01.ts | 8 + .../amalia-rug-01.spec.ts | 320 +- .../amalia-rug-01.ts | 3 + .../aria-rug-01.spec.ts | 422 +-- .../sample-data-b2c-lifestyle/aria-rug-01.ts | 3 + .../art-deco-chair-01.spec.ts | 320 +- .../art-deco-chair-01.ts | 3 + .../art-deco-coffee-table-01.spec.ts | 388 +-- .../art-deco-coffee-table-01.ts | 3 + .../ashen-rug-01.spec.ts | 358 +- .../sample-data-b2c-lifestyle/ashen-rug-01.ts | 3 + .../ben-pillow-cover-01.spec.ts | 332 +- .../ben-pillow-cover-01.ts | 3 + .../braided-rug-01.spec.ts | 360 +- .../braided-rug-01.ts | 3 + .../bruno-chair-01.spec.ts | 344 +- .../bruno-chair-01.ts | 3 + .../canela-three-seater-sofa-01.spec.ts | 382 +-- .../canela-three-seater-sofa-01.ts | 3 + .../charcoal-chair-01.spec.ts | 376 +-- .../charcoal-chair-01.ts | 3 + .../charlie-armchair-01.spec.ts | 344 +- .../charlie-armchair-01.ts | 3 + .../chianti-wine-glass-01.spec.ts | 344 +- .../chianti-wine-glass-01.ts | 3 + .../classic-beer-mug-01.spec.ts | 344 +- .../classic-beer-mug-01.ts | 3 + .../classic-champagne-glasses-01.spec.ts | 468 +-- .../classic-champagne-glasses-01.ts | 3 + .../classic-coffee-cup-01.spec.ts | 358 +- .../classic-coffee-cup-01.ts | 3 + .../classic-serving-tray-01.spec.ts | 352 +- .../classic-serving-tray-01.ts | 3 + .../clink-champagne-glass-01.spec.ts | 344 +- .../clink-champagne-glass-01.ts | 3 + .../cloud-queen-bed-01.spec.ts | 352 +- .../cloud-queen-bed-01.ts | 3 + .../cobblestone-rug-01.spec.ts | 320 +- .../cobblestone-rug-01.ts | 3 + .../cocktail-shaker-01.spec.ts | 364 +- .../cocktail-shaker-01.ts | 3 + .../cocktail-shaker-set-01.spec.ts | 326 +- .../cocktail-shaker-set-01.ts | 3 + .../cocktail-stirring-spoon-01.spec.ts | 326 +- .../cocktail-stirring-spoon-01.ts | 3 + .../cocktail-strainer-01.spec.ts | 358 +- .../cocktail-strainer-01.ts | 3 + .../cocoa-pillow-cover-01.spec.ts | 326 +- .../cocoa-pillow-cover-01.ts | 3 + .../comfort-coffee-mug-01.spec.ts | 370 ++- .../comfort-coffee-mug-01.ts | 8 + .../cotton-silk-bedsheet-01.spec.ts | 368 +- .../cotton-silk-bedsheet-01.ts | 3 + .../cotton-silk-bedsheet-02.spec.ts | 352 +- .../cotton-silk-bedsheet-02.ts | 3 + .../cotton-silk-bedsheet-03.spec.ts | 352 +- .../cotton-silk-bedsheet-03.ts | 3 + .../cotton-silk-bedsheet-04.spec.ts | 384 +-- .../cotton-silk-bedsheet-04.ts | 3 + .../cotton-silk-bedsheet-05.spec.ts | 384 +-- .../cotton-silk-bedsheet-05.ts | 3 + .../cotton-silk-bedsheet-06.spec.ts | 384 +-- .../cotton-silk-bedsheet-06.ts | 3 + .../cotton-silk-bedsheet-07.spec.ts | 352 +- .../cotton-silk-bedsheet-07.ts | 3 + .../cotton-silk-bedsheet-08.spec.ts | 352 +- .../cotton-silk-bedsheet-08.ts | 3 + .../cotton-silk-bedsheet-09.spec.ts | 352 +- .../cotton-silk-bedsheet-09.ts | 3 + .../cotton-two-seater-sofa-01.spec.ts | 360 +- .../cotton-two-seater-sofa-01.ts | 3 + .../crystal-drinking-glass-01.spec.ts | 320 +- .../crystal-drinking-glass-01.ts | 3 + .../cube-jute-basket-01.spec.ts | 376 ++- .../cube-jute-basket-01.ts | 8 + .../double-sided-shot-glass-01.spec.ts | 326 +- .../double-sided-shot-glass-01.ts | 3 + .../double-walled-espresso-glass-01.spec.ts | 360 +- .../double-walled-espresso-glass-01.ts | 9 +- .../ecru-double-bed-01.spec.ts | 326 +- .../ecru-double-bed-01.ts | 3 + .../edgar-armchair-01.spec.ts | 344 +- .../edgar-armchair-01.ts | 3 + .../ella-square-plate-01.spec.ts | 396 ++- .../ella-square-plate-01.ts | 8 + .../emerald-velvet-chair-01.spec.ts | 344 +- .../emerald-velvet-chair-01.ts | 3 + .../entryway-closet-01.spec.ts | 408 +-- .../entryway-closet-01.ts | 3 + .../evergreen-candle-01.spec.ts | 360 +- .../evergreen-candle-01.ts | 3 + .../fawn-armchair-01.spec.ts | 344 +- .../fawn-armchair-01.ts | 3 + .../geometric-pillow-case-01.spec.ts | 378 +-- .../geometric-pillow-case-01.ts | 3 + .../geometric-pillow-case-02.spec.ts | 378 +-- .../geometric-pillow-case-02.ts | 3 + .../geometric-pillow-case-03.spec.ts | 378 +-- .../geometric-pillow-case-03.ts | 3 + .../glam-armchair-01.spec.ts | 350 +- .../glam-armchair-01.ts | 3 + .../gold-rimmed-champagne-glasses-01.spec.ts | 452 +-- .../gold-rimmed-champagne-glasses-01.ts | 3 + .../green-serving-plate-01.spec.ts | 352 +- .../green-serving-plate-01.ts | 3 + .../harmony-drinking-glass-01.spec.ts | 364 +- .../harmony-drinking-glass-01.ts | 8 + .../harvest-plate-01.spec.ts | 320 +- .../harvest-plate-01.ts | 3 + .../ice-bucket-01.spec.ts | 326 +- .../ice-bucket-01.ts | 3 + .../idun-pillow-cover-01.spec.ts | 370 ++- .../idun-pillow-cover-01.ts | 8 + .../indoor-jute-planter-01.spec.ts | 316 +- .../indoor-jute-planter-01.ts | 3 + .../indoor-jute-planter-02.spec.ts | 316 +- .../indoor-jute-planter-02.ts | 3 + .../ivory-lounge-chair-01.spec.ts | 390 +-- .../ivory-lounge-chair-01.ts | 3 + .../ivory-plate-01.spec.ts | 320 +- .../ivory-plate-01.ts | 3 + .../jute-rug-01.spec.ts | 428 +-- .../sample-data-b2c-lifestyle/jute-rug-01.ts | 8 + .../lana-pillow-cover-01.spec.ts | 332 +- .../lana-pillow-cover-01.ts | 3 + .../large-ceramic-plate-01.spec.ts | 366 +- .../large-ceramic-plate-01.ts | 3 + .../large-ceramic-plate-02.spec.ts | 366 +- .../large-ceramic-plate-02.ts | 3 + .../leah-armchair-01.spec.ts | 344 +- .../leah-armchair-01.ts | 3 + .../leather-coaster-01.spec.ts | 320 +- .../leather-coaster-01.ts | 3 + .../leather-weave-chair-01.spec.ts | 368 +- .../leather-weave-chair-01.ts | 3 + .../luxe-pillow-cover-01.spec.ts | 326 +- .../luxe-pillow-cover-01.ts | 3 + .../marquis-tray-01.spec.ts | 320 +- .../marquis-tray-01.ts | 3 + .../maya-pillow-cover-01.spec.ts | 326 +- .../maya-pillow-cover-01.ts | 3 + .../maya-pillow-cover-02.spec.ts | 326 +- .../maya-pillow-cover-02.ts | 3 + .../meadow-rug-01.spec.ts | 320 +- .../meadow-rug-01.ts | 3 + .../meadow-rug-02.spec.ts | 320 +- .../meadow-rug-02.ts | 3 + .../meadow-rug-03.spec.ts | 320 +- .../meadow-rug-03.ts | 3 + .../minimalist-cedar-nightstand-01.spec.ts | 360 +- .../minimalist-cedar-nightstand-01.ts | 3 + .../minimalist-modern-side-table-01.spec.ts | 356 +- .../minimalist-modern-side-table-01.ts | 3 + .../minimalist-modern-side-table-02.spec.ts | 356 +- .../minimalist-modern-side-table-02.ts | 3 + .../modern-black-coaster-01.spec.ts | 352 +- .../modern-black-coaster-01.ts | 3 + .../modern-bookcase-01.spec.ts | 320 +- .../modern-bookcase-01.ts | 3 + .../modern-ceramic-plate-01.spec.ts | 320 +- .../modern-ceramic-plate-01.ts | 3 + .../modern-glam-dresser-01.spec.ts | 396 +-- .../modern-glam-dresser-01.ts | 3 + .../modern-gold-coffee-table-01.spec.ts | 470 +-- .../modern-gold-coffee-table-01.ts | 3 + .../modern-landscape-painting-01.spec.ts | 332 +- .../modern-landscape-painting-01.ts | 3 + .../modern-three-seater-sofa-01.spec.ts | 452 +-- .../modern-three-seater-sofa-01.ts | 3 + .../modern-upholstered-queen-bed-01.spec.ts | 356 +- .../modern-upholstered-queen-bed-01.ts | 3 + .../modern-upholstered-twin-bed-01.spec.ts | 426 +-- .../modern-upholstered-twin-bed-01.ts | 3 + .../modern-upholstered-twin-bed-02.spec.ts | 426 +-- .../modern-upholstered-twin-bed-02.ts | 3 + .../modern-upholstered-twin-bed-03.spec.ts | 426 +-- .../modern-upholstered-twin-bed-03.ts | 3 + .../modern-upholstered-twin-bed-04.spec.ts | 426 +-- .../modern-upholstered-twin-bed-04.ts | 3 + .../nala-two-seater-sofa-01.spec.ts | 398 +-- .../nala-two-seater-sofa-01.ts | 3 + .../nala-two-seater-sofa-02.spec.ts | 398 +-- .../nala-two-seater-sofa-02.ts | 3 + .../nala-two-seater-sofa-03.spec.ts | 398 +-- .../nala-two-seater-sofa-03.ts | 3 + .../nala-two-seater-sofa-04.spec.ts | 366 +- .../nala-two-seater-sofa-04.ts | 3 + .../nala-two-seater-sofa-05.spec.ts | 398 +-- .../nala-two-seater-sofa-05.ts | 3 + .../nala-two-seater-sofa-06.spec.ts | 366 +- .../nala-two-seater-sofa-06.ts | 3 + .../nala-two-seater-sofa-07.spec.ts | 366 +- .../nala-two-seater-sofa-07.ts | 3 + .../natura-rug-01.spec.ts | 364 +- .../natura-rug-01.ts | 8 + .../opal-king-bed-01.spec.ts | 320 +- .../opal-king-bed-01.ts | 3 + .../orion-double-bed-01.spec.ts | 350 +- .../orion-double-bed-01.ts | 3 + .../patterned-pillow-cover-01.spec.ts | 326 +- .../patterned-pillow-cover-01.ts | 3 + .../patterned-pillow-cover-02.spec.ts | 342 +- .../patterned-pillow-cover-02.ts | 3 + .../pink-abstract-painting-01.spec.ts | 326 +- .../pink-abstract-painting-01.ts | 3 + .../purple-landscape-painting-01.spec.ts | 332 +- .../purple-landscape-painting-01.ts | 3 + ...le-minimalist-abstract-painting-01.spec.ts | 370 ++- .../purple-minimalist-abstract-painting-01.ts | 8 + .../rattan-lounge-chair-01.spec.ts | 376 +-- .../rattan-lounge-chair-01.ts | 3 + .../raven-bowl-01.spec.ts | 320 +- .../raven-bowl-01.ts | 3 + .../rectangle-serving-tray-01.spec.ts | 326 +- .../rectangle-serving-tray-01.ts | 3 + .../red-modern-painting-01.spec.ts | 326 +- .../red-modern-painting-01.ts | 3 + .../round-serving-tray-01.spec.ts | 352 +- .../round-serving-tray-01.ts | 3 + .../rumi-chair-01.spec.ts | 344 +- .../rumi-chair-01.ts | 3 + .../rustic-bowl-01.spec.ts | 320 +- .../rustic-bowl-01.ts | 3 + .../rustic-country-dresser-01.spec.ts | 428 +-- .../rustic-country-dresser-01.ts | 3 + .../rustic-country-queen-bed-01.spec.ts | 356 +- .../rustic-country-queen-bed-01.ts | 3 + .../rustic-oven-casserole-01.spec.ts | 320 +- .../rustic-oven-casserole-01.ts | 3 + .../rye-whiskey-glass-01.spec.ts | 376 +-- .../rye-whiskey-glass-01.ts | 3 + .../sally-armchair-01.spec.ts | 344 +- .../sally-armchair-01.ts | 3 + .../sand-tea-cup-01.spec.ts | 320 +- .../sand-tea-cup-01.ts | 3 + .../serenity-queen-bed-01.spec.ts | 320 +- .../serenity-queen-bed-01.ts | 3 + .../silky-pillow-cover-01.spec.ts | 320 +- .../silky-pillow-cover-01.ts | 3 + .../sipper-coffee-mug-01.spec.ts | 320 +- .../sipper-coffee-mug-01.ts | 3 + .../slate-armchair-01.spec.ts | 352 +- .../slate-armchair-01.ts | 3 + .../small-wooden-bowl-01.spec.ts | 416 +-- .../small-wooden-bowl-01.ts | 3 + .../sparkle-champagne-glass-01.spec.ts | 344 +- .../sparkle-champagne-glass-01.ts | 3 + .../square-bamboo-coaster-01.spec.ts | 326 +- .../square-bamboo-coaster-01.ts | 3 + .../steel-hip-flask-01.spec.ts | 364 +- .../steel-hip-flask-01.ts | 8 + .../stone-serving-tray-01.spec.ts | 320 +- .../stone-serving-tray-01.ts | 3 + .../stout-beer-glass-01.spec.ts | 344 +- .../stout-beer-glass-01.ts | 3 + .../sunnai-glass-bowl-01.spec.ts | 344 +- .../sunnai-glass-bowl-01.ts | 3 + .../sunnai-glass-bowl-02.spec.ts | 344 +- .../sunnai-glass-bowl-02.ts | 3 + .../sweet-pea-candle-01.spec.ts | 414 +-- .../sweet-pea-candle-01.ts | 3 + .../tan-queen-bed-01.spec.ts | 344 +- .../tan-queen-bed-01.ts | 3 + .../teak-serving-platter-01.spec.ts | 326 +- .../teak-serving-platter-01.ts | 3 + .../traditional-armchair-01.spec.ts | 384 +-- .../traditional-armchair-01.ts | 3 + .../traditional-l-seater-sofa-01.spec.ts | 420 +-- .../traditional-l-seater-sofa-01.ts | 3 + .../traditional-three-seater-sofa-01.spec.ts | 420 +-- .../traditional-three-seater-sofa-01.ts | 3 + .../travel-coffee-mug-01.spec.ts | 350 +- .../travel-coffee-mug-01.ts | 3 + .../turner-velvet-armchair-01.spec.ts | 352 +- .../turner-velvet-armchair-01.ts | 3 + .../vanilla-candle-01.spec.ts | 426 +-- .../vanilla-candle-01.ts | 8 + .../walnut-cabinet-01.spec.ts | 396 ++- .../walnut-cabinet-01.ts | 8 + .../walnut-counter-stool-01.spec.ts | 320 +- .../walnut-counter-stool-01.ts | 3 + .../willow-teapot-01.spec.ts | 320 +- .../willow-teapot-01.ts | 3 + .../wilma-chair-01.spec.ts | 376 +-- .../wilma-chair-01.ts | 3 + .../wine-bottle-opener-01.spec.ts | 344 +- .../wine-bottle-opener-01.ts | 3 + .../abigail-lounge-chair.spec.ts | 656 ++-- .../amalia-rug.spec.ts | 560 ++-- .../aria-rug.spec.ts | 662 ++-- .../art-deco-chair.spec.ts | 560 ++-- .../art-deco-coffee-table.spec.ts | 628 ++-- .../ashen-rug.spec.ts | 598 ++-- .../ben-pillow-cover.spec.ts | 556 ++-- .../braided-rug.spec.ts | 600 ++-- .../bruno-chair.spec.ts | 584 ++-- .../canela-three-seater-sofa.spec.ts | 622 ++-- .../charcoal-chair.spec.ts | 616 ++-- .../charlie-armchair.spec.ts | 584 ++-- .../chianti-wine-glass.spec.ts | 584 ++-- .../classic-beer-mug.spec.ts | 584 ++-- .../classic-champagne-glasses.spec.ts | 708 ++-- .../classic-coffee-cup.spec.ts | 598 ++-- .../classic-serving-tray.spec.ts | 608 ++-- .../clink-champagne-glass.spec.ts | 584 ++-- .../cloud-queen-bed.spec.ts | 592 ++-- .../cobblestone-rug.spec.ts | 560 ++-- .../cocktail-shaker-set.spec.ts | 270 +- .../cocktail-shaker.spec.ts | 292 +- .../cocktail-stirring-spoon.spec.ts | 270 +- .../cocktail-strainer.spec.ts | 286 +- .../cocoa-pillow-cover.spec.ts | 262 +- .../comfort-coffee-mug.spec.ts | 291 +- .../cotton-silk-bedsheet.spec.ts | 1820 +++++----- .../cotton-two-seater-sofa.spec.ts | 280 +- .../crystal-drinking-glass.spec.ts | 264 +- .../cube-jute-basket.spec.ts | 297 +- .../double-sided-shot-glass.spec.ts | 270 +- .../double-walled-espresso-glass.spec.ts | 288 +- .../ecru-double-bed.spec.ts | 270 +- .../edgar-armchair.spec.ts | 288 +- .../ella-square-plate.spec.ts | 317 +- .../emerald-velvet-chair.spec.ts | 280 +- .../entryway-closet.spec.ts | 312 +- .../evergreen-candle.spec.ts | 280 +- .../fawn-armchair.spec.ts | 280 +- .../geometric-pillow-case.spec.ts | 1352 ++++---- .../glam-armchair.spec.ts | 590 ++-- .../gold-rimmed-champagne-glasses.spec.ts | 692 ++-- .../green-serving-plate.spec.ts | 608 ++-- .../harmony-drinking-glass.spec.ts | 604 ++-- .../harvest-plate.spec.ts | 592 ++-- .../ice-bucket.spec.ts | 566 ++-- .../idun-pillow-cover.spec.ts | 594 ++-- .../indoor-jute-planter.spec.ts | 858 ++--- .../ivory-lounge-chair.spec.ts | 646 ++-- .../ivory-plate.spec.ts | 608 ++-- .../jute-rug.spec.ts | 668 ++-- .../lana-pillow-cover.spec.ts | 556 ++-- .../large-ceramic-plate.spec.ts | 970 +++--- .../leah-armchair.spec.ts | 584 ++-- .../leather-coaster.spec.ts | 560 ++-- .../leather-weave-chair.spec.ts | 608 ++-- .../luxe-pillow-cover.spec.ts | 550 +-- .../marquis-tray.spec.ts | 608 ++-- .../maya-pillow-cover.spec.ts | 864 ++--- .../meadow-rug.spec.ts | 1182 +++---- .../minimalist-cedar-nightstand.spec.ts | 664 ++-- .../minimalist-modern-side-table.spec.ts | 984 +++--- .../modern-black-coaster.spec.ts | 592 ++-- .../modern-bookcase.spec.ts | 608 ++-- .../modern-ceramic-plate.spec.ts | 608 ++-- .../modern-glam-dresser.spec.ts | 668 ++-- .../modern-gold-coffee-table.spec.ts | 742 ++--- .../modern-landscape-painting.spec.ts | 572 ++-- .../modern-three-seater-sofa.spec.ts | 724 ++-- .../modern-upholstered-queen-bed.spec.ts | 628 ++-- .../modern-upholstered-twin-bed.spec.ts | 1970 +++++------ .../nala-two-seater-sofa.spec.ts | 2956 ++++++++--------- .../natura-rug.spec.ts | 604 ++-- .../opal-king-bed.spec.ts | 560 ++-- .../orion-double-bed.spec.ts | 590 ++-- .../patterned-pillow-cover.spec.ts | 878 ++--- .../pink-abstract-painting.spec.ts | 566 ++-- .../purple-landscape-painting.spec.ts | 572 ++-- ...urple-minimalist-abstract-painting.spec.ts | 610 ++-- .../rattan-lounge-chair.spec.ts | 616 ++-- .../raven-bowl.spec.ts | 576 ++-- .../rectangle-serving-tray.spec.ts | 582 ++-- .../red-modern-painting.spec.ts | 566 ++-- .../round-serving-tray.spec.ts | 624 ++-- .../rumi-chair.spec.ts | 584 ++-- .../rustic-bowl.spec.ts | 508 +-- .../rustic-country-dresser.spec.ts | 668 ++-- .../rustic-country-queen-bed.spec.ts | 612 ++-- .../rustic-oven-casserole.spec.ts | 508 +-- .../rye-whiskey-glass.spec.ts | 616 ++-- .../sally-armchair.spec.ts | 584 ++-- .../sand-tea-cup.spec.ts | 560 ++-- .../serenity-queen-bed.spec.ts | 560 ++-- .../silky-pillow-cover.spec.ts | 544 +-- .../sipper-coffee-mug.spec.ts | 560 ++-- .../slate-armchair.spec.ts | 592 ++-- .../small-wooden-bowl.spec.ts | 688 ++-- .../sparkle-champagne-glass.spec.ts | 584 ++-- .../square-bamboo-coaster.spec.ts | 566 ++-- .../steel-hip-flask.spec.ts | 604 ++-- .../stone-serving-tray.spec.ts | 608 ++-- .../stout-beer-glass.spec.ts | 584 ++-- .../sunnai-glass-bowl.spec.ts | 960 +++--- .../sweet-pea-candle.spec.ts | 654 ++-- .../tan-queen-bed.spec.ts | 584 ++-- .../teak-serving-platter.spec.ts | 582 ++-- .../traditional-armchair.spec.ts | 656 ++-- .../traditional-l-seater-sofa.spec.ts | 692 ++-- .../traditional-three-seater-sofa.spec.ts | 708 ++-- .../travel-coffee-mug.spec.ts | 590 ++-- .../turner-velvet-armchair.spec.ts | 592 ++-- .../vanilla-candle.spec.ts | 666 ++-- .../walnut-cabinet.spec.ts | 636 ++-- .../walnut-counter-stool.spec.ts | 592 ++-- .../willow-teapot.spec.ts | 576 ++-- .../wilma-chair.spec.ts | 616 ++-- .../wine-bottle-opener.spec.ts | 584 ++-- 406 files changed, 63214 insertions(+), 62030 deletions(-) create mode 100644 .changeset/few-ghosts-count.md diff --git a/.changeset/few-ghosts-count.md b/.changeset/few-ghosts-count.md new file mode 100644 index 000000000..1c092979b --- /dev/null +++ b/.changeset/few-ghosts-count.md @@ -0,0 +1,5 @@ +--- +'@commercetools-test-data/product': minor +--- + +Updated prices to include keys and added new prices for those variants that used a distribution channel specific price diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair-01.spec.ts index 31a0e6f5b..34798fde6 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair-01.spec.ts @@ -6,195 +6,227 @@ describe(`with abigailLoungeChair01 preset`, () => { const abigailLoungeChair01Preset = abigailLoungeChair01().build(); expect(abigailLoungeChair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Wird mit passendem Kissen geliefert -- Samtpolsterung -- Wird zusammengebaut geliefert", - "en-GB": "- Comes with matching throw pillow -- Velvet upholstery -- Pre-assembled", - "en-US": "- Comes with matching throw pillow -- Velvet upholstery -- Pre-assembled", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Abigail_Lounge_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 75000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 75000, - "currencyCode": "GBP", - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 75000, - "currencyCode": "USD", - }, - }, - ], - "sku": "ALC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Wird mit passendem Kissen geliefert + - Samtpolsterung + - Wird zusammengebaut geliefert", + "en-GB": "- Comes with matching throw pillow + - Velvet upholstery + - Pre-assembled", + "en-US": "- Comes with matching throw pillow + - Velvet upholstery + - Pre-assembled", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Abigail_Lounge_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 75000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 75000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "70000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 70000, + "currencyCode": "USD", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 75000, + "currencyCode": "USD", + }, + }, + ], + "sku": "ALC-01", + } + `); }); it(`should return a abigailLoungeChair01 preset when built for graphql`, () => { const abigailLoungeChair01PresetGraphql = abigailLoungeChair01().buildGraphql(); expect(abigailLoungeChair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Light Pink:#FFB6C1","en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1"}", - }, - { - "name": "finish", - "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Comes with matching throw pillow\\n- Velvet upholstery\\n- Pre-assembled","en-GB":"- Comes with matching throw pillow\\n- Velvet upholstery\\n- Pre-assembled","de-DE":"- Wird mit passendem Kissen geliefert\\n- Samtpolsterung\\n- Wird zusammengebaut geliefert"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Abigail_Lounge_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 75000, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 75000, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 75000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "ALC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Light Pink:#FFB6C1","en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1"}", + }, + { + "name": "finish", + "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Comes with matching throw pillow\\n- Velvet upholstery\\n- Pre-assembled","en-GB":"- Comes with matching throw pillow\\n- Velvet upholstery\\n- Pre-assembled","de-DE":"- Wird mit passendem Kissen geliefert\\n- Samtpolsterung\\n- Wird zusammengebaut geliefert"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Abigail_Lounge_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 75000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 75000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "70000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 70000, + "currencyCode": "USD", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 75000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ALC-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair-01.ts index ea575fae9..81da52d77 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair-01.ts @@ -20,14 +20,22 @@ const abigailLoungeChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('75000EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(75000)) .country('DE'), PriceDraft.presets .empty() + .key('75000GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(75000)) .country('GB'), PriceDraft.presets .empty() + .key('70000USD') + .value(MoneyDraft.random().currencyCode('USD').centAmount(70000)) + .country('US'), + PriceDraft.presets + .empty() + .key('75000USD_dist') .value(MoneyDraft.random().currencyCode('USD').centAmount(75000)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/amalia-rug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/amalia-rug-01.spec.ts index 51bcb6818..065f28614 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/amalia-rug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/amalia-rug-01.spec.ts @@ -5,171 +5,171 @@ describe(`with amaliaRug01 preset`, () => { it(`should return a amaliaRug01 preset`, () => { const amaliaRug01Preset = amaliaRug01().build(); expect(amaliaRug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 6 Fuß x 6 Fuß", - "en-GB": "- 6ft x 6ft", - "en-US": "- 6ft x 6ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Amalia_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 13999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 13999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 13999, - "currencyCode": "USD", - }, - }, - ], - "sku": "AMR-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 6 Fuß x 6 Fuß", + "en-GB": "- 6ft x 6ft", + "en-US": "- 6ft x 6ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Amalia_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 13999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 13999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 13999, + "currencyCode": "USD", + }, + }, + ], + "sku": "AMR-09", + } + `); }); it(`should return a amaliaRug01 preset when built for graphql`, () => { const amaliaRug01PresetGraphql = amaliaRug01().buildGraphql(); expect(amaliaRug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 6ft x 6ft","de-DE":"- 6 Fuß x 6 Fuß","en-US":"- 6ft x 6ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Amalia_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 13999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 13999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 13999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "AMR-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 6ft x 6ft","de-DE":"- 6 Fuß x 6 Fuß","en-US":"- 6ft x 6ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Amalia_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 13999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 13999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 13999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "AMR-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/amalia-rug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/amalia-rug-01.ts index 50ef4335c..0f867c30c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/amalia-rug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/amalia-rug-01.ts @@ -11,14 +11,17 @@ const amaliaRug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('13999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(13999)) .country('DE'), PriceDraft.presets .empty() + .key('13999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(13999)) .country('GB'), PriceDraft.presets .empty() + .key('13999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(13999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/aria-rug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/aria-rug-01.spec.ts index 4b3970a5b..c7f166bb9 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/aria-rug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/aria-rug-01.spec.ts @@ -5,222 +5,222 @@ describe(`with ariaRug01 preset`, () => { it(`should return a ariaRug01 preset`, () => { const ariaRug01Preset = ariaRug01().build(); expect(ariaRug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung -- 5 Fuß x 7 Fuß", - "en-GB": "- Dry clean only -- 5ft x 7ft", - "en-US": "- Dry clean only -- 5ft x 7ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Elfenbein:#FFFFF0", - "en-GB": "Ivory:#FFFFF0", - "en-US": "Ivory:#FFFFF0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3900, - "w": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.1.jpeg", - }, - { - "dimensions": { - "h": 3900, - "w": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.2.jpeg", - }, - { - "dimensions": { - "h": 3900, - "w": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.4.jpeg", - }, - { - "dimensions": { - "h": 3900, - "w": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12499, - "currencyCode": "USD", - }, - }, - ], - "sku": "AAR-34", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung + - 5 Fuß x 7 Fuß", + "en-GB": "- Dry clean only + - 5ft x 7ft", + "en-US": "- Dry clean only + - 5ft x 7ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Elfenbein:#FFFFF0", + "en-GB": "Ivory:#FFFFF0", + "en-US": "Ivory:#FFFFF0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3900, + "w": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.1.jpeg", + }, + { + "dimensions": { + "h": 3900, + "w": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.2.jpeg", + }, + { + "dimensions": { + "h": 3900, + "w": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.4.jpeg", + }, + { + "dimensions": { + "h": 3900, + "w": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12499, + "currencyCode": "USD", + }, + }, + ], + "sku": "AAR-34", + } + `); }); it(`should return a ariaRug01 preset when built for graphql`, () => { const ariaRug01PresetGraphql = ariaRug01().buildGraphql(); expect(ariaRug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only\\n- 5ft x 7ft","de-DE":"- Nur chemische Reinigung\\n- 5 Fuß x 7 Fuß","en-US":"- Dry clean only\\n- 5ft x 7ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3900, - "width": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.1.jpeg", - }, - { - "dimensions": { - "height": 3900, - "width": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.2.jpeg", - }, - { - "dimensions": { - "height": 3900, - "width": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.4.jpeg", - }, - { - "dimensions": { - "height": 3900, - "width": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "AAR-34", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only\\n- 5ft x 7ft","de-DE":"- Nur chemische Reinigung\\n- 5 Fuß x 7 Fuß","en-US":"- Dry clean only\\n- 5ft x 7ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3900, + "width": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.1.jpeg", + }, + { + "dimensions": { + "height": 3900, + "width": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.2.jpeg", + }, + { + "dimensions": { + "height": 3900, + "width": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.4.jpeg", + }, + { + "dimensions": { + "height": 3900, + "width": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "AAR-34", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/aria-rug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/aria-rug-01.ts index 974795815..4faba5336 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/aria-rug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/aria-rug-01.ts @@ -11,14 +11,17 @@ const ariaRug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('12499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(12499)) .country('DE'), PriceDraft.presets .empty() + .key('12499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(12499)) .country('GB'), PriceDraft.presets .empty() + .key('12499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(12499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-chair-01.spec.ts index 8b1c9bbf0..4bc1c493d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-chair-01.spec.ts @@ -5,171 +5,171 @@ describe(`with artDecoChair01 preset`, () => { it(`should return a artDecoChair01 preset`, () => { const artDecoChair01Preset = artDecoChair01().build(); expect(artDecoChair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Montage bei Lieferung", - "en-GB": "- Assembly on delivery", - "en-US": "- Assembly on delivery", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Grau:#808080", - "en-GB": "Grey:#808080", - "en-US": "Gray:#808080", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - ], - "sku": "ADARM-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage bei Lieferung", + "en-GB": "- Assembly on delivery", + "en-US": "- Assembly on delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grau:#808080", + "en-GB": "Grey:#808080", + "en-US": "Gray:#808080", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "ADARM-04", + } + `); }); it(`should return a artDecoChair01 preset when built for graphql`, () => { const artDecoChair01PresetGraphql = artDecoChair01().buildGraphql(); expect(artDecoChair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly on delivery","de-DE":"- Montage bei Lieferung","en-US":"- Assembly on delivery"}", - }, - { - "name": "color", - "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "ADARM-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly on delivery","de-DE":"- Montage bei Lieferung","en-US":"- Assembly on delivery"}", + }, + { + "name": "color", + "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ADARM-04", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-chair-01.ts index 78bbacae8..b5f3c3904 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-chair-01.ts @@ -11,14 +11,17 @@ const artDecoChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('39900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(39900)) .country('DE'), PriceDraft.presets .empty() + .key('39900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(39900)) .country('GB'), PriceDraft.presets .empty() + .key('39900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(39900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table-01.spec.ts index be5517942..8d3f700b3 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table-01.spec.ts @@ -6,205 +6,205 @@ describe(`with artDecoCoffeeTable01 preset`, () => { const artDecoCoffeeTable01Preset = artDecoCoffeeTable01().build(); expect(artDecoCoffeeTable01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Granite top -- 5ft by 3ft by 2ft -- Preassembled", - "en-GB": "- Granite top -- 5ft by 3ft by 2ft -- Preassembled", - "en-US": "- Granite top -- 5ft by 3ft by 2ft -- Preassembled", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 320000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 320000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 320000, - "currencyCode": "USD", - }, - }, - ], - "sku": "ADCT-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Granite top + - 5ft by 3ft by 2ft + - Preassembled", + "en-GB": "- Granite top + - 5ft by 3ft by 2ft + - Preassembled", + "en-US": "- Granite top + - 5ft by 3ft by 2ft + - Preassembled", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 320000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 320000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 320000, + "currencyCode": "USD", + }, + }, + ], + "sku": "ADCT-01", + } + `); }); it(`should return a artDecoCoffeeTable01 preset when built for graphql`, () => { const artDecoCoffeeTable01PresetGraphql = artDecoCoffeeTable01().buildGraphql(); expect(artDecoCoffeeTable01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled","en-GB":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled","de-DE":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled"}", - }, - { - "name": "color", - "value": "{"en-US":"Black:#000000","en-GB":"Black:#000000","de-DE":"Schwarz:#000000"}", - }, - { - "name": "finish", - "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 320000, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 320000, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 320000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "ADCT-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled","en-GB":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled","de-DE":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled"}", + }, + { + "name": "color", + "value": "{"en-US":"Black:#000000","en-GB":"Black:#000000","de-DE":"Schwarz:#000000"}", + }, + { + "name": "finish", + "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 320000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 320000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 320000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ADCT-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table-01.ts index 563422705..9419f546d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table-01.ts @@ -11,14 +11,17 @@ const artDecoCoffeeTable01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('320000EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(320000)) .country('DE'), PriceDraft.presets .empty() + .key('320000GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(320000)) .country('GB'), PriceDraft.presets .empty() + .key('320000USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(320000)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ashen-rug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ashen-rug-01.spec.ts index 72f480834..a51d98568 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ashen-rug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ashen-rug-01.spec.ts @@ -5,190 +5,190 @@ describe(`with ashenRug01 preset`, () => { it(`should return a ashenRug01 preset`, () => { const ashenRug01Preset = ashenRug01().build(); expect(ashenRug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 5 Fuß x 7 Fuß -- Nur chemische Reinigung", - "en-GB": "- 5ft x 7ft -- Dry-clean only", - "en-US": "- 5ft x 7ft -- Dry-clean only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Gainsboro:#dcdcdc", - "en-GB": "Gainsboro:#dcdcdc", - "en-US": "Gainsboro:#dcdcdc", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.1.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 25000, - "currencyCode": "USD", - }, - }, - ], - "sku": "ARG-56", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 5 Fuß x 7 Fuß + - Nur chemische Reinigung", + "en-GB": "- 5ft x 7ft + - Dry-clean only", + "en-US": "- 5ft x 7ft + - Dry-clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Gainsboro:#dcdcdc", + "en-GB": "Gainsboro:#dcdcdc", + "en-US": "Gainsboro:#dcdcdc", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.1.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 25000, + "currencyCode": "USD", + }, + }, + ], + "sku": "ARG-56", + } + `); }); it(`should return a ashenRug01 preset when built for graphql`, () => { const ashenRug01PresetGraphql = ashenRug01().buildGraphql(); expect(ashenRug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 5ft x 7ft\\n- Dry-clean only","de-DE":"- 5 Fuß x 7 Fuß\\n- Nur chemische Reinigung","en-US":"- 5ft x 7ft\\n- Dry-clean only"}", - }, - { - "name": "color", - "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.1.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 25000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "ARG-56", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 5ft x 7ft\\n- Dry-clean only","de-DE":"- 5 Fuß x 7 Fuß\\n- Nur chemische Reinigung","en-US":"- 5ft x 7ft\\n- Dry-clean only"}", + }, + { + "name": "color", + "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.1.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 25000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ARG-56", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ashen-rug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ashen-rug-01.ts index 6dc5d14df..669115507 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ashen-rug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ashen-rug-01.ts @@ -11,14 +11,17 @@ const ashenRug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('19999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(19999)) .country('DE'), PriceDraft.presets .empty() + .key('19999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(19999)) .country('GB'), PriceDraft.presets .empty() + .key('19999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(25000)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover-01.spec.ts index 83ca2ee5f..8b0cf2d53 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover-01.spec.ts @@ -6,177 +6,177 @@ describe(`with benPillowCover01 preset`, () => { const benPillowCover01Preset = benPillowCover01().build(); expect(benPillowCover01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Bezug ist abnehmbar -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine-washable -- Cover is removable -- Does not include pillow", - "en-US": "- Machine-washable -- Cover is removable -- Does not include pillow", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ben_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - ], - "sku": "LBPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Bezug ist abnehmbar + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine-washable + - Cover is removable + - Does not include pillow", + "en-US": "- Machine-washable + - Cover is removable + - Does not include pillow", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ben_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "LBPC-09", + } + `); }); it(`should return a benPillowCover01 preset when built for graphql`, () => { const benPillowCover01PresetGraphql = benPillowCover01().buildGraphql(); expect(benPillowCover01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine-washable\\n- Cover is removable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Bezug ist abnehmbar\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine-washable\\n- Cover is removable\\n- Does not include pillow"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ben_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "LBPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine-washable\\n- Cover is removable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Bezug ist abnehmbar\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine-washable\\n- Cover is removable\\n- Does not include pillow"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ben_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LBPC-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover-01.ts index 131fb6bb7..57be512d0 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover-01.ts @@ -11,14 +11,17 @@ const benPillowCover01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1299)) .country('DE'), PriceDraft.presets .empty() + .key('1299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1299)) .country('GB'), PriceDraft.presets .empty() + .key('1299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/braided-rug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/braided-rug-01.spec.ts index fcbc0ed08..00e2c3f97 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/braided-rug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/braided-rug-01.spec.ts @@ -5,191 +5,191 @@ describe(`with braidedRug preset`, () => { it(`should return a braidedRug preset`, () => { const braidedRugPreset = braidedRug().build(); expect(braidedRugPreset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4720, - "w": 4924, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.1.jpeg", - }, - { - "dimensions": { - "h": 3373, - "w": 5060, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.3.jpeg", - }, - { - "dimensions": { - "h": 3685, - "w": 5527, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9999, - "currencyCode": "USD", - }, - }, - ], - "sku": "BR-0983", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4720, + "w": 4924, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.1.jpeg", + }, + { + "dimensions": { + "h": 3373, + "w": 5060, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.3.jpeg", + }, + { + "dimensions": { + "h": 3685, + "w": 5527, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9999, + "currencyCode": "USD", + }, + }, + ], + "sku": "BR-0983", + } + `); }); it(`should return a braidedRug preset when built for graphql`, () => { const braidedRugPresetGraphql = braidedRug().buildGraphql(); expect(braidedRugPresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4720, - "width": 4924, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.1.jpeg", - }, - { - "dimensions": { - "height": 3373, - "width": 5060, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.3.jpeg", - }, - { - "dimensions": { - "height": 3685, - "width": 5527, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "BR-0983", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4720, + "width": 4924, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.1.jpeg", + }, + { + "dimensions": { + "height": 3373, + "width": 5060, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.3.jpeg", + }, + { + "dimensions": { + "height": 3685, + "width": 5527, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BR-0983", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/braided-rug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/braided-rug-01.ts index a427be984..37edecb86 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/braided-rug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/braided-rug-01.ts @@ -11,14 +11,17 @@ const braidedRug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('9999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(9999)) .country('DE'), PriceDraft.presets .empty() + .key('9999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(9999)) .country('GB'), PriceDraft.presets .empty() + .key('9999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(9999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/bruno-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/bruno-chair-01.spec.ts index c547d1341..c3dd887fd 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/bruno-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/bruno-chair-01.spec.ts @@ -5,183 +5,183 @@ describe(`with brunoChair preset`, () => { it(`should return a brunoChair preset`, () => { const brunoChairPreset = brunoChair().build(); expect(brunoChairPreset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Beinhaltet 1 Stuhl", - "en-GB": "- Includes 1 chair", - "en-US": "- Includes 1 chair", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Königs blau:#4169E1", - "en-GB": "Royal Blue:#4169E1", - "en-US": "Royal Blue:#4169E1", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4315, - "w": 6473, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Bruno_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7999, - "currencyCode": "USD", - }, - }, - ], - "sku": "BARM-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Beinhaltet 1 Stuhl", + "en-GB": "- Includes 1 chair", + "en-US": "- Includes 1 chair", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Königs blau:#4169E1", + "en-GB": "Royal Blue:#4169E1", + "en-US": "Royal Blue:#4169E1", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4315, + "w": 6473, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Bruno_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7999, + "currencyCode": "USD", + }, + }, + ], + "sku": "BARM-03", + } + `); }); it(`should return a brunoChair preset when built for graphql`, () => { const brunoChairPresetGraphql = brunoChair().buildGraphql(); expect(brunoChairPresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 chair","de-DE":"- Beinhaltet 1 Stuhl","en-US":"- Includes 1 chair"}", - }, - { - "name": "color", - "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4315, - "width": 6473, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Bruno_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "BARM-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 chair","de-DE":"- Beinhaltet 1 Stuhl","en-US":"- Includes 1 chair"}", + }, + { + "name": "color", + "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4315, + "width": 6473, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Bruno_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BARM-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/bruno-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/bruno-chair-01.ts index 70871568c..9bd5cdaa7 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/bruno-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/bruno-chair-01.ts @@ -11,14 +11,17 @@ const brunoChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('7999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(7999)) .country('DE'), PriceDraft.presets .empty() + .key('7999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(7999)) .country('GB'), PriceDraft.presets .empty() + .key('7999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(7999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa-01.spec.ts index 53d952035..d7e10c6b6 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa-01.spec.ts @@ -6,202 +6,202 @@ describe(`with canelaThreeSeaterSofa01 preset`, () => { const canelaThreeSeaterSofa01Preset = canelaThreeSeaterSofa01().build(); expect(canelaThreeSeaterSofa01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Lederpolsterung -- 3-Sitzer", - "en-GB": "- Leather upholstery -- 3 seater", - "en-US": "- Leather upholstery -- 3 seater", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Peru:#CD853F", - "en-GB": "Peru:#CD853F", - "en-US": "Peru:#CD853F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3353, - "w": 5029, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 780, - "w": 1170, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "USD", - }, - }, - ], - "sku": "CTSS-098", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Lederpolsterung + - 3-Sitzer", + "en-GB": "- Leather upholstery + - 3 seater", + "en-US": "- Leather upholstery + - 3 seater", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Peru:#CD853F", + "en-GB": "Peru:#CD853F", + "en-US": "Peru:#CD853F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3353, + "w": 5029, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 780, + "w": 1170, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CTSS-098", + } + `); }); it(`should return a canelaThreeSeaterSofa01 preset when built for graphql`, () => { const canelaThreeSeaterSofa01PresetGraphql = canelaThreeSeaterSofa01().buildGraphql(); expect(canelaThreeSeaterSofa01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Leather upholstery \\n- 3 seater","de-DE":"- Lederpolsterung\\n- 3-Sitzer","en-US":"- Leather upholstery \\n- 3 seater"}", - }, - { - "name": "color", - "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3353, - "width": 5029, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "height": 780, - "width": 1170, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CTSS-098", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Leather upholstery \\n- 3 seater","de-DE":"- Lederpolsterung\\n- 3-Sitzer","en-US":"- Leather upholstery \\n- 3 seater"}", + }, + { + "name": "color", + "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3353, + "width": 5029, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "height": 780, + "width": 1170, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CTSS-098", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa-01.ts index 02f01895d..29a7c67cb 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa-01.ts @@ -11,14 +11,17 @@ const canelaThreeSeaterSofa01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('259900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(259900)) .country('DE'), PriceDraft.presets .empty() + .key('259900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(259900)) .country('GB'), PriceDraft.presets .empty() + .key('259900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(259900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charcoal-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charcoal-chair-01.spec.ts index 68a518b4e..e31b00973 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charcoal-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charcoal-chair-01.spec.ts @@ -6,199 +6,199 @@ describe(`with charcoalChair01 preset`, () => { const charcoalChair01Preset = charcoalChair01().build(); expect(charcoalChair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Beinhaltet 1 Stuhl", - "en-GB": "- Includes 1 chair", - "en-US": "- Includes 1 chair", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Dunkles Schiefer grau:#2F4F4F", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Dark Slate Gray:#2F4F4F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5309, - "w": 3300, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.2.jpeg", - }, - { - "dimensions": { - "h": 5906, - "w": 5906, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9900, - "currencyCode": "USD", - }, - }, - ], - "sku": "CCH-093", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Beinhaltet 1 Stuhl", + "en-GB": "- Includes 1 chair", + "en-US": "- Includes 1 chair", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Dunkles Schiefer grau:#2F4F4F", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Dark Slate Gray:#2F4F4F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5309, + "w": 3300, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.2.jpeg", + }, + { + "dimensions": { + "h": 5906, + "w": 5906, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCH-093", + } + `); }); it(`should return a charcoalChair01 preset when built for graphql`, () => { const charcoalChair01PresetGraphql = charcoalChair01().buildGraphql(); expect(charcoalChair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 chair","de-DE":"- Beinhaltet 1 Stuhl","en-US":"- Includes 1 chair"}", - }, - { - "name": "color", - "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F","en-US":"Dark Slate Gray:#2F4F4F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5309, - "width": 3300, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.2.jpeg", - }, - { - "dimensions": { - "height": 5906, - "width": 5906, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CCH-093", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 chair","de-DE":"- Beinhaltet 1 Stuhl","en-US":"- Includes 1 chair"}", + }, + { + "name": "color", + "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F","en-US":"Dark Slate Gray:#2F4F4F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5309, + "width": 3300, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.2.jpeg", + }, + { + "dimensions": { + "height": 5906, + "width": 5906, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CCH-093", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charcoal-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charcoal-chair-01.ts index ac667ee79..2c07f2bdb 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charcoal-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charcoal-chair-01.ts @@ -11,14 +11,17 @@ const charcoalChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('9900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(9900)) .country('DE'), PriceDraft.presets .empty() + .key('9900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(9900)) .country('GB'), PriceDraft.presets .empty() + .key('9900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(9900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charlie-armchair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charlie-armchair-01.spec.ts index db9b5fd13..6135d0f60 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charlie-armchair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charlie-armchair-01.spec.ts @@ -6,183 +6,183 @@ describe(`with charlieArmchair01 preset`, () => { const charlieArmchair01Preset = charlieArmchair01().build(); expect(charlieArmchair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Peru:#CD853F", - "en-GB": "Peru:#CD853F", - "en-US": "Peru:#CD853F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charlie_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 49900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 49900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 49900, - "currencyCode": "USD", - }, - }, - ], - "sku": "CARM-023", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Peru:#CD853F", + "en-GB": "Peru:#CD853F", + "en-US": "Peru:#CD853F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charlie_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 49900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 49900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 49900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CARM-023", + } + `); }); it(`should return a charlieArmchair01 preset when built for graphql`, () => { const charlieArmchair01PresetGraphql = charlieArmchair01().buildGraphql(); expect(charlieArmchair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", - }, - { - "name": "color", - "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charlie_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 49900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 49900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 49900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CARM-023", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", + }, + { + "name": "color", + "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charlie_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 49900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 49900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 49900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CARM-023", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charlie-armchair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charlie-armchair-01.ts index 9757e939b..c809d8306 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charlie-armchair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/charlie-armchair-01.ts @@ -11,14 +11,17 @@ const charlieArmchair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('49900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(49900)) .country('DE'), PriceDraft.presets .empty() + .key('49900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(49900)) .country('GB'), PriceDraft.presets .empty() + .key('49900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(49900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass-01.spec.ts index 8b24bc950..0b268459f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass-01.spec.ts @@ -6,183 +6,183 @@ describe(`with chiantiWineGlass01 preset`, () => { const chiantiWineGlass01Preset = chiantiWineGlass01().build(); expect(chiantiWineGlass01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3138, - "w": 2457, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Chianti_Wine_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "USD", - }, - }, - ], - "sku": "CWG-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3138, + "w": 2457, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Chianti_Wine_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CWG-01", + } + `); }); it(`should return a chiantiWineGlass01 preset when built for graphql`, () => { const chiantiWineGlass01PresetGraphql = chiantiWineGlass01().buildGraphql(); expect(chiantiWineGlass01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3138, - "width": 2457, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Chianti_Wine_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CWG-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3138, + "width": 2457, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Chianti_Wine_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CWG-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass-01.ts index c36abbf45..18d65cd4d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass-01.ts @@ -11,14 +11,17 @@ const chiantiWineGlass01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('2599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(2599)) .country('DE'), PriceDraft.presets .empty() + .key('2599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(2599)) .country('GB'), PriceDraft.presets .empty() + .key('2599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(2599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug-01.spec.ts index 629fa05f1..72a994eba 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug-01.spec.ts @@ -6,183 +6,183 @@ describe(`with classicBeerMug01 preset`, () => { const classicBeerMug01Preset = classicBeerMug01().build(); expect(classicBeerMug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Tassen", - "en-GB": "- Set includes 6 mugs", - "en-US": "- Set includes 6 mugs", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5409, - "w": 3606, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Beer_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3599, - "currencyCode": "USD", - }, - }, - ], - "sku": "CBM-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Tassen", + "en-GB": "- Set includes 6 mugs", + "en-US": "- Set includes 6 mugs", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5409, + "w": 3606, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Beer_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CBM-03", + } + `); }); it(`should return a classicBeerMug01 preset when built for graphql`, () => { const classicBeerMug01PresetGraphql = classicBeerMug01().buildGraphql(); expect(classicBeerMug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 mugs","de-DE":"- Das Set enthält 6 Tassen","en-US":"- Set includes 6 mugs"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5409, - "width": 3606, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Beer_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CBM-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 mugs","de-DE":"- Das Set enthält 6 Tassen","en-US":"- Set includes 6 mugs"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5409, + "width": 3606, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Beer_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CBM-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug-01.ts index a075b153c..0e21b213d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug-01.ts @@ -11,14 +11,17 @@ const classicBeerMug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('3599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(3599)) .country('DE'), PriceDraft.presets .empty() + .key('3599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(3599)) .country('GB'), PriceDraft.presets .empty() + .key('3599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(3599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses-01.spec.ts index 27103aadc..5d8a2214a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses-01.spec.ts @@ -6,245 +6,245 @@ describe(`with classicChampagneGlasses01 preset`, () => { const classicChampagneGlasses01Preset = classicChampagneGlasses01().build(); expect(classicChampagneGlasses01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Set aus 5 Gläsern -- Hochwertiges Glas -- Zerbrechlich", - "en-GB": "- Set of 5 glasses -- Premium glass -- Fragile", - "en-US": "- Set of 5 glasses -- Premium glass -- Fragile", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4101, - "w": 5468, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.4.jpeg", - }, - { - "dimensions": { - "h": 4149, - "w": 2571, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.1.jpeg", - }, - { - "dimensions": { - "h": 5464, - "w": 3643, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.2.jpeg", - }, - { - "dimensions": { - "h": 2733, - "w": 1659, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "USD", - }, - }, - ], - "sku": "CCG-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Set aus 5 Gläsern + - Hochwertiges Glas + - Zerbrechlich", + "en-GB": "- Set of 5 glasses + - Premium glass + - Fragile", + "en-US": "- Set of 5 glasses + - Premium glass + - Fragile", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4101, + "w": 5468, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.4.jpeg", + }, + { + "dimensions": { + "h": 4149, + "w": 2571, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.1.jpeg", + }, + { + "dimensions": { + "h": 5464, + "w": 3643, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.2.jpeg", + }, + { + "dimensions": { + "h": 2733, + "w": 1659, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCG-01", + } + `); }); it(`should return a classicChampagneGlasses01 preset when built for graphql`, () => { const classicChampagneGlasses01PresetGraphql = classicChampagneGlasses01().buildGraphql(); expect(classicChampagneGlasses01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Set of 5 glasses\\n- Premium glass\\n- Fragile","en-GB":"- Set of 5 glasses\\n- Premium glass\\n- Fragile","de-DE":"- Set aus 5 Gläsern\\n- Hochwertiges Glas\\n- Zerbrechlich"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4101, - "width": 5468, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.4.jpeg", - }, - { - "dimensions": { - "height": 4149, - "width": 2571, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.1.jpeg", - }, - { - "dimensions": { - "height": 5464, - "width": 3643, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.2.jpeg", - }, - { - "dimensions": { - "height": 2733, - "width": 1659, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CCG-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Set of 5 glasses\\n- Premium glass\\n- Fragile","en-GB":"- Set of 5 glasses\\n- Premium glass\\n- Fragile","de-DE":"- Set aus 5 Gläsern\\n- Hochwertiges Glas\\n- Zerbrechlich"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4101, + "width": 5468, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.4.jpeg", + }, + { + "dimensions": { + "height": 4149, + "width": 2571, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.1.jpeg", + }, + { + "dimensions": { + "height": 5464, + "width": 3643, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.2.jpeg", + }, + { + "dimensions": { + "height": 2733, + "width": 1659, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CCG-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses-01.ts index c81184e48..e5d4cb057 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses-01.ts @@ -11,14 +11,17 @@ const classicChampagneGlasses01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('3299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(3299)) .country('DE'), PriceDraft.presets .empty() + .key('3299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(3299)) .country('GB'), PriceDraft.presets .empty() + .key('3299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(3299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup-01.spec.ts index de5625ca2..0daa255a2 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup-01.spec.ts @@ -6,190 +6,190 @@ describe(`with classicCoffeeCup01 preset`, () => { const classicCoffeeCup01Preset = classicCoffeeCup01().build(); expect(classicCoffeeCup01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Inklusive passender Untertasse -- Das Set enthält 4 Tassen und Untertassen", - "en-GB": "- Includes a matching saucer -- Set includes 4 cups and saucers", - "en-US": "- Includes a matching saucer -- Set includes 4 cups and saucers", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 4153, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 6999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 6999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 6999, - "currencyCode": "USD", - }, - }, - ], - "sku": "CCC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Inklusive passender Untertasse + - Das Set enthält 4 Tassen und Untertassen", + "en-GB": "- Includes a matching saucer + - Set includes 4 cups and saucers", + "en-US": "- Includes a matching saucer + - Set includes 4 cups and saucers", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 4153, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 6999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 6999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 6999, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCC-09", + } + `); }); it(`should return a classicCoffeeCup01 preset when built for graphql`, () => { const classicCoffeeCup01PresetGraphql = classicCoffeeCup01().buildGraphql(); expect(classicCoffeeCup01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes a matching saucer\\n- Set includes 4 cups and saucers","de-DE":"- Inklusive passender Untertasse\\n- Das Set enthält 4 Tassen und Untertassen","en-US":"- Includes a matching saucer\\n- Set includes 4 cups and saucers"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 4153, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 6999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 6999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 6999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CCC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes a matching saucer\\n- Set includes 4 cups and saucers","de-DE":"- Inklusive passender Untertasse\\n- Das Set enthält 4 Tassen und Untertassen","en-US":"- Includes a matching saucer\\n- Set includes 4 cups and saucers"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 4153, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 6999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 6999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 6999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CCC-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup-01.ts index 34aad394a..ecf4a1506 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup-01.ts @@ -11,14 +11,17 @@ const classicCoffeeCup01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('6999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(6999)) .country('DE'), PriceDraft.presets .empty() + .key('6999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(6999)) .country('GB'), PriceDraft.presets .empty() + .key('6999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(6999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray-01.spec.ts index b8fa06429..636091308 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray-01.spec.ts @@ -6,187 +6,187 @@ describe(`with classicServingTray01 preset`, () => { const classicServingTray01Preset = classicServingTray01().build(); expect(classicServingTray01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Aus lebensmittelechtem Kunststoff", - "en-GB": "- Made of food-grade plastic", - "en-US": "- Made of food-grade plastic", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.1.jpeg", - }, - { - "dimensions": { - "h": 4160, - "w": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - ], - "sku": "CST-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Aus lebensmittelechtem Kunststoff", + "en-GB": "- Made of food-grade plastic", + "en-US": "- Made of food-grade plastic", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.1.jpeg", + }, + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CST-01", + } + `); }); it(`should return a classicServingTray01 preset when built for graphql`, () => { const classicServingTray01PresetGraphql = classicServingTray01().buildGraphql(); expect(classicServingTray01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Made of food-grade plastic","de-DE":"- Aus lebensmittelechtem Kunststoff","en-US":"- Made of food-grade plastic"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.1.jpeg", - }, - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CST-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Made of food-grade plastic","de-DE":"- Aus lebensmittelechtem Kunststoff","en-US":"- Made of food-grade plastic"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.1.jpeg", + }, + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CST-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray-01.ts index 947bd73f3..0edd5aaba 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray-01.ts @@ -11,14 +11,17 @@ const classicServingTray01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(299)) .country('DE'), PriceDraft.presets .empty() + .key('299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(299)) .country('GB'), PriceDraft.presets .empty() + .key('299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass-01.spec.ts index c2258084f..c2aa7116e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass-01.spec.ts @@ -6,183 +6,183 @@ describe(`with clinkChampagneGlass01 preset`, () => { const clinkChampagneGlass01Preset = clinkChampagneGlass01().build(); expect(clinkChampagneGlass01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Clink_Champagne_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5499, - "currencyCode": "USD", - }, - }, - ], - "sku": "CCG-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Clink_Champagne_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5499, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCG-02", + } + `); }); it(`should return a clinkChampagneGlass01 preset when built for graphql`, () => { const clinkChampagneGlass01PresetGraphql = clinkChampagneGlass01().buildGraphql(); expect(clinkChampagneGlass01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Clink_Champagne_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CCG-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Clink_Champagne_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CCG-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass-01.ts index cd1e4913a..f47ede807 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass-01.ts @@ -11,14 +11,17 @@ const clinkChampagneGlass01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('5499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(5499)) .country('DE'), PriceDraft.presets .empty() + .key('5499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(5499)) .country('GB'), PriceDraft.presets .empty() + .key('5499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(5499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed-01.spec.ts index 79f607c33..72a13ceae 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed-01.spec.ts @@ -6,187 +6,187 @@ describe(`with cloudQueenBed01 preset`, () => { const cloudQueenBed01Preset = cloudQueenBed01().build(); expect(cloudQueenBed01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Hell blau:#ADD8E6", - "en-GB": "Light Blue:#ADD8E6", - "en-US": "Light Blue:#ADD8E6", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Die Montage ist im Preis inbegriffen", - "en-GB": "- Assembly is included", - "en-US": "- Assembly is included", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3621, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.1.jpeg", - }, - { - "dimensions": { - "h": 3621, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45999, - "currencyCode": "USD", - }, - }, - ], - "sku": "CQB-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Hell blau:#ADD8E6", + "en-GB": "Light Blue:#ADD8E6", + "en-US": "Light Blue:#ADD8E6", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Die Montage ist im Preis inbegriffen", + "en-GB": "- Assembly is included", + "en-US": "- Assembly is included", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3621, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.1.jpeg", + }, + { + "dimensions": { + "h": 3621, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45999, + "currencyCode": "USD", + }, + }, + ], + "sku": "CQB-09", + } + `); }); it(`should return a cloudQueenBed01 preset when built for graphql`, () => { const cloudQueenBed01PresetGraphql = cloudQueenBed01().buildGraphql(); expect(cloudQueenBed01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Light Blue:#ADD8E6","de-DE":"Hell blau:#ADD8E6","en-US":"Light Blue:#ADD8E6"}", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Assembly is included","de-DE":"- Die Montage ist im Preis inbegriffen","en-US":"- Assembly is included"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3621, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.1.jpeg", - }, - { - "dimensions": { - "height": 3621, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CQB-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Light Blue:#ADD8E6","de-DE":"Hell blau:#ADD8E6","en-US":"Light Blue:#ADD8E6"}", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Assembly is included","de-DE":"- Die Montage ist im Preis inbegriffen","en-US":"- Assembly is included"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3621, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.1.jpeg", + }, + { + "dimensions": { + "height": 3621, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CQB-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed-01.ts index c38bb0d69..3e3f3f97d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed-01.ts @@ -11,14 +11,17 @@ const cloudQueenBed01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('45999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(45999)) .country('DE'), PriceDraft.presets .empty() + .key('45999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(45999)) .country('GB'), PriceDraft.presets .empty() + .key('45999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(45999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug-01.spec.ts index 51ca809fa..751893b5e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug-01.spec.ts @@ -9,171 +9,171 @@ describe(`with cobblestoneRug01 preset`, () => { const cobblestoneRug01Preset = cobblestoneRug01().build(); expect(cobblestoneRug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 5 Fuß x 3 Fuß", - "en-GB": "- 5ft x 3ft", - "en-US": "- 5ft x 3ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2820, - "w": 7006, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cobblestone_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "USD", - }, - }, - ], - "sku": "CR-098", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 5 Fuß x 3 Fuß", + "en-GB": "- 5ft x 3ft", + "en-US": "- 5ft x 3ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2820, + "w": 7006, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cobblestone_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "USD", + }, + }, + ], + "sku": "CR-098", + } + `); }); it(`should return a cobblestoneRug01 preset when built for graphql`, () => { const cobblestoneRug01PresetGraphql = cobblestoneRug01().buildGraphql(); expect(cobblestoneRug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 5ft x 3ft","de-DE":"- 5 Fuß x 3 Fuß","en-US":"- 5ft x 3ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2820, - "width": 7006, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cobblestone_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CR-098", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 5ft x 3ft","de-DE":"- 5 Fuß x 3 Fuß","en-US":"- 5ft x 3ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2820, + "width": 7006, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cobblestone_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CR-098", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug-01.ts index b4de65219..8ca63f3be 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug-01.ts @@ -11,14 +11,17 @@ const cobblestoneRug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('12999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(12999)) .country('DE'), PriceDraft.presets .empty() + .key('12999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(12999)) .country('GB'), PriceDraft.presets .empty() + .key('12999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(12999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-01.spec.ts index 01b487fc8..cb81a69d4 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-01.spec.ts @@ -9,193 +9,193 @@ describe(`with cocktailShaker01 preset`, () => { const cocktailShaker01Preset = cocktailShaker01().build(); expect(cocktailShaker01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Inklusive eingebautem Sieb -- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Includes built in strainer -- Stainless steel -- Dishwasher safe", - "en-US": "- Includes built in strainer -- Stainless steel -- Dishwasher safe", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5500, - "w": 3850, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.1.jpeg", - }, - { - "dimensions": { - "h": 3750, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "USD", - }, - }, - ], - "sku": "COCT-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Inklusive eingebautem Sieb + - Edelstahl + - Spülmaschinenfest", + "en-GB": "- Includes built in strainer + - Stainless steel + - Dishwasher safe", + "en-US": "- Includes built in strainer + - Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5500, + "w": 3850, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.1.jpeg", + }, + { + "dimensions": { + "h": 3750, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "USD", + }, + }, + ], + "sku": "COCT-09", + } + `); }); it(`should return a cocktailShaker01 preset when built for graphql`, () => { const cocktailShaker01PresetGraphql = cocktailShaker01().buildGraphql(); expect(cocktailShaker01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes built in strainer\\n- Stainless steel\\n- Dishwasher safe","de-DE":"- Inklusive eingebautem Sieb\\n- Edelstahl\\n- Spülmaschinenfest","en-US":"- Includes built in strainer\\n- Stainless steel\\n- Dishwasher safe"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5500, - "width": 3850, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.1.jpeg", - }, - { - "dimensions": { - "height": 3750, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 699, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 699, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 699, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "COCT-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes built in strainer\\n- Stainless steel\\n- Dishwasher safe","de-DE":"- Inklusive eingebautem Sieb\\n- Edelstahl\\n- Spülmaschinenfest","en-US":"- Includes built in strainer\\n- Stainless steel\\n- Dishwasher safe"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5500, + "width": 3850, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.1.jpeg", + }, + { + "dimensions": { + "height": 3750, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 699, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 699, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 699, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "COCT-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-01.ts index b77305c4a..c57ed43a0 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-01.ts @@ -11,14 +11,17 @@ const cocktailShaker01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('699EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(699)) .country('DE'), PriceDraft.presets .empty() + .key('699GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(699)) .country('GB'), PriceDraft.presets .empty() + .key('699USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(699)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set-01.spec.ts index 5a2d167ed..72d837e5a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set-01.spec.ts @@ -9,174 +9,174 @@ describe(`with cocktailShakerSet01 preset`, () => { const cocktailShakerSet01Preset = cocktailShakerSet01().build(); expect(cocktailShakerSet01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Handwäsche nur", - "en-GB": "- Stainless steel -- Hand wash only", - "en-US": "- Stainless steel -- Hand wash only", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5334, - "w": 4929, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker_Set-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - ], - "sku": "COC-0843", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Handwäsche nur", + "en-GB": "- Stainless steel + - Hand wash only", + "en-US": "- Stainless steel + - Hand wash only", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5334, + "w": 4929, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker_Set-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + ], + "sku": "COC-0843", + } + `); }); it(`should return a cocktailShakerSet01 preset when built for graphql`, () => { const cocktailShakerSet01PresetGraphql = cocktailShakerSet01().buildGraphql(); expect(cocktailShakerSet01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel\\n- Hand wash only","de-DE":"- Edelstahl\\n- Handwäsche nur","en-US":"- Stainless steel\\n- Hand wash only"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5334, - "width": 4929, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker_Set-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "COC-0843", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel\\n- Hand wash only","de-DE":"- Edelstahl\\n- Handwäsche nur","en-US":"- Stainless steel\\n- Hand wash only"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5334, + "width": 4929, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker_Set-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "COC-0843", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set-01.ts index 39bed0ae5..b2b57c961 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set-01.ts @@ -11,14 +11,17 @@ const cocktailShakerSet01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1599)) .country('DE'), PriceDraft.presets .empty() + .key('1599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1599)) .country('GB'), PriceDraft.presets .empty() + .key('1599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon-01.spec.ts index 4895f6618..ec5f58788 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon-01.spec.ts @@ -9,174 +9,174 @@ describe(`with cocktailStirringSpoon01 preset`, () => { const cocktailStirringSpoon01Preset = cocktailStirringSpoon01().build(); expect(cocktailStirringSpoon01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Stainless steel -- Dishwasher safe", - "en-US": "- Stainless steel -- Dishwasher safe", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4555, - "w": 5757, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Stirring_Spoon-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "USD", - }, - }, - ], - "sku": "SPOO-094", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Spülmaschinenfest", + "en-GB": "- Stainless steel + - Dishwasher safe", + "en-US": "- Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4555, + "w": 5757, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Stirring_Spoon-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + ], + "sku": "SPOO-094", + } + `); }); it(`should return a cocktailStirringSpoon01 preset when built for graphql`, () => { const cocktailStirringSpoon01PresetGraphql = cocktailStirringSpoon01().buildGraphql(); expect(cocktailStirringSpoon01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4555, - "width": 5757, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Stirring_Spoon-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SPOO-094", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4555, + "width": 5757, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Stirring_Spoon-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SPOO-094", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon-01.ts index 099a3a779..817871c7c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon-01.ts @@ -11,14 +11,17 @@ const cocktailStirringSpoon01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('199EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(199)) .country('DE'), PriceDraft.presets .empty() + .key('199GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(199)) .country('GB'), PriceDraft.presets .empty() + .key('199USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(199)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer-01.spec.ts index 2b0aa0c6a..c9f89dbad 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer-01.spec.ts @@ -9,190 +9,190 @@ describe(`with cocktailStrainer01 preset`, () => { const cocktailStrainer01Preset = cocktailStrainer01().build(); expect(cocktailStrainer01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Stainless steel -- Dishwasher safe", - "en-US": "- Stainless steel -- Dishwasher safe", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3648, - "w": 5472, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.1.jpeg", - }, - { - "dimensions": { - "h": 5472, - "w": 3648, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - ], - "sku": "STRA-095", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Spülmaschinenfest", + "en-GB": "- Stainless steel + - Dishwasher safe", + "en-US": "- Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3648, + "w": 5472, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.1.jpeg", + }, + { + "dimensions": { + "h": 5472, + "w": 3648, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "STRA-095", + } + `); }); it(`should return a cocktailStrainer01 preset when built for graphql`, () => { const cocktailStrainer01PresetGraphql = cocktailStrainer01().buildGraphql(); expect(cocktailStrainer01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3648, - "width": 5472, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.1.jpeg", - }, - { - "dimensions": { - "height": 5472, - "width": 3648, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "STRA-095", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3648, + "width": 5472, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.1.jpeg", + }, + { + "dimensions": { + "height": 5472, + "width": 3648, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "STRA-095", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer-01.ts index 3b13ed4e6..f4cee8b50 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer-01.ts @@ -11,14 +11,17 @@ const cocktailStrainer01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('399EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(399)) .country('DE'), PriceDraft.presets .empty() + .key('399GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(399)) .country('GB'), PriceDraft.presets .empty() + .key('399USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(399)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover-01.spec.ts index 933c92615..35d9efd57 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover-01.spec.ts @@ -9,174 +9,174 @@ describe(`with cocoaPillowCover01 preset`, () => { const cocoaPillowCover01Preset = cocoaPillowCover01().build(); expect(cocoaPillowCover01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocoa_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "USD", - }, - }, - ], - "sku": "BLPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocoa_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + ], + "sku": "BLPC-09", + } + `); }); it(`should return a cocoaPillowCover01 preset when built for graphql`, () => { const cocoaPillowCover01PresetGraphql = cocoaPillowCover01().buildGraphql(); expect(cocoaPillowCover01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocoa_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "BLPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocoa_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BLPC-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover-01.ts index 87bef7c70..a5c40f1ec 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover-01.ts @@ -11,14 +11,17 @@ const cocoaPillowCover01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1099EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1099)) .country('DE'), PriceDraft.presets .empty() + .key('1099GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1099)) .country('GB'), PriceDraft.presets .empty() + .key('1099USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1099)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug-01.spec.ts index 9fb2f733e..7d20abdcf 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug-01.spec.ts @@ -9,180 +9,212 @@ describe(`with comfortCoffeeMug01 preset`, () => { const comfortCoffeeMug01Preset = comfortCoffeeMug01().build(); expect(comfortCoffeeMug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Tasse -- Spülmaschinen- und mikrowellengeeignet", - "en-GB": "- Includes 1 mug -- Dishwasher and microwave safe", - "en-US": "- Includes 1 mug -- Dishwasher and microwave safe", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2256, - "w": 2340, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Comfort_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "GBP", - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "USD", - }, - }, - ], - "sku": "CCM-089", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Tasse + - Spülmaschinen- und mikrowellengeeignet", + "en-GB": "- Includes 1 mug + - Dishwasher and microwave safe", + "en-US": "- Includes 1 mug + - Dishwasher and microwave safe", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2256, + "w": 2340, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Comfort_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "149USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 149, + "currencyCode": "USD", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCM-089", + } + `); }); it(`should return a comfortCoffeeMug01 preset when built for graphql`, () => { const comfortCoffeeMug01PresetGraphql = comfortCoffeeMug01().buildGraphql(); expect(comfortCoffeeMug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 mug\\n- Dishwasher and microwave safe","de-DE":"- Enthält 1 Tasse\\n- Spülmaschinen- und mikrowellengeeignet","en-US":"- Includes 1 mug\\n- Dishwasher and microwave safe"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2256, - "width": 2340, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Comfort_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CCM-089", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 mug\\n- Dishwasher and microwave safe","de-DE":"- Enthält 1 Tasse\\n- Spülmaschinen- und mikrowellengeeignet","en-US":"- Includes 1 mug\\n- Dishwasher and microwave safe"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2256, + "width": 2340, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Comfort_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "149USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 149, + "currencyCode": "USD", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CCM-089", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug-01.ts index 18c5639da..ed63581e5 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug-01.ts @@ -20,14 +20,22 @@ const comfortCoffeeMug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('199EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(199)) .country('DE'), PriceDraft.presets .empty() + .key('199GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(199)) .country('GB'), PriceDraft.presets .empty() + .key('149USD') + .value(MoneyDraft.random().currencyCode('USD').centAmount(149)) + .country('US'), + PriceDraft.presets + .empty() + .key('199USD_dist') .value(MoneyDraft.random().currencyCode('USD').centAmount(199)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-01.spec.ts index fff731cc4..456902531 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-01.spec.ts @@ -9,195 +9,195 @@ describe(`with cottonSilkBedsheet01 preset`, () => { const cottonSilkBedsheet01Preset = cottonSilkBedsheet01().build(); expect(cottonSilkBedsheet01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "new-arrival", - "value": false, - }, - { - "name": "size", - "value": { - "en-GB": "Queen", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4500, - "w": 7500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKW-093", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "new-arrival", + "value": false, + }, + { + "name": "size", + "value": { + "en-GB": "Queen", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4500, + "w": 7500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKW-093", + } + `); }); it(`should return a cottonSilkBedsheet01 preset when built for graphql`, () => { const cottonSilkBedsheet01PresetGraphql = cottonSilkBedsheet01().buildGraphql(); expect(cottonSilkBedsheet01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - { - "name": "new-arrival", - "value": "false", - }, - { - "name": "size", - "value": "{"en-GB":"Queen"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4500, - "width": 7500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CSKW-093", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + { + "name": "new-arrival", + "value": "false", + }, + { + "name": "size", + "value": "{"en-GB":"Queen"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4500, + "width": 7500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CSKW-093", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-01.ts index 37acbf7e2..65d43d590 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-01.ts @@ -11,14 +11,17 @@ const cottonSilkBedsheet01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1599)) .country('DE'), PriceDraft.presets .empty() + .key('1599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1599)) .country('GB'), PriceDraft.presets .empty() + .key('1599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-02.spec.ts index 3083ea18a..f3be33878 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-02.spec.ts @@ -9,187 +9,187 @@ describe(`with cottonSilkBedsheet02 preset`, () => { const cottonSilkBedsheet02Preset = cottonSilkBedsheet02().build(); expect(cottonSilkBedsheet02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Twin", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4500, - "w": 7500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKW-0922", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Twin", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4500, + "w": 7500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKW-0922", + } + `); }); it(`should return a cottonSilkBedsheet02 preset when built for graphql`, () => { const cottonSilkBedsheet02PresetGraphql = cottonSilkBedsheet02().buildGraphql(); expect(cottonSilkBedsheet02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - { - "name": "size", - "value": "{"en-GB":"Twin"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4500, - "width": 7500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CSKW-0922", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + { + "name": "size", + "value": "{"en-GB":"Twin"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4500, + "width": 7500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CSKW-0922", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-02.ts index d7ea24ce5..4faee787e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-02.ts @@ -11,14 +11,17 @@ const cottonSilkBedsheet02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1299)) .country('DE'), PriceDraft.presets .empty() + .key('1299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1299)) .country('GB'), PriceDraft.presets .empty() + .key('1299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-03.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-03.spec.ts index d8826364f..cd3eb031b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-03.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-03.spec.ts @@ -9,187 +9,187 @@ describe(`with cottonSilkBedsheet03 preset`, () => { const cottonSilkBedsheet03Preset = cottonSilkBedsheet03().build(); expect(cottonSilkBedsheet03Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "size", - "value": { - "en-GB": "King", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4500, - "w": 7500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKW-9822", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "size", + "value": { + "en-GB": "King", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4500, + "w": 7500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKW-9822", + } + `); }); it(`should return a cottonSilkBedsheet03 preset when built for graphql`, () => { const cottonSilkBedsheet03PresetGraphql = cottonSilkBedsheet03().buildGraphql(); expect(cottonSilkBedsheet03PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - { - "name": "size", - "value": "{"en-GB":"King"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4500, - "width": 7500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1899, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1899, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1899, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CSKW-9822", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + { + "name": "size", + "value": "{"en-GB":"King"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4500, + "width": 7500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CSKW-9822", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-03.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-03.ts index dcd97d7fa..f86472498 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-03.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-03.ts @@ -11,14 +11,17 @@ const cottonSilkBedsheet03 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1899EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1899)) .country('DE'), PriceDraft.presets .empty() + .key('1899GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1899)) .country('GB'), PriceDraft.presets .empty() + .key('1899USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1899)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-04.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-04.spec.ts index 03e3aafc4..6e9249ba8 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-04.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-04.spec.ts @@ -9,203 +9,203 @@ describe(`with cottonSilkBedsheet04 preset`, () => { const cottonSilkBedsheet04Preset = cottonSilkBedsheet04().build(); expect(cottonSilkBedsheet04Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Twin", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3627, - "w": 5589, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.1.jpeg", - }, - { - "dimensions": { - "h": 3228, - "w": 5216, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKP-0934", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Twin", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3627, + "w": 5589, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.1.jpeg", + }, + { + "dimensions": { + "h": 3228, + "w": 5216, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKP-0934", + } + `); }); it(`should return a cottonSilkBedsheet04 preset when built for graphql`, () => { const cottonSilkBedsheet04PresetGraphql = cottonSilkBedsheet04().buildGraphql(); expect(cottonSilkBedsheet04PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1","en-US":"Light Pink:#FFB6C1"}", - }, - { - "name": "size", - "value": "{"en-GB":"Twin"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3627, - "width": 5589, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.1.jpeg", - }, - { - "dimensions": { - "height": 3228, - "width": 5216, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CSKP-0934", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1","en-US":"Light Pink:#FFB6C1"}", + }, + { + "name": "size", + "value": "{"en-GB":"Twin"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3627, + "width": 5589, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.1.jpeg", + }, + { + "dimensions": { + "height": 3228, + "width": 5216, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CSKP-0934", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-04.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-04.ts index abd235835..1d9fdad56 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-04.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-04.ts @@ -11,14 +11,17 @@ const cottonSilkBedsheet04 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1299)) .country('DE'), PriceDraft.presets .empty() + .key('1299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1299)) .country('GB'), PriceDraft.presets .empty() + .key('1299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-05.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-05.spec.ts index 499fb5392..e1213f7e7 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-05.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-05.spec.ts @@ -9,203 +9,203 @@ describe(`with cottonSilkBedsheet05 preset`, () => { const cottonSilkBedsheet05Preset = cottonSilkBedsheet05().build(); expect(cottonSilkBedsheet05Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Queen", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3627, - "w": 5589, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.1.jpeg", - }, - { - "dimensions": { - "h": 3228, - "w": 5216, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKP-0932", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Queen", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3627, + "w": 5589, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.1.jpeg", + }, + { + "dimensions": { + "h": 3228, + "w": 5216, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKP-0932", + } + `); }); it(`should return a cottonSilkBedsheet05 preset when built for graphql`, () => { const cottonSilkBedsheet05PresetGraphql = cottonSilkBedsheet05().buildGraphql(); expect(cottonSilkBedsheet05PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1","en-US":"Light Pink:#FFB6C1"}", - }, - { - "name": "size", - "value": "{"en-GB":"Queen"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3627, - "width": 5589, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.1.jpeg", - }, - { - "dimensions": { - "height": 3228, - "width": 5216, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CSKP-0932", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1","en-US":"Light Pink:#FFB6C1"}", + }, + { + "name": "size", + "value": "{"en-GB":"Queen"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3627, + "width": 5589, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.1.jpeg", + }, + { + "dimensions": { + "height": 3228, + "width": 5216, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CSKP-0932", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-05.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-05.ts index a1b3e3d71..b35204c68 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-05.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-05.ts @@ -11,14 +11,17 @@ const cottonSilkBedsheet05 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1599)) .country('DE'), PriceDraft.presets .empty() + .key('1599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1599)) .country('GB'), PriceDraft.presets .empty() + .key('1599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-06.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-06.spec.ts index c8766af00..51b008f14 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-06.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-06.spec.ts @@ -9,203 +9,203 @@ describe(`with cottonSilkBedsheet06 preset`, () => { const cottonSilkBedsheet06Preset = cottonSilkBedsheet06().build(); expect(cottonSilkBedsheet06Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", - }, - }, - { - "name": "size", - "value": { - "en-GB": "King", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3627, - "w": 5589, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.1.jpeg", - }, - { - "dimensions": { - "h": 3228, - "w": 5216, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKP-083", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "size", + "value": { + "en-GB": "King", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3627, + "w": 5589, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.1.jpeg", + }, + { + "dimensions": { + "h": 3228, + "w": 5216, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKP-083", + } + `); }); it(`should return a cottonSilkBedsheet06 preset when built for graphql`, () => { const cottonSilkBedsheet06PresetGraphql = cottonSilkBedsheet06().buildGraphql(); expect(cottonSilkBedsheet06PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1","en-US":"Light Pink:#FFB6C1"}", - }, - { - "name": "size", - "value": "{"en-GB":"King"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3627, - "width": 5589, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.1.jpeg", - }, - { - "dimensions": { - "height": 3228, - "width": 5216, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1899, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1899, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1899, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CSKP-083", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1","en-US":"Light Pink:#FFB6C1"}", + }, + { + "name": "size", + "value": "{"en-GB":"King"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3627, + "width": 5589, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.1.jpeg", + }, + { + "dimensions": { + "height": 3228, + "width": 5216, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CSKP-083", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-06.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-06.ts index 24e1d2a04..d97b61da6 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-06.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-06.ts @@ -11,14 +11,17 @@ const cottonSilkBedsheet06 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1899EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1899)) .country('DE'), PriceDraft.presets .empty() + .key('1899GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1899)) .country('GB'), PriceDraft.presets .empty() + .key('1899USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1899)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-07.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-07.spec.ts index 2223069f3..d9de50e90 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-07.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-07.spec.ts @@ -9,187 +9,187 @@ describe(`with cottonSilkBedsheet07 preset`, () => { const cottonSilkBedsheet07Preset = cottonSilkBedsheet07().build(); expect(cottonSilkBedsheet07Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Twin", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3848, - "w": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-7.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKG-92", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Twin", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3848, + "w": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-7.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKG-92", + } + `); }); it(`should return a cottonSilkBedsheet07 preset when built for graphql`, () => { const cottonSilkBedsheet07PresetGraphql = cottonSilkBedsheet07().buildGraphql(); expect(cottonSilkBedsheet07PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", - }, - { - "name": "size", - "value": "{"en-GB":"Twin"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3848, - "width": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-7.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CSKG-92", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", + }, + { + "name": "size", + "value": "{"en-GB":"Twin"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3848, + "width": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-7.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CSKG-92", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-07.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-07.ts index 27aa110f3..0e349d25c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-07.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-07.ts @@ -11,14 +11,17 @@ const cottonSilkBedsheet07 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1299)) .country('DE'), PriceDraft.presets .empty() + .key('1299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1299)) .country('GB'), PriceDraft.presets .empty() + .key('1299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-08.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-08.spec.ts index 4de3c87a6..f57888bfb 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-08.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-08.spec.ts @@ -9,187 +9,187 @@ describe(`with cottonSilkBedsheet08 preset`, () => { const cottonSilkBedsheet08Preset = cottonSilkBedsheet08().build(); expect(cottonSilkBedsheet08Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Queen", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3848, - "w": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-8.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKG-023", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Queen", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3848, + "w": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-8.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKG-023", + } + `); }); it(`should return a cottonSilkBedsheet08 preset when built for graphql`, () => { const cottonSilkBedsheet08PresetGraphql = cottonSilkBedsheet08().buildGraphql(); expect(cottonSilkBedsheet08PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", - }, - { - "name": "size", - "value": "{"en-GB":"Queen"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3848, - "width": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-8.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CSKG-023", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", + }, + { + "name": "size", + "value": "{"en-GB":"Queen"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3848, + "width": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-8.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CSKG-023", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-08.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-08.ts index e21621e43..b21bf79c1 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-08.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-08.ts @@ -11,14 +11,17 @@ const cottonSilkBedsheet08 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1599)) .country('DE'), PriceDraft.presets .empty() + .key('1599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1599)) .country('GB'), PriceDraft.presets .empty() + .key('1599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-09.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-09.spec.ts index 86631b74a..f0dc15667 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-09.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-09.spec.ts @@ -9,187 +9,187 @@ describe(`with cottonSilkBedsheet09 preset`, () => { const cottonSilkBedsheet09Preset = cottonSilkBedsheet09().build(); expect(cottonSilkBedsheet09Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - { - "name": "size", - "value": { - "en-GB": "King", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3848, - "w": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-9.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKG-2345", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "size", + "value": { + "en-GB": "King", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3848, + "w": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-9.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKG-2345", + } + `); }); it(`should return a cottonSilkBedsheet09 preset when built for graphql`, () => { const cottonSilkBedsheet09PresetGraphql = cottonSilkBedsheet09().buildGraphql(); expect(cottonSilkBedsheet09PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", - }, - { - "name": "size", - "value": "{"en-GB":"King"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3848, - "width": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-9.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1899, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1899, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1899, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CSKG-2345", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","en-US":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet","de-DE":"- Machine washable\\n- 600 thread count\\n- Includes 1 fitted sheet"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", + }, + { + "name": "size", + "value": "{"en-GB":"King"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3848, + "width": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-9.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CSKG-2345", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-09.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-09.ts index 82b9506f6..a1dcc154a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-09.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet-09.ts @@ -11,14 +11,17 @@ const cottonSilkBedsheet09 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1899EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1899)) .country('DE'), PriceDraft.presets .empty() + .key('1899GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1899)) .country('GB'), PriceDraft.presets .empty() + .key('1899USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1899)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa-01.spec.ts index ad2c57d37..f1906700e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa-01.spec.ts @@ -9,191 +9,191 @@ describe(`with cottonTwoSeaterSofa01 preset`, () => { const cottonTwoSeaterSofa01Preset = cottonTwoSeaterSofa01().build(); expect(cottonTwoSeaterSofa01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2969, - "w": 5035, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 637, - "w": 1000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.3.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 54900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 54900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 54900, - "currencyCode": "USD", - }, - }, - ], - "sku": "CTSS-0983", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2969, + "w": 5035, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 637, + "w": 1000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.3.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "54900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 54900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "54900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 54900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "54900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 54900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CTSS-0983", + } + `); }); it(`should return a cottonTwoSeaterSofa01 preset when built for graphql`, () => { const cottonTwoSeaterSofa01PresetGraphql = cottonTwoSeaterSofa01().buildGraphql(); expect(cottonTwoSeaterSofa01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2969, - "width": 5035, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "height": 637, - "width": 1000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.3.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 54900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 54900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 54900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CTSS-0983", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2969, + "width": 5035, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "height": 637, + "width": 1000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.3.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "54900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 54900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "54900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 54900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "54900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 54900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CTSS-0983", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa-01.ts index e470c6a4c..90798d773 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa-01.ts @@ -11,14 +11,17 @@ const cottonTwoSeaterSofa01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('54900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(54900)) .country('DE'), PriceDraft.presets .empty() + .key('54900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(54900)) .country('GB'), PriceDraft.presets .empty() + .key('54900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(54900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass-01.spec.ts index b7ea89161..d6f426780 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass-01.spec.ts @@ -9,171 +9,171 @@ describe(`with crystalDrinkingGlass01 preset`, () => { const crystalDrinkingGlass01Preset = crystalDrinkingGlass01().build(); expect(crystalDrinkingGlass01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Crystal_Drinking_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "USD", - }, - }, - ], - "sku": "CDG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Crystal_Drinking_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "USD", + }, + }, + ], + "sku": "CDG-09", + } + `); }); it(`should return a crystalDrinkingGlass01 preset when built for graphql`, () => { const crystalDrinkingGlass01PresetGraphql = crystalDrinkingGlass01().buildGraphql(); expect(crystalDrinkingGlass01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Crystal_Drinking_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CDG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Crystal_Drinking_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CDG-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass-01.ts index fe28bdf1f..b2b6fa35f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass-01.ts @@ -11,14 +11,17 @@ const crystalDrinkingGlass01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('3499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(3499)) .country('DE'), PriceDraft.presets .empty() + .key('3499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(3499)) .country('GB'), PriceDraft.presets .empty() + .key('3499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(3499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket-01.spec.ts index 9a21556ba..60477ae7c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket-01.spec.ts @@ -9,183 +9,215 @@ describe(`with cubeJuteBasket01 preset`, () => { const cubeJuteBasket01Preset = cubeJuteBasket01().build(); expect(cubeJuteBasket01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Jute -- Vormontiert -- 1 Fuß x 1 Fuß x 1 Fuß", - "en-GB": "- Jute -- Preassembled -- 1ft x 1ft x 1ft", - "en-US": "- Jute -- Preassembled -- 1ft x 1ft x 1ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3564, - "w": 4684, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cube_Jute_Basket-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - ], - "sku": "CJB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Jute + - Vormontiert + - 1 Fuß x 1 Fuß x 1 Fuß", + "en-GB": "- Jute + - Preassembled + - 1ft x 1ft x 1ft", + "en-US": "- Jute + - Preassembled + - 1ft x 1ft x 1ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3564, + "w": 4684, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cube_Jute_Basket-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1199USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1199, + "currencyCode": "USD", + }, + }, + ], + "sku": "CJB-01", + } + `); }); it(`should return a cubeJuteBasket01 preset when built for graphql`, () => { const cubeJuteBasket01PresetGraphql = cubeJuteBasket01().buildGraphql(); expect(cubeJuteBasket01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Jute\\n- Preassembled\\n- 1ft x 1ft x 1ft","de-DE":"- Jute\\n- Vormontiert\\n- 1 Fuß x 1 Fuß x 1 Fuß","en-US":"- Jute\\n- Preassembled\\n- 1ft x 1ft x 1ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3564, - "width": 4684, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cube_Jute_Basket-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CJB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Jute\\n- Preassembled\\n- 1ft x 1ft x 1ft","de-DE":"- Jute\\n- Vormontiert\\n- 1 Fuß x 1 Fuß x 1 Fuß","en-US":"- Jute\\n- Preassembled\\n- 1ft x 1ft x 1ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3564, + "width": 4684, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cube_Jute_Basket-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1199USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1199, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CJB-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket-01.ts index 44b676a4c..15227a5d4 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket-01.ts @@ -20,15 +20,23 @@ const cubeJuteBasket01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1299)) .country('DE'), PriceDraft.presets .empty() + .key('1299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1299)) .country('GB'), PriceDraft.presets .empty() + .key('1299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1299)) + .country('US'), + PriceDraft.presets + .empty() + .key('1199USD_dist') + .value(MoneyDraft.random().currencyCode('USD').centAmount(1199)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) ) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass-01.spec.ts index 71aaa0a6e..dc5342930 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass-01.spec.ts @@ -9,174 +9,174 @@ describe(`with doubleSidedShotGlass01 preset`, () => { const doubleSidedShotGlass01Preset = doubleSidedShotGlass01().build(); expect(doubleSidedShotGlass01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Stainless steel -- Dishwasher safe", - "en-US": "- Stainless steel -- Dishwasher safe", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5472, - "w": 3648, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Sided_Shot_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - ], - "sku": "SHOT-095", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Spülmaschinenfest", + "en-GB": "- Stainless steel + - Dishwasher safe", + "en-US": "- Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5472, + "w": 3648, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Sided_Shot_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "SHOT-095", + } + `); }); it(`should return a doubleSidedShotGlass01 preset when built for graphql`, () => { const doubleSidedShotGlass01PresetGraphql = doubleSidedShotGlass01().buildGraphql(); expect(doubleSidedShotGlass01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5472, - "width": 3648, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Sided_Shot_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SHOT-095", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5472, + "width": 3648, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Sided_Shot_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SHOT-095", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass-01.ts index cda9cc84e..321cb8617 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass-01.ts @@ -11,14 +11,17 @@ const doubleSidedShotGlass01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(299)) .country('DE'), PriceDraft.presets .empty() + .key('299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(299)) .country('GB'), PriceDraft.presets .empty() + .key('299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass-01.spec.ts index 82c2c72f1..82d653b19 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass-01.spec.ts @@ -9,199 +9,183 @@ describe(`with doubleWalledEspressoGlass01 preset`, () => { const doubleWalledEspressoGlass01Preset = doubleWalledEspressoGlass01().build(); expect(doubleWalledEspressoGlass01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 4 Gläser", - "en-GB": "- Set includes 4 glasses", - "en-US": "- Set includes 4 glasses", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3098, - "w": 3371, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.1.jpeg", - }, - { - "dimensions": { - "h": 1481, - "w": 987, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4299, - "currencyCode": "USD", - }, - }, - ], - "sku": "DWEG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 4 Gläser", + "en-GB": "- Set includes 4 glasses", + "en-US": "- Set includes 4 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3098, + "w": 3371, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4299, + "currencyCode": "USD", + }, + }, + ], + "sku": "DWEG-09", + } + `); }); it(`should return a doubleWalledEspressoGlass01 preset when built for graphql`, () => { const doubleWalledEspressoGlass01PresetGraphql = doubleWalledEspressoGlass01().buildGraphql(); expect(doubleWalledEspressoGlass01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 4 glasses","de-DE":"- Das Set enthält 4 Gläser","en-US":"- Set includes 4 glasses"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3098, - "width": 3371, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.1.jpeg", - }, - { - "dimensions": { - "height": 1481, - "width": 987, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "DWEG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 4 glasses","de-DE":"- Das Set enthält 4 Gläser","en-US":"- Set includes 4 glasses"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3098, + "width": 3371, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "DWEG-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass-01.ts index 472667689..8e018b3ef 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass-01.ts @@ -11,14 +11,17 @@ const doubleWalledEspressoGlass01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('4299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(4299)) .country('DE'), PriceDraft.presets .empty() + .key('4299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(4299)) .country('GB'), PriceDraft.presets .empty() + .key('4299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(4299)) .country('US'), ]) @@ -29,12 +32,6 @@ const doubleWalledEspressoGlass01 = (): TProductVariantDraftBuilder => 'https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.1.jpeg' ) .dimensions({ w: 3371, h: 3098 }), - ImageDraft.presets - .empty() - .url( - 'https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.2.jpeg' - ) - .dimensions({ w: 987, h: 1481 }), ]) .attributes([ AttributeDraft.random().name('productspec').value({ diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed-01.spec.ts index b35647374..5ad47544d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed-01.spec.ts @@ -9,174 +9,174 @@ describe(`with ecruDoubleBed01 preset`, () => { const ecruDoubleBed01Preset = ecruDoubleBed01().build(); expect(ecruDoubleBed01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Mit gepolstertem Kopfteil -- Montage inklusive", - "en-GB": "- Comes with pillow-top headboard -- Assembly included", - "en-US": "- Comes with pillow-top headboard -- Assembly included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Gainsboro:#dcdcdc", - "en-GB": "Gainsboro:#dcdcdc", - "en-US": "Gainsboro:#dcdcdc", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2000, - "w": 2000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ecru_Double_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 89900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 89900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 89900, - "currencyCode": "USD", - }, - }, - ], - "sku": "SQB-034", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Mit gepolstertem Kopfteil + - Montage inklusive", + "en-GB": "- Comes with pillow-top headboard + - Assembly included", + "en-US": "- Comes with pillow-top headboard + - Assembly included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Gainsboro:#dcdcdc", + "en-GB": "Gainsboro:#dcdcdc", + "en-US": "Gainsboro:#dcdcdc", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2000, + "w": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ecru_Double_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "89900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 89900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "89900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 89900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "89900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 89900, + "currencyCode": "USD", + }, + }, + ], + "sku": "SQB-034", + } + `); }); it(`should return a ecruDoubleBed01 preset when built for graphql`, () => { const ecruDoubleBed01PresetGraphql = ecruDoubleBed01().buildGraphql(); expect(ecruDoubleBed01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Comes with pillow-top headboard\\n- Assembly included","de-DE":"- Mit gepolstertem Kopfteil\\n- Montage inklusive","en-US":"- Comes with pillow-top headboard\\n- Assembly included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2000, - "width": 2000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ecru_Double_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 89900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 89900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 89900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SQB-034", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Comes with pillow-top headboard\\n- Assembly included","de-DE":"- Mit gepolstertem Kopfteil\\n- Montage inklusive","en-US":"- Comes with pillow-top headboard\\n- Assembly included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2000, + "width": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ecru_Double_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "89900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 89900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "89900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 89900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "89900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 89900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SQB-034", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed-01.ts index 3c1f0c684..59f746162 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed-01.ts @@ -11,14 +11,17 @@ const ecruDoubleBed01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('89900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(89900)) .country('DE'), PriceDraft.presets .empty() + .key('89900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(89900)) .country('GB'), PriceDraft.presets .empty() + .key('89900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(89900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/edgar-armchair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/edgar-armchair-01.spec.ts index 65afd7855..3528b00a6 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/edgar-armchair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/edgar-armchair-01.spec.ts @@ -9,183 +9,183 @@ describe(`with edgarArmchair01 preset`, () => { const edgarArmchair01Preset = edgarArmchair01().build(); expect(edgarArmchair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Montage bei Lieferung", - "en-GB": "- Assembly on delivery", - "en-US": "- Assembly on delivery", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Helles Oliv:#BAB86C", - "en-GB": "Light Olive:#BAB86C", - "en-US": "Light Olive:#BAB86C", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Edgar_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "EARM-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage bei Lieferung", + "en-GB": "- Assembly on delivery", + "en-US": "- Assembly on delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Helles Oliv:#BAB86C", + "en-GB": "Light Olive:#BAB86C", + "en-US": "Light Olive:#BAB86C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Edgar_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "EARM-04", + } + `); }); it(`should return a edgarArmchair01 preset when built for graphql`, () => { const edgarArmchair01PresetGraphql = edgarArmchair01().buildGraphql(); expect(edgarArmchair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly on delivery","de-DE":"- Montage bei Lieferung","en-US":"- Assembly on delivery"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Olive:#BAB86C","de-DE":"Helles Oliv:#BAB86C","en-US":"Light Olive:#BAB86C"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Edgar_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "EARM-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly on delivery","de-DE":"- Montage bei Lieferung","en-US":"- Assembly on delivery"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Olive:#BAB86C","de-DE":"Helles Oliv:#BAB86C","en-US":"Light Olive:#BAB86C"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Edgar_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "EARM-04", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/edgar-armchair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/edgar-armchair-01.ts index 02dc7d763..72d146d8b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/edgar-armchair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/edgar-armchair-01.ts @@ -11,14 +11,17 @@ const edgarArmchair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ella-square-plate-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ella-square-plate-01.spec.ts index 203c5b359..001a88a7c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ella-square-plate-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ella-square-plate-01.spec.ts @@ -9,193 +9,225 @@ describe(`with ellaSquarePlate01 preset`, () => { const ellaSquarePlate01Preset = ellaSquarePlate01().build(); expect(ellaSquarePlate01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3412, - "w": 5692, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.1.jpeg", - }, - { - "dimensions": { - "h": 4912, - "w": 7360, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - ], - "sku": "ESP-1", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3412, + "w": 5692, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.1.jpeg", + }, + { + "dimensions": { + "h": 4912, + "w": 7360, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + ], + "sku": "ESP-1", + } + `); }); it(`should return a ellaSquarePlate01 preset when built for graphql`, () => { const ellaSquarePlate01PresetGraphql = ellaSquarePlate01().buildGraphql(); expect(ellaSquarePlate01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3412, - "width": 5692, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.1.jpeg", - }, - { - "dimensions": { - "height": 4912, - "width": 7360, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "ESP-1", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3412, + "width": 5692, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.1.jpeg", + }, + { + "dimensions": { + "height": 4912, + "width": 7360, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ESP-1", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ella-square-plate-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ella-square-plate-01.ts index 03cc0863b..91f4c94c2 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ella-square-plate-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ella-square-plate-01.ts @@ -20,15 +20,23 @@ const ellaSquarePlate01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1599)) .country('DE'), PriceDraft.presets .empty() + .key('1599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1599)) .country('GB'), PriceDraft.presets .empty() + .key('1599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1599)) + .country('US'), + PriceDraft.presets + .empty() + .key('1499USD_dist') + .value(MoneyDraft.random().currencyCode('USD').centAmount(1499)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) ) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair-01.spec.ts index 94d831e42..1ed3838b7 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair-01.spec.ts @@ -9,183 +9,183 @@ describe(`with emeraldVelvetChair01 preset`, () => { const emeraldVelvetChair01Preset = emeraldVelvetChair01().build(); expect(emeraldVelvetChair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Grün:#008000", - "en-GB": "Green:#008000", - "en-US": "Green:#008000", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Burlywood:#deb887", - "en-GB": "Burlywood:#deb887", - "en-US": "Burlywood:#deb887", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4800, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Emerald_Velvet_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - ], - "sku": "VARM-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grün:#008000", + "en-GB": "Green:#008000", + "en-US": "Green:#008000", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Burlywood:#deb887", + "en-GB": "Burlywood:#deb887", + "en-US": "Burlywood:#deb887", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4800, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Emerald_Velvet_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "VARM-09", + } + `); }); it(`should return a emeraldVelvetChair01 preset when built for graphql`, () => { const emeraldVelvetChair01PresetGraphql = emeraldVelvetChair01().buildGraphql(); expect(emeraldVelvetChair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", - }, - { - "name": "color", - "value": "{"en-GB":"Green:#008000","de-DE":"Grün:#008000","en-US":"Green:#008000"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Burlywood:#deb887","de-DE":"Burlywood:#deb887","en-US":"Burlywood:#deb887"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4800, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Emerald_Velvet_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "VARM-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", + }, + { + "name": "color", + "value": "{"en-GB":"Green:#008000","de-DE":"Grün:#008000","en-US":"Green:#008000"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Burlywood:#deb887","de-DE":"Burlywood:#deb887","en-US":"Burlywood:#deb887"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4800, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Emerald_Velvet_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "VARM-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair-01.ts index 32bca6ae3..4aa91c655 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair-01.ts @@ -11,14 +11,17 @@ const emeraldVelvetChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('39900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(39900)) .country('DE'), PriceDraft.presets .empty() + .key('39900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(39900)) .country('GB'), PriceDraft.presets .empty() + .key('39900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(39900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/entryway-closet-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/entryway-closet-01.spec.ts index 3e879d98e..f762ff3d6 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/entryway-closet-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/entryway-closet-01.spec.ts @@ -9,215 +9,215 @@ describe(`with entrywayCloset01 preset`, () => { const entrywayCloset01Preset = entrywayCloset01().build(); expect(entrywayCloset01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Burlywood:#deb887", - "en-GB": "Burlywood:#deb887", - "en-US": "Burlywood:#deb887", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4125, - "w": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.1.jpeg", - }, - { - "dimensions": { - "h": 4512, - "w": 4700, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.2.jpeg", - }, - { - "dimensions": { - "h": 4125, - "w": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "USD", - }, - }, - ], - "sku": "EWC-07", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Burlywood:#deb887", + "en-GB": "Burlywood:#deb887", + "en-US": "Burlywood:#deb887", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4125, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.1.jpeg", + }, + { + "dimensions": { + "h": 4512, + "w": 4700, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.2.jpeg", + }, + { + "dimensions": { + "h": 4125, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + ], + "sku": "EWC-07", + } + `); }); it(`should return a entrywayCloset01 preset when built for graphql`, () => { const entrywayCloset01PresetGraphql = entrywayCloset01().buildGraphql(); expect(entrywayCloset01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten","en-US":"- Assembly included in delivery"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Burlywood:#deb887","de-DE":"Burlywood:#deb887","en-US":"Burlywood:#deb887"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4125, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.1.jpeg", - }, - { - "dimensions": { - "height": 4512, - "width": 4700, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.2.jpeg", - }, - { - "dimensions": { - "height": 4125, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "EWC-07", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten","en-US":"- Assembly included in delivery"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Burlywood:#deb887","de-DE":"Burlywood:#deb887","en-US":"Burlywood:#deb887"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4125, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.1.jpeg", + }, + { + "dimensions": { + "height": 4512, + "width": 4700, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.2.jpeg", + }, + { + "dimensions": { + "height": 4125, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "EWC-07", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/entryway-closet-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/entryway-closet-01.ts index 471063bf7..ec2fd787b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/entryway-closet-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/entryway-closet-01.ts @@ -11,14 +11,17 @@ const entrywayCloset01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('259900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(259900)) .country('DE'), PriceDraft.presets .empty() + .key('259900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(259900)) .country('GB'), PriceDraft.presets .empty() + .key('259900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(259900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/evergreen-candle-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/evergreen-candle-01.spec.ts index ae3ed825a..6d7bc320c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/evergreen-candle-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/evergreen-candle-01.spec.ts @@ -9,191 +9,191 @@ describe(`with evergreenCandle01 preset`, () => { const evergreenCandle01Preset = evergreenCandle01().build(); expect(evergreenCandle01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Helles Oliv:#BAB86C", - "en-GB": "Light Olive:#BAB86C", - "en-US": "Light Olive:#BAB86C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2160, - "w": 3840, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.1.jpeg", - }, - { - "dimensions": { - "h": 2160, - "w": 3840, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.3.jpeg", - }, - { - "dimensions": { - "h": 6720, - "w": 4480, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - ], - "sku": "EC-0993", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Helles Oliv:#BAB86C", + "en-GB": "Light Olive:#BAB86C", + "en-US": "Light Olive:#BAB86C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2160, + "w": 3840, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.1.jpeg", + }, + { + "dimensions": { + "h": 2160, + "w": 3840, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.3.jpeg", + }, + { + "dimensions": { + "h": 6720, + "w": 4480, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "EC-0993", + } + `); }); it(`should return a evergreenCandle01 preset when built for graphql`, () => { const evergreenCandle01PresetGraphql = evergreenCandle01().buildGraphql(); expect(evergreenCandle01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Light Olive:#BAB86C","de-DE":"Helles Oliv:#BAB86C","en-US":"Light Olive:#BAB86C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2160, - "width": 3840, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.1.jpeg", - }, - { - "dimensions": { - "height": 2160, - "width": 3840, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.3.jpeg", - }, - { - "dimensions": { - "height": 6720, - "width": 4480, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "EC-0993", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Light Olive:#BAB86C","de-DE":"Helles Oliv:#BAB86C","en-US":"Light Olive:#BAB86C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2160, + "width": 3840, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.1.jpeg", + }, + { + "dimensions": { + "height": 2160, + "width": 3840, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.3.jpeg", + }, + { + "dimensions": { + "height": 6720, + "width": 4480, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "EC-0993", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/evergreen-candle-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/evergreen-candle-01.ts index b2acb3c6c..63402ef58 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/evergreen-candle-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/evergreen-candle-01.ts @@ -11,14 +11,17 @@ const evergreenCandle01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(299)) .country('DE'), PriceDraft.presets .empty() + .key('299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(299)) .country('GB'), PriceDraft.presets .empty() + .key('299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/fawn-armchair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/fawn-armchair-01.spec.ts index a0c225367..22c339141 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/fawn-armchair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/fawn-armchair-01.spec.ts @@ -8,183 +8,183 @@ describe(`with fawnArmchair01 preset`, () => { it(`should return a fawnArmchair01 preset`, () => { const fawnArmchair01Preset = fawnArmchair01().build(); expect(fawnArmchair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Leder erfordert besondere Pflege", - "en-GB": "- Leather requires special care", - "en-US": "- Leather requires special care", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3200, - "w": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Fawn_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "USD", - }, - }, - ], - "sku": "FARM-05", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Leder erfordert besondere Pflege", + "en-GB": "- Leather requires special care", + "en-US": "- Leather requires special care", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Fawn_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + ], + "sku": "FARM-05", + } + `); }); it(`should return a fawnArmchair01 preset when built for graphql`, () => { const fawnArmchair01PresetGraphql = fawnArmchair01().buildGraphql(); expect(fawnArmchair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Leather requires special care","de-DE":"- Leder erfordert besondere Pflege","en-US":"- Leather requires special care"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3200, - "width": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Fawn_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "FARM-05", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Leather requires special care","de-DE":"- Leder erfordert besondere Pflege","en-US":"- Leather requires special care"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3200, + "width": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Fawn_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "FARM-05", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/fawn-armchair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/fawn-armchair-01.ts index d88d8c1dc..a807f6411 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/fawn-armchair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/fawn-armchair-01.ts @@ -11,14 +11,17 @@ const fawnArmchair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('59900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(59900)) .country('DE'), PriceDraft.presets .empty() + .key('59900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(59900)) .country('GB'), PriceDraft.presets .empty() + .key('59900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(59900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-01.spec.ts index d13a0ecaa..2a153db50 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-01.spec.ts @@ -6,200 +6,200 @@ describe(`with geometricPillowCase01 preset`, () => { const geometricPillowCase01Preset = geometricPillowCase01().build(); expect(geometricPillowCase01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-GB": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-US": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable -", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.1.jpeg", - }, - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - ], - "sku": "GPC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-GB": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-US": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable + ", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.1.jpeg", + }, + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "GPC-01", + } + `); }); it(`should return a geometricPillowCase01 preset when built for graphql`, () => { const geometricPillowCase01PresetGraphql = geometricPillowCase01().buildGraphql(); expect(geometricPillowCase01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.1.jpeg", - }, - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "GPC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.1.jpeg", + }, + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GPC-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-01.ts index 395770202..e9ffa9485 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-01.ts @@ -11,14 +11,17 @@ const geometricPillowCase01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1999)) .country('DE'), PriceDraft.presets .empty() + .key('1999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1999)) .country('GB'), PriceDraft.presets .empty() + .key('1999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-02.spec.ts index b68c399d8..79def4239 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-02.spec.ts @@ -6,200 +6,200 @@ describe(`with geometricPillowCase02 preset`, () => { const geometricPillowCase02Preset = geometricPillowCase02().build(); expect(geometricPillowCase02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-GB": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-US": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable -", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.1.jpeg", - }, - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - ], - "sku": "GPC-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-GB": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-US": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable + ", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.1.jpeg", + }, + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "GPC-02", + } + `); }); it(`should return a geometricPillowCase02 preset when built for graphql`, () => { const geometricPillowCase02PresetGraphql = geometricPillowCase02().buildGraphql(); expect(geometricPillowCase02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Light Pink:#FFB6C1","en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.1.jpeg", - }, - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "GPC-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Light Pink:#FFB6C1","en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.1.jpeg", + }, + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GPC-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-02.ts index 75f8dce09..4558a1199 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-02.ts @@ -11,14 +11,17 @@ const geometricPillowCase02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1999)) .country('DE'), PriceDraft.presets .empty() + .key('1999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1999)) .country('GB'), PriceDraft.presets .empty() + .key('1999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-03.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-03.spec.ts index 1de6a53eb..415895352 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-03.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-03.spec.ts @@ -6,200 +6,200 @@ describe(`with geometricPillowCase03 preset`, () => { const geometricPillowCase03Preset = geometricPillowCase03().build(); expect(geometricPillowCase03Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-GB": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-US": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable -", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.1.jpeg", - }, - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - ], - "sku": "GPC-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-GB": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-US": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable + ", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.1.jpeg", + }, + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "GPC-03", + } + `); }); it(`should return a geometricPillowCase03 preset when built for graphql`, () => { const geometricPillowCase03PresetGraphql = geometricPillowCase03().buildGraphql(); expect(geometricPillowCase03PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.1.jpeg", - }, - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "GPC-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.1.jpeg", + }, + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GPC-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-03.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-03.ts index 9ca4027ad..437824407 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-03.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case-03.ts @@ -11,14 +11,17 @@ const geometricPillowCase03 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1999)) .country('DE'), PriceDraft.presets .empty() + .key('1999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1999)) .country('GB'), PriceDraft.presets .empty() + .key('1999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/glam-armchair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/glam-armchair-01.spec.ts index 133793191..23131a9ce 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/glam-armchair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/glam-armchair-01.spec.ts @@ -5,186 +5,186 @@ describe(`with glamArmchair01 preset`, () => { it(`should return a glamArmchair01 preset`, () => { const glamArmchair01Preset = glamArmchair01().build(); expect(glamArmchair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung -- Kissen inklusive", - "en-GB": "- Dry clean only -- Pillow included", - "en-US": "- Dry clean only -- Pillow included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Goldene Rute:#DAA520", - "en-GB": "Golden Rod:#DAA520", - "en-US": "Golden Rod:#DAA520", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Glam_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "USD", - }, - }, - ], - "sku": "GARM-093", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung + - Kissen inklusive", + "en-GB": "- Dry clean only + - Pillow included", + "en-US": "- Dry clean only + - Pillow included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Goldene Rute:#DAA520", + "en-GB": "Golden Rod:#DAA520", + "en-US": "Golden Rod:#DAA520", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Glam_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + ], + "sku": "GARM-093", + } + `); }); it(`should return a glamArmchair01 preset when built for graphql`, () => { const glamArmchair01PresetGraphql = glamArmchair01().buildGraphql(); expect(glamArmchair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only\\n- Pillow included","de-DE":"- Nur chemische Reinigung\\n- Kissen inklusive","en-US":"- Dry clean only\\n- Pillow included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Golden Rod:#DAA520","de-DE":"Goldene Rute:#DAA520","en-US":"Golden Rod:#DAA520"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Glam_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "GARM-093", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only\\n- Pillow included","de-DE":"- Nur chemische Reinigung\\n- Kissen inklusive","en-US":"- Dry clean only\\n- Pillow included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Golden Rod:#DAA520","de-DE":"Goldene Rute:#DAA520","en-US":"Golden Rod:#DAA520"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Glam_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GARM-093", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/glam-armchair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/glam-armchair-01.ts index da6607ed0..24f50bc8d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/glam-armchair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/glam-armchair-01.ts @@ -11,14 +11,17 @@ const glamArmchair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('59900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(59900)) .country('DE'), PriceDraft.presets .empty() + .key('59900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(59900)) .country('GB'), PriceDraft.presets .empty() + .key('59900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(59900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses-01.spec.ts index dc99c31fc..030d868ba 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses-01.spec.ts @@ -6,237 +6,237 @@ describe(`with goldRimmedChampagneGlasses01 preset`, () => { const goldRimmedChampagneGlasses01Preset = goldRimmedChampagneGlasses01().build(); expect(goldRimmedChampagneGlasses01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Set mit 5 Gläsern -- Importierter Kristall -- Goldpolitur an den Felgen", - "en-GB": "- Set of 5 glasses -- Imported crystal -- Gold polish on the rims", - "en-US": "- Set of 5 glasses -- Imported crystal -- Gold polish on the rims", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3288, - "w": 2192, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.1.jpeg", - }, - { - "dimensions": { - "h": 4113, - "w": 5143, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.2.jpeg", - }, - { - "dimensions": { - "h": 3435, - "w": 6869, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.4.jpeg", - }, - { - "dimensions": { - "h": 5077, - "w": 8080, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3000, - "currencyCode": "USD", - }, - }, - ], - "sku": "GRCG-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Set mit 5 Gläsern + - Importierter Kristall + - Goldpolitur an den Felgen", + "en-GB": "- Set of 5 glasses + - Imported crystal + - Gold polish on the rims", + "en-US": "- Set of 5 glasses + - Imported crystal + - Gold polish on the rims", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3288, + "w": 2192, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.1.jpeg", + }, + { + "dimensions": { + "h": 4113, + "w": 5143, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.2.jpeg", + }, + { + "dimensions": { + "h": 3435, + "w": 6869, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.4.jpeg", + }, + { + "dimensions": { + "h": 5077, + "w": 8080, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3000, + "currencyCode": "USD", + }, + }, + ], + "sku": "GRCG-01", + } + `); }); it(`should return a goldRimmedChampagneGlasses01 preset when built for graphql`, () => { const goldRimmedChampagneGlasses01PresetGraphql = goldRimmedChampagneGlasses01().buildGraphql(); expect(goldRimmedChampagneGlasses01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set of 5 glasses\\n- Imported crystal\\n- Gold polish on the rims","de-DE":"- Set mit 5 Gläsern\\n- Importierter Kristall\\n- Goldpolitur an den Felgen","en-US":"- Set of 5 glasses\\n- Imported crystal\\n- Gold polish on the rims"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3288, - "width": 2192, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.1.jpeg", - }, - { - "dimensions": { - "height": 4113, - "width": 5143, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.2.jpeg", - }, - { - "dimensions": { - "height": 3435, - "width": 6869, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.4.jpeg", - }, - { - "dimensions": { - "height": 5077, - "width": 8080, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3000, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3000, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "GRCG-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set of 5 glasses\\n- Imported crystal\\n- Gold polish on the rims","de-DE":"- Set mit 5 Gläsern\\n- Importierter Kristall\\n- Goldpolitur an den Felgen","en-US":"- Set of 5 glasses\\n- Imported crystal\\n- Gold polish on the rims"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3288, + "width": 2192, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.1.jpeg", + }, + { + "dimensions": { + "height": 4113, + "width": 5143, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.2.jpeg", + }, + { + "dimensions": { + "height": 3435, + "width": 6869, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.4.jpeg", + }, + { + "dimensions": { + "height": 5077, + "width": 8080, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GRCG-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses-01.ts index 47e07b88b..b5f512566 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses-01.ts @@ -11,14 +11,17 @@ const goldRimmedChampagneGlasses01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('3000EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(3000)) .country('DE'), PriceDraft.presets .empty() + .key('3000GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(3000)) .country('GB'), PriceDraft.presets .empty() + .key('3000USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(3000)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/green-serving-plate-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/green-serving-plate-01.spec.ts index cbc1dede5..12f7e1f07 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/green-serving-plate-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/green-serving-plate-01.spec.ts @@ -6,187 +6,187 @@ describe(`with greenServingPlate01 preset`, () => { const greenServingPlate01Preset = greenServingPlate01().build(); expect(greenServingPlate01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Grün:#008000", - "en-GB": "Green:#008000", - "en-US": "Green:#008000", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4426, - "w": 4631, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.1.jpeg", - }, - { - "dimensions": { - "h": 3653, - "w": 5705, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "USD", - }, - }, - ], - "sku": "GC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grün:#008000", + "en-GB": "Green:#008000", + "en-US": "Green:#008000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4426, + "w": 4631, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.1.jpeg", + }, + { + "dimensions": { + "h": 3653, + "w": 5705, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + ], + "sku": "GC-01", + } + `); }); it(`should return a greenServingPlate01 preset when built for graphql`, () => { const greenServingPlate01PresetGraphql = greenServingPlate01().buildGraphql(); expect(greenServingPlate01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", - }, - { - "name": "color", - "value": "{"en-GB":"Green:#008000","de-DE":"Grün:#008000","en-US":"Green:#008000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4426, - "width": 4631, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.1.jpeg", - }, - { - "dimensions": { - "height": 3653, - "width": 5705, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "GC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", + }, + { + "name": "color", + "value": "{"en-GB":"Green:#008000","de-DE":"Grün:#008000","en-US":"Green:#008000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4426, + "width": 4631, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.1.jpeg", + }, + { + "dimensions": { + "height": 3653, + "width": 5705, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GC-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/green-serving-plate-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/green-serving-plate-01.ts index 5440b2cb9..97f203620 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/green-serving-plate-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/green-serving-plate-01.ts @@ -11,14 +11,17 @@ const greenServingPlate01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(599)) .country('DE'), PriceDraft.presets .empty() + .key('599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(599)) .country('GB'), PriceDraft.presets .empty() + .key('599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass-01.spec.ts index c72e74e5f..a8298d7c5 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass-01.spec.ts @@ -6,177 +6,209 @@ describe(`with harmonyDrinkingGlass01 preset`, () => { const harmonyDrinkingGlass01Preset = harmonyDrinkingGlass01().build(); expect(harmonyDrinkingGlass01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harmony_Drinking_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "EUR", - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "USD", - }, - }, - ], - "sku": "HDG-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harmony_Drinking_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + ], + "sku": "HDG-02", + } + `); }); it(`should return a harmonyDrinkingGlass01 preset when built for graphql`, () => { const harmonyDrinkingGlass01PresetGraphql = harmonyDrinkingGlass01().buildGraphql(); expect(harmonyDrinkingGlass01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harmony_Drinking_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "HDG-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harmony_Drinking_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "HDG-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass-01.ts index a45e52d2f..71979aee9 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass-01.ts @@ -20,17 +20,25 @@ const harmonyDrinkingGlass01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('2499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(2499)) .country('DE'), PriceDraft.presets .empty() + .key('2499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(2499)) + .country('GB'), + PriceDraft.presets + .empty() + .key('2599GBP_dist') + .value(MoneyDraft.random().currencyCode('GBP').centAmount(2599)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) ) .country('GB'), PriceDraft.presets .empty() + .key('2499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(2499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harvest-plate-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harvest-plate-01.spec.ts index 4102c8b5c..938cfa586 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harvest-plate-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harvest-plate-01.spec.ts @@ -5,171 +5,171 @@ describe(`with harvestPlate01 preset`, () => { it(`should return a harvestPlate01 preset`, () => { const harvestPlate01Preset = harvestPlate01().build(); expect(harvestPlate01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3812, - "w": 4421, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harvest_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "USD", - }, - }, - ], - "sku": "HP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3812, + "w": 4421, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harvest_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "USD", + }, + }, + ], + "sku": "HP-01", + } + `); }); it(`should return a harvestPlate01 preset when built for graphql`, () => { const harvestPlate01PresetGraphql = harvestPlate01().buildGraphql(); expect(harvestPlate01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3812, - "width": 4421, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harvest_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "HP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3812, + "width": 4421, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harvest_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "HP-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harvest-plate-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harvest-plate-01.ts index f24cc6105..3d84b9c3e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harvest-plate-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/harvest-plate-01.ts @@ -11,14 +11,17 @@ const harvestPlate01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1399EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1399)) .country('DE'), PriceDraft.presets .empty() + .key('1399GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1399)) .country('GB'), PriceDraft.presets .empty() + .key('1399USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1399)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ice-bucket-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ice-bucket-01.spec.ts index 6d24ea40b..9a2090776 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ice-bucket-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ice-bucket-01.spec.ts @@ -5,174 +5,174 @@ describe(`with iceBucket01 preset`, () => { it(`should return a iceBucket01 preset`, () => { const iceBucket01Preset = iceBucket01().build(); expect(iceBucket01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Stainless steel -- Dishwasher safe", - "en-US": "- Stainless steel -- Dishwasher safe", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4992, - "w": 5072, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ice_Bucket-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "USD", - }, - }, - ], - "sku": "BUCK-023", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Spülmaschinenfest", + "en-GB": "- Stainless steel + - Dishwasher safe", + "en-US": "- Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4992, + "w": 5072, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ice_Bucket-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + ], + "sku": "BUCK-023", + } + `); }); it(`should return a iceBucket01 preset when built for graphql`, () => { const iceBucket01PresetGraphql = iceBucket01().buildGraphql(); expect(iceBucket01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4992, - "width": 5072, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ice_Bucket-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "BUCK-023", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4992, + "width": 5072, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ice_Bucket-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BUCK-023", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ice-bucket-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ice-bucket-01.ts index ac1da8eda..7a53f3651 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ice-bucket-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ice-bucket-01.ts @@ -11,14 +11,17 @@ const iceBucket01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(499)) .country('DE'), PriceDraft.presets .empty() + .key('499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(499)) .country('GB'), PriceDraft.presets .empty() + .key('499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover-01.spec.ts index ed26e39c9..0ad13451f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover-01.spec.ts @@ -6,180 +6,212 @@ describe(`with idunPillowCover01 preset`, () => { const idunPillowCover01Preset = idunPillowCover01().build(); expect(idunPillowCover01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Siena:#A0522D", - "en-GB": "Siena:#A0522D", - "en-US": "Siena:#A0522D", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3996, - "w": 5994, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Idun_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "EUR", - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "USD", - }, - }, - ], - "sku": "IPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Siena:#A0522D", + "en-GB": "Siena:#A0522D", + "en-US": "Siena:#A0522D", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3996, + "w": 5994, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Idun_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "GBP", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "USD", + }, + }, + ], + "sku": "IPC-09", + } + `); }); it(`should return a idunPillowCover01 preset when built for graphql`, () => { const idunPillowCover01PresetGraphql = idunPillowCover01().buildGraphql(); expect(idunPillowCover01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Siena:#A0522D","de-DE":"Siena:#A0522D","en-US":"Siena:#A0522D"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3996, - "width": 5994, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Idun_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "IPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Siena:#A0522D","de-DE":"Siena:#A0522D","en-US":"Siena:#A0522D"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3996, + "width": 5994, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Idun_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "IPC-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover-01.ts index 0e37a0ece..19314bd63 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover-01.ts @@ -20,17 +20,25 @@ const idunPillowCover01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1399EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1399)) .country('DE'), PriceDraft.presets .empty() + .key('1399GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1399)) + .country('GB'), + PriceDraft.presets + .empty() + .key('1299GBP_dist') + .value(MoneyDraft.random().currencyCode('GBP').centAmount(1299)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) ) .country('GB'), PriceDraft.presets .empty() + .key('1399USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1399)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-01.spec.ts index a9a2d47c1..f706008e9 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-01.spec.ts @@ -6,169 +6,169 @@ describe(`with indoorJutePlanter01 preset`, () => { const indoorJutePlanter01Preset = indoorJutePlanter01().build(); expect(indoorJutePlanter01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Pflanze nicht im Lieferumfang enthalten", - "en-GB": "- Plant not included", - "en-US": "- Plant not included", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Large", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "USD", - }, - }, - ], - "sku": "IJP-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Pflanze nicht im Lieferumfang enthalten", + "en-GB": "- Plant not included", + "en-US": "- Plant not included", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Large", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + ], + "sku": "IJP-03", + } + `); }); it(`should return a indoorJutePlanter01 preset when built for graphql`, () => { const indoorJutePlanter01PresetGraphql = indoorJutePlanter01().buildGraphql(); expect(indoorJutePlanter01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Plant not included","en-US":"- Plant not included","de-DE":"- Pflanze nicht im Lieferumfang enthalten"}", - }, - { - "name": "size", - "value": "{"en-GB":"Large"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "IJP-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Plant not included","en-US":"- Plant not included","de-DE":"- Pflanze nicht im Lieferumfang enthalten"}", + }, + { + "name": "size", + "value": "{"en-GB":"Large"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "IJP-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-01.ts index 07a06b247..7cc0d081e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-01.ts @@ -11,14 +11,17 @@ const indoorJutePlanter01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('3299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(3299)) .country('DE'), PriceDraft.presets .empty() + .key('3299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(3299)) .country('GB'), PriceDraft.presets .empty() + .key('3299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(3299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-02.spec.ts index b6f58f947..9aa1d907b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-02.spec.ts @@ -6,169 +6,169 @@ describe(`with indoorJutePlanter02 preset`, () => { const indoorJutePlanter02Preset = indoorJutePlanter02().build(); expect(indoorJutePlanter02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Pflanze nicht im Lieferumfang enthalten", - "en-GB": "- Plant not included", - "en-US": "- Plant not included", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Small", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - ], - "sku": "IJP-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Pflanze nicht im Lieferumfang enthalten", + "en-GB": "- Plant not included", + "en-US": "- Plant not included", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Small", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "IJP-04", + } + `); }); it(`should return a indoorJutePlanter02 preset when built for graphql`, () => { const indoorJutePlanter02PresetGraphql = indoorJutePlanter02().buildGraphql(); expect(indoorJutePlanter02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Plant not included","en-US":"- Plant not included","de-DE":"- Pflanze nicht im Lieferumfang enthalten"}", - }, - { - "name": "size", - "value": "{"en-GB":"Small"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "IJP-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Plant not included","en-US":"- Plant not included","de-DE":"- Pflanze nicht im Lieferumfang enthalten"}", + }, + { + "name": "size", + "value": "{"en-GB":"Small"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "IJP-04", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-02.ts index 77105ae10..3d3cb4d1f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter-02.ts @@ -11,14 +11,17 @@ const indoorJutePlanter02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1999)) .country('DE'), PriceDraft.presets .empty() + .key('1999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1999)) .country('GB'), PriceDraft.presets .empty() + .key('1999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair-01.spec.ts index d1dc8623c..615cb7c35 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair-01.spec.ts @@ -6,206 +6,206 @@ describe(`with ivoryLoungeChair01 preset`, () => { const ivoryLoungeChair01Preset = ivoryLoungeChair01().build(); expect(ivoryLoungeChair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung -- Montage im Lieferumfang enthalten", - "en-GB": "- Dry clean only -- Assembly included in delivery", - "en-US": "- Dry clean only -- Assembly included in delivery", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Elfenbein:#FFFFF0", - "en-GB": "Ivory:#FFFFF0", - "en-US": "Ivory:#FFFFF0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.1.jpeg", - }, - { - "dimensions": { - "h": 4500, - "w": 3375, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.2.jpeg", - }, - { - "dimensions": { - "h": 5000, - "w": 3750, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "ILC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung + - Montage im Lieferumfang enthalten", + "en-GB": "- Dry clean only + - Assembly included in delivery", + "en-US": "- Dry clean only + - Assembly included in delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Elfenbein:#FFFFF0", + "en-GB": "Ivory:#FFFFF0", + "en-US": "Ivory:#FFFFF0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.1.jpeg", + }, + { + "dimensions": { + "h": 4500, + "w": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.2.jpeg", + }, + { + "dimensions": { + "h": 5000, + "w": 3750, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "ILC-01", + } + `); }); it(`should return a ivoryLoungeChair01 preset when built for graphql`, () => { const ivoryLoungeChair01PresetGraphql = ivoryLoungeChair01().buildGraphql(); expect(ivoryLoungeChair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only\\n- Assembly included in delivery","de-DE":"- Nur chemische Reinigung\\n- Montage im Lieferumfang enthalten","en-US":"- Dry clean only\\n- Assembly included in delivery"}", - }, - { - "name": "color", - "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.1.jpeg", - }, - { - "dimensions": { - "height": 4500, - "width": 3375, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.2.jpeg", - }, - { - "dimensions": { - "height": 5000, - "width": 3750, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "ILC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only\\n- Assembly included in delivery","de-DE":"- Nur chemische Reinigung\\n- Montage im Lieferumfang enthalten","en-US":"- Dry clean only\\n- Assembly included in delivery"}", + }, + { + "name": "color", + "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.1.jpeg", + }, + { + "dimensions": { + "height": 4500, + "width": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.2.jpeg", + }, + { + "dimensions": { + "height": 5000, + "width": 3750, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ILC-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair-01.ts index c049eab2d..e3d04c00d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair-01.ts @@ -11,14 +11,17 @@ const ivoryLoungeChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('29900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(29900)) .country('DE'), PriceDraft.presets .empty() + .key('29900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(29900)) .country('GB'), PriceDraft.presets .empty() + .key('29900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(29900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-plate-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-plate-01.spec.ts index fcb93cbcb..184284ad4 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-plate-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-plate-01.spec.ts @@ -5,171 +5,171 @@ describe(`with ivoryPlate01 preset`, () => { it(`should return a ivoryPlate01 preset`, () => { const ivoryPlate01Preset = ivoryPlate01().build(); expect(ivoryPlate01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Elfenbein:#FFFFF0", - "en-GB": "Ivory:#FFFFF0", - "en-US": "Ivory:#FFFFF0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4576, - "w": 5088, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1699, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1699, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1699, - "currencyCode": "USD", - }, - }, - ], - "sku": "ISP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Elfenbein:#FFFFF0", + "en-GB": "Ivory:#FFFFF0", + "en-US": "Ivory:#FFFFF0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4576, + "w": 5088, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1699, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1699, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1699, + "currencyCode": "USD", + }, + }, + ], + "sku": "ISP-01", + } + `); }); it(`should return a ivoryPlate01 preset when built for graphql`, () => { const ivoryPlate01PresetGraphql = ivoryPlate01().buildGraphql(); expect(ivoryPlate01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", - }, - { - "name": "color", - "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4576, - "width": 5088, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1699, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1699, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1699, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "ISP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", + }, + { + "name": "color", + "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4576, + "width": 5088, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1699, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1699, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1699, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ISP-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-plate-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-plate-01.ts index 34a60a50e..42981cb0e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-plate-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/ivory-plate-01.ts @@ -11,14 +11,17 @@ const ivoryPlate01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1699EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1699)) .country('DE'), PriceDraft.presets .empty() + .key('1699GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1699)) .country('GB'), PriceDraft.presets .empty() + .key('1699USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1699)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/jute-rug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/jute-rug-01.spec.ts index 8d9f3ae4c..bc076a6d9 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/jute-rug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/jute-rug-01.spec.ts @@ -5,209 +5,241 @@ describe(`with juteRug01 preset`, () => { it(`should return a juteRug01 preset`, () => { const juteRug01Preset = juteRug01().build(); expect(juteRug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 10 Fuß x 12 Fuß", - "en-GB": "- 10ft x 12ft", - "en-US": "- 10ft x 12ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5223, - "w": 7600, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.2.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - ], - "sku": "JAR-08", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 10 Fuß x 12 Fuß", + "en-GB": "- 10ft x 12ft", + "en-US": "- 10ft x 12ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5223, + "w": 7600, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.2.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39950GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39950, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "JAR-08", + } + `); }); it(`should return a juteRug01 preset when built for graphql`, () => { const juteRug01PresetGraphql = juteRug01().buildGraphql(); expect(juteRug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 10ft x 12ft","de-DE":"- 10 Fuß x 12 Fuß","en-US":"- 10ft x 12ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5223, - "width": 7600, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.2.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "JAR-08", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 10ft x 12ft","de-DE":"- 10 Fuß x 12 Fuß","en-US":"- 10ft x 12ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5223, + "width": 7600, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.2.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39950GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39950, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "JAR-08", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/jute-rug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/jute-rug-01.ts index f8fcbae8e..b1fef4d7a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/jute-rug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/jute-rug-01.ts @@ -20,17 +20,25 @@ const juteRug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('39900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(39900)) .country('DE'), PriceDraft.presets .empty() + .key('39900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(39900)) + .country('GB'), + PriceDraft.presets + .empty() + .key('39950GBP_dist') + .value(MoneyDraft.random().currencyCode('GBP').centAmount(39950)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) ) .country('GB'), PriceDraft.presets .empty() + .key('39900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(39900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover-01.spec.ts index 50e5a66ab..b5184bd01 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover-01.spec.ts @@ -6,177 +6,177 @@ describe(`with lanaPillowCover01 preset`, () => { const lanaPillowCover01Preset = lanaPillowCover01().build(); expect(lanaPillowCover01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten -- Verfügt über ein Reißverschlussgehäuse", - "en-GB": "- Machine washable -- Pillow not included -- Has a zip enclosure", - "en-US": "- Machine washable -- Pillow not included -- Has a zip enclosure", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3143, - "w": 4350, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Lana_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "USD", - }, - }, - ], - "sku": "LPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten + - Verfügt über ein Reißverschlussgehäuse", + "en-GB": "- Machine washable + - Pillow not included + - Has a zip enclosure", + "en-US": "- Machine washable + - Pillow not included + - Has a zip enclosure", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3143, + "w": 4350, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Lana_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + ], + "sku": "LPC-09", + } + `); }); it(`should return a lanaPillowCover01 preset when built for graphql`, () => { const lanaPillowCover01PresetGraphql = lanaPillowCover01().buildGraphql(); expect(lanaPillowCover01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included\\n- Has a zip enclosure","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten\\n- Verfügt über ein Reißverschlussgehäuse","en-US":"- Machine washable\\n- Pillow not included\\n- Has a zip enclosure"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3143, - "width": 4350, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Lana_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "LPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included\\n- Has a zip enclosure","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten\\n- Verfügt über ein Reißverschlussgehäuse","en-US":"- Machine washable\\n- Pillow not included\\n- Has a zip enclosure"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3143, + "width": 4350, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Lana_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LPC-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover-01.ts index 904e4ebf1..54ddad386 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover-01.ts @@ -11,14 +11,17 @@ const lanaPillowCover01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1099EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1099)) .country('DE'), PriceDraft.presets .empty() + .key('1099GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1099)) .country('GB'), PriceDraft.presets .empty() + .key('1099USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1099)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-01.spec.ts index c703238c4..9dc9dc95c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-01.spec.ts @@ -6,194 +6,194 @@ describe(`with largeCeramicPlate01 preset`, () => { const largeCeramicPlate01Preset = largeCeramicPlate01().build(); expect(largeCeramicPlate01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Helles Oliv:#BAB86C", - "en-GB": "Light Olive:#BAB86C", - "en-US": "Light Olive:#BAB86C", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Ceramic -- Sold as 1 piece -- Dishwasher safe", - "en-GB": "- Ceramic -- Sold as 1 piece -- Dishwasher safe -- Microwave safe", - "en-US": "- Ceramic -- Sold as 1 piece -- Dishwasher safe", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2700, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.1.jpeg", - }, - { - "dimensions": { - "h": 2700, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - ], - "sku": "LCP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Helles Oliv:#BAB86C", + "en-GB": "Light Olive:#BAB86C", + "en-US": "Light Olive:#BAB86C", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Ceramic + - Sold as 1 piece + - Dishwasher safe", + "en-GB": "- Ceramic + - Sold as 1 piece + - Dishwasher safe + - Microwave safe", + "en-US": "- Ceramic + - Sold as 1 piece + - Dishwasher safe", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2700, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.1.jpeg", + }, + { + "dimensions": { + "h": 2700, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "LCP-01", + } + `); }); it(`should return a largeCeramicPlate01 preset when built for graphql`, () => { const largeCeramicPlate01PresetGraphql = largeCeramicPlate01().buildGraphql(); expect(largeCeramicPlate01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Light Olive:#BAB86C","en-GB":"Light Olive:#BAB86C","de-DE":"Helles Oliv:#BAB86C"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe","en-GB":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe\\n- Microwave safe","de-DE":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2700, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.1.jpeg", - }, - { - "dimensions": { - "height": 2700, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "LCP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Light Olive:#BAB86C","en-GB":"Light Olive:#BAB86C","de-DE":"Helles Oliv:#BAB86C"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe","en-GB":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe\\n- Microwave safe","de-DE":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2700, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.1.jpeg", + }, + { + "dimensions": { + "height": 2700, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LCP-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-01.ts index 73f342f51..93f7a1b05 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-01.ts @@ -11,14 +11,17 @@ const largeCeramicPlate01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('399EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(399)) .country('DE'), PriceDraft.presets .empty() + .key('399GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(399)) .country('GB'), PriceDraft.presets .empty() + .key('399USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(399)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-02.spec.ts index 5652e08fe..368cddf42 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-02.spec.ts @@ -6,194 +6,194 @@ describe(`with largeCeramicPlate02 preset`, () => { const largeCeramicPlate02Preset = largeCeramicPlate02().build(); expect(largeCeramicPlate02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Ceramic -- Sold as 1 piece -- Dishwasher safe", - "en-GB": "- Ceramic -- Sold as 1 piece -- Dishwasher safe -- Microwave safe", - "en-US": "- Ceramic -- Sold as 1 piece -- Dishwasher safe", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2700, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.1.jpeg", - }, - { - "dimensions": { - "h": 2700, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - ], - "sku": "LCP-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Ceramic + - Sold as 1 piece + - Dishwasher safe", + "en-GB": "- Ceramic + - Sold as 1 piece + - Dishwasher safe + - Microwave safe", + "en-US": "- Ceramic + - Sold as 1 piece + - Dishwasher safe", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2700, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.1.jpeg", + }, + { + "dimensions": { + "h": 2700, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "LCP-02", + } + `); }); it(`should return a largeCeramicPlate02 preset when built for graphql`, () => { const largeCeramicPlate02PresetGraphql = largeCeramicPlate02().buildGraphql(); expect(largeCeramicPlate02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Light Gray:#D3D3D3","en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe","en-GB":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe\\n- Microwave safe","de-DE":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2700, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.1.jpeg", - }, - { - "dimensions": { - "height": 2700, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "LCP-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Light Gray:#D3D3D3","en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe","en-GB":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe\\n- Microwave safe","de-DE":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2700, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.1.jpeg", + }, + { + "dimensions": { + "height": 2700, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LCP-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-02.ts index 9b548426f..2db033d67 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate-02.ts @@ -11,14 +11,17 @@ const largeCeramicPlate02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('399EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(399)) .country('DE'), PriceDraft.presets .empty() + .key('399GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(399)) .country('GB'), PriceDraft.presets .empty() + .key('399USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(399)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leah-armchair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leah-armchair-01.spec.ts index 7db19d595..daff368e7 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leah-armchair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leah-armchair-01.spec.ts @@ -5,183 +5,183 @@ describe(`with leahArmchair01 preset`, () => { it(`should return a leahArmchair01 preset`, () => { const leahArmchair01Preset = leahArmchair01().build(); expect(leahArmchair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Grau:#808080", - "en-GB": "Grey:#808080", - "en-US": "Gray:#808080", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3200, - "w": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leah_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - ], - "sku": "LAMR-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grau:#808080", + "en-GB": "Grey:#808080", + "en-US": "Gray:#808080", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leah_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "LAMR-03", + } + `); }); it(`should return a leahArmchair01 preset when built for graphql`, () => { const leahArmchair01PresetGraphql = leahArmchair01().buildGraphql(); expect(leahArmchair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", - }, - { - "name": "color", - "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3200, - "width": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leah_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "LAMR-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", + }, + { + "name": "color", + "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3200, + "width": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leah_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LAMR-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leah-armchair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leah-armchair-01.ts index 521c3d4ac..f14f9c2ad 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leah-armchair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leah-armchair-01.ts @@ -11,14 +11,17 @@ const leahArmchair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('39900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(39900)) .country('DE'), PriceDraft.presets .empty() + .key('39900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(39900)) .country('GB'), PriceDraft.presets .empty() + .key('39900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(39900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-coaster-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-coaster-01.spec.ts index 76f52deb7..d0aa065d3 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-coaster-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-coaster-01.spec.ts @@ -6,171 +6,171 @@ describe(`with leatherCoaster01 preset`, () => { const leatherCoaster01Preset = leatherCoaster01().build(); expect(leatherCoaster01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 4 Untersetzer", - "en-GB": "- Includes 4 coasters", - "en-US": "- Includes 4 coasters", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2864, - "w": 2864, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Coaster-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "USD", - }, - }, - ], - "sku": "LCO-034", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 4 Untersetzer", + "en-GB": "- Includes 4 coasters", + "en-US": "- Includes 4 coasters", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2864, + "w": 2864, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Coaster-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + ], + "sku": "LCO-034", + } + `); }); it(`should return a leatherCoaster01 preset when built for graphql`, () => { const leatherCoaster01PresetGraphql = leatherCoaster01().buildGraphql(); expect(leatherCoaster01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 4 coasters","de-DE":"- Enthält 4 Untersetzer","en-US":"- Includes 4 coasters"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2864, - "width": 2864, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Coaster-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "LCO-034", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 4 coasters","de-DE":"- Enthält 4 Untersetzer","en-US":"- Includes 4 coasters"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2864, + "width": 2864, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Coaster-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LCO-034", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-coaster-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-coaster-01.ts index 411f312d8..644f979bc 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-coaster-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-coaster-01.ts @@ -11,14 +11,17 @@ const leatherCoaster01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('2499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(2499)) .country('DE'), PriceDraft.presets .empty() + .key('2499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(2499)) .country('GB'), PriceDraft.presets .empty() + .key('2499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(2499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair-01.spec.ts index ce7e841df..a1272fd50 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair-01.spec.ts @@ -6,195 +6,195 @@ describe(`with leatherWeaveChair01 preset`, () => { const leatherWeaveChair01Preset = leatherWeaveChair01().build(); expect(leatherWeaveChair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "new-arrival", - "value": true, - }, - { - "name": "color", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.1.jpeg", - }, - { - "dimensions": { - "h": 4500, - "w": 3375, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 34900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - ], - "sku": "BA-092", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "new-arrival", + "value": true, + }, + { + "name": "color", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.1.jpeg", + }, + { + "dimensions": { + "h": 4500, + "w": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 34900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "BA-092", + } + `); }); it(`should return a leatherWeaveChair01 preset when built for graphql`, () => { const leatherWeaveChair01PresetGraphql = leatherWeaveChair01().buildGraphql(); expect(leatherWeaveChair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "color", - "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.1.jpeg", - }, - { - "dimensions": { - "height": 4500, - "width": 3375, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 34900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "BA-092", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "color", + "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.1.jpeg", + }, + { + "dimensions": { + "height": 4500, + "width": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 34900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BA-092", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair-01.ts index 82eb08c1e..a51ddbcf3 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair-01.ts @@ -11,14 +11,17 @@ const leatherWeaveChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('39900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(39900)) .country('DE'), PriceDraft.presets .empty() + .key('39900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(34900)) .country('GB'), PriceDraft.presets .empty() + .key('39900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(39900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover-01.spec.ts index e7e766bb2..869e73c7a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover-01.spec.ts @@ -6,174 +6,174 @@ describe(`with luxePillowCover01 preset`, () => { const luxePillowCover01Preset = luxePillowCover01().build(); expect(luxePillowCover01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4082, - "w": 6123, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Luxe_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "USD", - }, - }, - ], - "sku": "LPC-011", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4082, + "w": 6123, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Luxe_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + ], + "sku": "LPC-011", + } + `); }); it(`should return a luxePillowCover01 preset when built for graphql`, () => { const luxePillowCover01PresetGraphql = luxePillowCover01().buildGraphql(); expect(luxePillowCover01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4082, - "width": 6123, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Luxe_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "LPC-011", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4082, + "width": 6123, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Luxe_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LPC-011", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover-01.ts index 426044907..92ae19225 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover-01.ts @@ -11,14 +11,17 @@ const luxePillowCover01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('2599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(2599)) .country('DE'), PriceDraft.presets .empty() + .key('2599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(2599)) .country('GB'), PriceDraft.presets .empty() + .key('2599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(2599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/marquis-tray-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/marquis-tray-01.spec.ts index 5b46c9ff0..ea18528a5 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/marquis-tray-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/marquis-tray-01.spec.ts @@ -5,171 +5,171 @@ describe(`with marquisTray01 preset`, () => { it(`should return a marquisTray01 preset`, () => { const marquisTray01Preset = marquisTray01().build(); expect(marquisTray01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Tablett", - "en-GB": "- Includes 1 tray", - "en-US": "- Includes 1 tray", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Goldene Rute:#DAA520", - "en-GB": "Golden Rod:#DAA520", - "en-US": "Golden Rod:#DAA520", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4784, - "w": 5056, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Marquis_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - ], - "sku": "MWT-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Tablett", + "en-GB": "- Includes 1 tray", + "en-US": "- Includes 1 tray", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Goldene Rute:#DAA520", + "en-GB": "Golden Rod:#DAA520", + "en-US": "Golden Rod:#DAA520", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4784, + "w": 5056, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Marquis_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "MWT-01", + } + `); }); it(`should return a marquisTray01 preset when built for graphql`, () => { const marquisTray01PresetGraphql = marquisTray01().buildGraphql(); expect(marquisTray01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 tray","de-DE":"- Enthält 1 Tablett","en-US":"- Includes 1 tray"}", - }, - { - "name": "color", - "value": "{"en-GB":"Golden Rod:#DAA520","de-DE":"Goldene Rute:#DAA520","en-US":"Golden Rod:#DAA520"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4784, - "width": 5056, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Marquis_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MWT-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 tray","de-DE":"- Enthält 1 Tablett","en-US":"- Includes 1 tray"}", + }, + { + "name": "color", + "value": "{"en-GB":"Golden Rod:#DAA520","de-DE":"Goldene Rute:#DAA520","en-US":"Golden Rod:#DAA520"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4784, + "width": 5056, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Marquis_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MWT-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/marquis-tray-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/marquis-tray-01.ts index 9adc4d0f3..3e3ea59c7 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/marquis-tray-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/marquis-tray-01.ts @@ -11,14 +11,17 @@ const marquisTray01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('399EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(399)) .country('DE'), PriceDraft.presets .empty() + .key('399GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(399)) .country('GB'), PriceDraft.presets .empty() + .key('399USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(399)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-01.spec.ts index 3733b41d0..b7a599673 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-01.spec.ts @@ -6,174 +6,174 @@ describe(`with mayaPillowCover01 preset`, () => { const mayaPillowCover01Preset = mayaPillowCover01().build(); expect(mayaPillowCover01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Does not include pillow", - "en-US": "- Machine washable -- Does not include pillow", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Pflaume:#DDA0DD", - "en-GB": "Plum:#DDA0DD", - "en-US": "Plum:#DDA0DD", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "USD", - }, - }, - ], - "sku": "MPC-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Does not include pillow", + "en-US": "- Machine washable + - Does not include pillow", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Pflaume:#DDA0DD", + "en-GB": "Plum:#DDA0DD", + "en-US": "Plum:#DDA0DD", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + ], + "sku": "MPC-02", + } + `); }); it(`should return a mayaPillowCover01 preset when built for graphql`, () => { const mayaPillowCover01PresetGraphql = mayaPillowCover01().buildGraphql(); expect(mayaPillowCover01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Does not include pillow"}", - }, - { - "name": "color", - "value": "{"en-GB":"Plum:#DDA0DD","de-DE":"Pflaume:#DDA0DD","en-US":"Plum:#DDA0DD"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MPC-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Does not include pillow"}", + }, + { + "name": "color", + "value": "{"en-GB":"Plum:#DDA0DD","de-DE":"Pflaume:#DDA0DD","en-US":"Plum:#DDA0DD"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MPC-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-01.ts index 8f9ca2d07..4eeac81c8 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-01.ts @@ -11,14 +11,17 @@ const mayaPillowCover01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('899EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(899)) .country('DE'), PriceDraft.presets .empty() + .key('899GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(899)) .country('GB'), PriceDraft.presets .empty() + .key('899USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(899)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-02.spec.ts index 4c06d163e..5db432964 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-02.spec.ts @@ -6,174 +6,174 @@ describe(`with mayaPillowCover02 preset`, () => { const mayaPillowCover02Preset = mayaPillowCover02().build(); expect(mayaPillowCover02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Does not include pillow", - "en-US": "- Machine washable -- Does not include pillow", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "USD", - }, - }, - ], - "sku": "MPC-07", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Does not include pillow", + "en-US": "- Machine washable + - Does not include pillow", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + ], + "sku": "MPC-07", + } + `); }); it(`should return a mayaPillowCover02 preset when built for graphql`, () => { const mayaPillowCover02PresetGraphql = mayaPillowCover02().buildGraphql(); expect(mayaPillowCover02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Does not include pillow"}", - }, - { - "name": "color", - "value": "{"en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MPC-07", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Does not include pillow"}", + }, + { + "name": "color", + "value": "{"en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MPC-07", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-02.ts index c815edb17..f9b6c8d10 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover-02.ts @@ -11,14 +11,17 @@ const mayaPillowCover02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('899EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(899)) .country('DE'), PriceDraft.presets .empty() + .key('899GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(899)) .country('GB'), PriceDraft.presets .empty() + .key('899USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(899)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-01.spec.ts index d581ce3c7..86b683392 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-01.spec.ts @@ -8,171 +8,171 @@ describe(`with meadowRug01 preset`, () => { it(`should return a meadowRug01 preset`, () => { const meadowRug01Preset = meadowRug01().build(); expect(meadowRug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 3 Fuß x 5 Fuß", - "en-GB": "- 3ft x 5ft", - "en-US": "- 3ft x 5ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Grau:#808080", - "en-GB": "Grey:#808080", - "en-US": "Gray:#808080", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MR-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 3 Fuß x 5 Fuß", + "en-GB": "- 3ft x 5ft", + "en-US": "- 3ft x 5ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grau:#808080", + "en-GB": "Grey:#808080", + "en-US": "Gray:#808080", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MR-03", + } + `); }); it(`should return a meadowRug01 preset when built for graphql`, () => { const meadowRug01PresetGraphql = meadowRug01().buildGraphql(); expect(meadowRug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MR-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MR-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-01.ts index 754ca4fbc..364f55e85 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-01.ts @@ -11,14 +11,17 @@ const meadowRug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('29900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(29900)) .country('DE'), PriceDraft.presets .empty() + .key('29900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(29900)) .country('GB'), PriceDraft.presets .empty() + .key('29900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(29900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-02.spec.ts index cca16b8ae..1076f9e54 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-02.spec.ts @@ -8,171 +8,171 @@ describe(`with meadowRug02 preset`, () => { it(`should return a meadowRug02 preset`, () => { const meadowRug02Preset = meadowRug02().build(); expect(meadowRug02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 3 Fuß x 5 Fuß", - "en-GB": "- 3ft x 5ft", - "en-US": "- 3ft x 5ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MR-08", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 3 Fuß x 5 Fuß", + "en-GB": "- 3ft x 5ft", + "en-US": "- 3ft x 5ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MR-08", + } + `); }); it(`should return a meadowRug02 preset when built for graphql`, () => { const meadowRug02PresetGraphql = meadowRug02().buildGraphql(); expect(meadowRug02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MR-08", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MR-08", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-02.ts index b2137d88f..c8c6bbf23 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-02.ts @@ -11,14 +11,17 @@ const meadowRug02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('29900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(29900)) .country('DE'), PriceDraft.presets .empty() + .key('29900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(29900)) .country('GB'), PriceDraft.presets .empty() + .key('29900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(29900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-03.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-03.spec.ts index fcef098d4..6f858f438 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-03.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-03.spec.ts @@ -8,171 +8,171 @@ describe(`with meadowRug03 preset`, () => { it(`should return a meadowRug03 preset`, () => { const meadowRug03Preset = meadowRug03().build(); expect(meadowRug03Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 3 Fuß x 5 Fuß", - "en-GB": "- 3ft x 5ft", - "en-US": "- 3ft x 5ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Himmel blau:#87CEEB", - "en-GB": "Sky Blue:#87CEEB", - "en-US": "Sky Blue:#87CEEB", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MR-05", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 3 Fuß x 5 Fuß", + "en-GB": "- 3ft x 5ft", + "en-US": "- 3ft x 5ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Himmel blau:#87CEEB", + "en-GB": "Sky Blue:#87CEEB", + "en-US": "Sky Blue:#87CEEB", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MR-05", + } + `); }); it(`should return a meadowRug03 preset when built for graphql`, () => { const meadowRug03PresetGraphql = meadowRug03().buildGraphql(); expect(meadowRug03PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB","en-US":"Sky Blue:#87CEEB"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MR-05", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB","en-US":"Sky Blue:#87CEEB"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MR-05", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-03.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-03.ts index 17ca2492b..f93e315e0 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-03.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/meadow-rug-03.ts @@ -11,14 +11,17 @@ const meadowRug03 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('29900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(29900)) .country('DE'), PriceDraft.presets .empty() + .key('29900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(29900)) .country('GB'), PriceDraft.presets .empty() + .key('29900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(29900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand-01.spec.ts index b197cdf9f..c2fc3e84e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand-01.spec.ts @@ -9,191 +9,191 @@ describe(`with minimalistCedarNightstand01 preset`, () => { const minimalistCedarNightstand01Preset = minimalistCedarNightstand01().build(); expect(minimalistCedarNightstand01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "finish", - "value": { - "de-DE": "Gainsboro:#dcdcdc", - "en-GB": "Gainsboro:#dcdcdc", - "en-US": "Gainsboro:#dcdcdc", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6016, - "w": 4011, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.3.jpeg", - }, - { - "dimensions": { - "h": 6016, - "w": 4011, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.1.jpeg", - }, - { - "dimensions": { - "h": 6016, - "w": 4011, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7900, - "currencyCode": "USD", - }, - }, - ], - "sku": "CNS-0434", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "finish", + "value": { + "de-DE": "Gainsboro:#dcdcdc", + "en-GB": "Gainsboro:#dcdcdc", + "en-US": "Gainsboro:#dcdcdc", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6016, + "w": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.3.jpeg", + }, + { + "dimensions": { + "h": 6016, + "w": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.1.jpeg", + }, + { + "dimensions": { + "h": 6016, + "w": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CNS-0434", + } + `); }); it(`should return a minimalistCedarNightstand01 preset when built for graphql`, () => { const minimalistCedarNightstand01PresetGraphql = minimalistCedarNightstand01().buildGraphql(); expect(minimalistCedarNightstand01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "finish", - "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 6016, - "width": 4011, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.3.jpeg", - }, - { - "dimensions": { - "height": 6016, - "width": 4011, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.1.jpeg", - }, - { - "dimensions": { - "height": 6016, - "width": 4011, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "CNS-0434", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "finish", + "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6016, + "width": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.3.jpeg", + }, + { + "dimensions": { + "height": 6016, + "width": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.1.jpeg", + }, + { + "dimensions": { + "height": 6016, + "width": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CNS-0434", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand-01.ts index f54f75bed..697c3812b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand-01.ts @@ -11,14 +11,17 @@ const minimalistCedarNightstand01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('7900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(7900)) .country('DE'), PriceDraft.presets .empty() + .key('7900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(7900)) .country('GB'), PriceDraft.presets .empty() + .key('7900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(7900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-01.spec.ts index 83af90cfe..4f65549ab 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-01.spec.ts @@ -9,189 +9,189 @@ describe(`with minimalistModernSideTable01 preset`, () => { const minimalistModernSideTable01Preset = minimalistModernSideTable01().build(); expect(minimalistModernSideTable01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "White:#FFFFFF", - "en-GB": "Weiß:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Saddle Brown:#8b4513", - "en-GB": "Sattel braun:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- 4 legged side table -- Walnut legs -- Pre-assembled", - "en-GB": "- 4 legged side table -- Walnut legs -- Pre-assembled", - "en-US": "- 4 legged side table -- Walnut legs -- Pre-assembled", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6232, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MMST-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "White:#FFFFFF", + "en-GB": "Weiß:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Saddle Brown:#8b4513", + "en-GB": "Sattel braun:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- 4 legged side table + - Walnut legs + - Pre-assembled", + "en-GB": "- 4 legged side table + - Walnut legs + - Pre-assembled", + "en-US": "- 4 legged side table + - Walnut legs + - Pre-assembled", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6232, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MMST-01", + } + `); }); it(`should return a minimalistModernSideTable01 preset when built for graphql`, () => { const minimalistModernSideTable01PresetGraphql = minimalistModernSideTable01().buildGraphql(); expect(minimalistModernSideTable01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"Weiß:#FFFFFF","de-DE":"White:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Sattel braun:#8b4513","de-DE":"Saddle Brown:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","en-GB":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","de-DE":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 6232, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12000, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12000, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MMST-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"Weiß:#FFFFFF","de-DE":"White:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Sattel braun:#8b4513","de-DE":"Saddle Brown:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","en-GB":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","de-DE":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6232, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MMST-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-01.ts index 1295e410e..e3f24b5c1 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-01.ts @@ -11,14 +11,17 @@ const minimalistModernSideTable01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('12000EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(12000)) .country('DE'), PriceDraft.presets .empty() + .key('12000GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(12000)) .country('GB'), PriceDraft.presets .empty() + .key('12000USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(12000)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-02.spec.ts index 65e330b24..9063f579f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-02.spec.ts @@ -9,189 +9,189 @@ describe(`with minimalistModernSideTable02 preset`, () => { const minimalistModernSideTable02Preset = minimalistModernSideTable02().build(); expect(minimalistModernSideTable02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Golden Rod:#DAA520", - "en-GB": "Goldene Rute:#DAA520", - "en-US": "Golden Rod:#DAA520", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Saddle Brown:#8b4513", - "en-GB": "Sattel braun:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- 4 legged side table -- Walnut legs -- Pre-assembled", - "en-GB": "- 4 legged side table -- Walnut legs -- Pre-assembled", - "en-US": "- 4 legged side table -- Walnut legs -- Pre-assembled", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6026, - "w": 5883, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4999, - "currencyCode": "USD", - }, - }, - ], - "sku": "MMST-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Golden Rod:#DAA520", + "en-GB": "Goldene Rute:#DAA520", + "en-US": "Golden Rod:#DAA520", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Saddle Brown:#8b4513", + "en-GB": "Sattel braun:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- 4 legged side table + - Walnut legs + - Pre-assembled", + "en-GB": "- 4 legged side table + - Walnut legs + - Pre-assembled", + "en-US": "- 4 legged side table + - Walnut legs + - Pre-assembled", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6026, + "w": 5883, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4999, + "currencyCode": "USD", + }, + }, + ], + "sku": "MMST-02", + } + `); }); it(`should return a minimalistModernSideTable02 preset when built for graphql`, () => { const minimalistModernSideTable02PresetGraphql = minimalistModernSideTable02().buildGraphql(); expect(minimalistModernSideTable02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Golden Rod:#DAA520","en-GB":"Goldene Rute:#DAA520","de-DE":"Golden Rod:#DAA520"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Sattel braun:#8b4513","de-DE":"Saddle Brown:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","en-GB":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","de-DE":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 6026, - "width": 5883, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MMST-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Golden Rod:#DAA520","en-GB":"Goldene Rute:#DAA520","de-DE":"Golden Rod:#DAA520"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Sattel braun:#8b4513","de-DE":"Saddle Brown:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","en-GB":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","de-DE":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6026, + "width": 5883, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MMST-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-02.ts index c65872619..b027f6021 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table-02.ts @@ -11,14 +11,17 @@ const minimalistModernSideTable02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('4999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(4999)) .country('DE'), PriceDraft.presets .empty() + .key('4999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(4999)) .country('GB'), PriceDraft.presets .empty() + .key('4999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(4999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster-01.spec.ts index 4fdb7e205..b1d6f0cf1 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster-01.spec.ts @@ -9,187 +9,187 @@ describe(`with modernBlackCoaster01 preset`, () => { const modernBlackCoaster01Preset = modernBlackCoaster01().build(); expect(modernBlackCoaster01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 4 Untersetzer", - "en-GB": "- Set includes 4 coasters", - "en-US": "- Set includes 4 coasters", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2912, - "w": 2912, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.1.jpeg", - }, - { - "dimensions": { - "h": 2912, - "w": 2912, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - ], - "sku": "BCOAS-08", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 4 Untersetzer", + "en-GB": "- Set includes 4 coasters", + "en-US": "- Set includes 4 coasters", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2912, + "w": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.1.jpeg", + }, + { + "dimensions": { + "h": 2912, + "w": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "BCOAS-08", + } + `); }); it(`should return a modernBlackCoaster01 preset when built for graphql`, () => { const modernBlackCoaster01PresetGraphql = modernBlackCoaster01().buildGraphql(); expect(modernBlackCoaster01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 4 coasters","de-DE":"- Das Set enthält 4 Untersetzer","en-US":"- Set includes 4 coasters"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2912, - "width": 2912, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.1.jpeg", - }, - { - "dimensions": { - "height": 2912, - "width": 2912, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "BCOAS-08", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 4 coasters","de-DE":"- Das Set enthält 4 Untersetzer","en-US":"- Set includes 4 coasters"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2912, + "width": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.1.jpeg", + }, + { + "dimensions": { + "height": 2912, + "width": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BCOAS-08", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster-01.ts index f5d1f74e0..1857fd727 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster-01.ts @@ -11,14 +11,17 @@ const modernBlackCoaster01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1999)) .country('DE'), PriceDraft.presets .empty() + .key('1999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1999)) .country('GB'), PriceDraft.presets .empty() + .key('1999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-bookcase-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-bookcase-01.spec.ts index 55ab54d15..7ad304d82 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-bookcase-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-bookcase-01.spec.ts @@ -9,171 +9,171 @@ describe(`with modernBookcase01 preset`, () => { const modernBookcase01Preset = modernBookcase01().build(); expect(modernBookcase01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4600, - "w": 2760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Bookcase-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MB-0973", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4600, + "w": 2760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Bookcase-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MB-0973", + } + `); }); it(`should return a modernBookcase01 preset when built for graphql`, () => { const modernBookcase01PresetGraphql = modernBookcase01().buildGraphql(); expect(modernBookcase01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten","en-US":"- Assembly included in delivery"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4600, - "width": 2760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Bookcase-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MB-0973", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten","en-US":"- Assembly included in delivery"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4600, + "width": 2760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Bookcase-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MB-0973", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-bookcase-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-bookcase-01.ts index ce3a657b1..cef933121 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-bookcase-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-bookcase-01.ts @@ -11,14 +11,17 @@ const modernBookcase01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('29900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(29900)) .country('DE'), PriceDraft.presets .empty() + .key('29900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(29900)) .country('GB'), PriceDraft.presets .empty() + .key('29900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(29900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate-01.spec.ts index a61bf9050..bb21ff89b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate-01.spec.ts @@ -9,171 +9,171 @@ describe(`with modernCeramicPlate01 preset`, () => { const modernCeramicPlate01Preset = modernCeramicPlate01().build(); expect(modernCeramicPlate01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4576, - "w": 5088, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Ceramic_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - ], - "sku": "MCP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4576, + "w": 5088, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Ceramic_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "MCP-01", + } + `); }); it(`should return a modernCeramicPlate01 preset when built for graphql`, () => { const modernCeramicPlate01PresetGraphql = modernCeramicPlate01().buildGraphql(); expect(modernCeramicPlate01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4576, - "width": 5088, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Ceramic_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MCP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4576, + "width": 5088, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Ceramic_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MCP-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate-01.ts index 0ef2132d6..b91d9c96c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate-01.ts @@ -11,14 +11,17 @@ const modernCeramicPlate01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(299)) .country('DE'), PriceDraft.presets .empty() + .key('299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(299)) .country('GB'), PriceDraft.presets .empty() + .key('299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser-01.spec.ts index 95f01bf1f..9b5ae2f7b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser-01.spec.ts @@ -9,209 +9,209 @@ describe(`with modernGlamDresser01 preset`, () => { const modernGlamDresser01Preset = modernGlamDresser01().build(); expect(modernGlamDresser01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- 3 large drawers -- suede and nickel finish on drawer handles -- assembly on site", - "en-GB": "- 3 large drawers -- suede and nickel finish on drawer handles -- assembly on site", - "en-US": "- 3 large drawers -- suede and nickel finish on drawer handles -- assembly on site", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.2.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 179900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 179900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 179900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MGD-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- 3 large drawers + - suede and nickel finish on drawer handles + - assembly on site", + "en-GB": "- 3 large drawers + - suede and nickel finish on drawer handles + - assembly on site", + "en-US": "- 3 large drawers + - suede and nickel finish on drawer handles + - assembly on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.2.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 179900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 179900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 179900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MGD-01", + } + `); }); it(`should return a modernGlamDresser01 preset when built for graphql`, () => { const modernGlamDresser01PresetGraphql = modernGlamDresser01().buildGraphql(); expect(modernGlamDresser01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Brown:#a52a2a","en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site","en-GB":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site","de-DE":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.1.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.2.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 179900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 179900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 179900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MGD-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Brown:#a52a2a","en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site","en-GB":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site","de-DE":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.2.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 179900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 179900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 179900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MGD-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser-01.ts index 40dca1d7f..584e2cebd 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser-01.ts @@ -11,14 +11,17 @@ const modernGlamDresser01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('179900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(179900)) .country('DE'), PriceDraft.presets .empty() + .key('179900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(179900)) .country('GB'), PriceDraft.presets .empty() + .key('179900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(179900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table-01.spec.ts index 7aff661f1..a1d42d0d9 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table-01.spec.ts @@ -9,246 +9,246 @@ describe(`with modernGoldCoffeeTable01 preset`, () => { const modernGoldCoffeeTable01Preset = modernGoldCoffeeTable01().build(); expect(modernGoldCoffeeTable01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Length: 5 feet -- Width: 3 feet -- Height: 2 feet -- Tables made of plastic laminate on manufactured wood -- Gold finish on legs -- Preassembled", - "en-GB": "- Length: 5 feet -- Width: 3 feet -- Height: 2 feet -- Tables made of plastic laminate on manufactured wood -- Gold finish on legs -- Preassembled", - "en-US": "- Length: 5 feet -- Width: 3 feet -- Height: 2 feet -- Tables made of plastic laminate on manufactured wood -- Gold finish on legs -- Preassembled", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.2.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.3.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.4.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 25999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 25999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 25999, - "currencyCode": "USD", - }, - }, - ], - "sku": "GMCT-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Length: 5 feet + - Width: 3 feet + - Height: 2 feet + - Tables made of plastic laminate on manufactured wood + - Gold finish on legs + - Preassembled", + "en-GB": "- Length: 5 feet + - Width: 3 feet + - Height: 2 feet + - Tables made of plastic laminate on manufactured wood + - Gold finish on legs + - Preassembled", + "en-US": "- Length: 5 feet + - Width: 3 feet + - Height: 2 feet + - Tables made of plastic laminate on manufactured wood + - Gold finish on legs + - Preassembled", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.2.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.3.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.4.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 25999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 25999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 25999, + "currencyCode": "USD", + }, + }, + ], + "sku": "GMCT-01", + } + `); }); it(`should return a modernGoldCoffeeTable01 preset when built for graphql`, () => { const modernGoldCoffeeTable01PresetGraphql = modernGoldCoffeeTable01().buildGraphql(); expect(modernGoldCoffeeTable01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled","en-GB":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled","de-DE":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.2.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.3.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.1.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.4.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 25999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 25999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 25999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "GMCT-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled","en-GB":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled","de-DE":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.2.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.3.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.4.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 25999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 25999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 25999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GMCT-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table-01.ts index 88a731ce5..8ebb2d2c3 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table-01.ts @@ -11,14 +11,17 @@ const modernGoldCoffeeTable01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('25999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(25999)) .country('DE'), PriceDraft.presets .empty() + .key('25999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(25999)) .country('GB'), PriceDraft.presets .empty() + .key('25999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(25999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting-01.spec.ts index 7b1718599..9cb8fb032 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting-01.spec.ts @@ -9,177 +9,177 @@ describe(`with modernLandscapePainting01 preset`, () => { const modernLandscapePainting01Preset = modernLandscapePainting01().build(); expect(modernLandscapePainting01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Öl auf Leinwand -- Rahmen nicht im Lieferumfang enthalten -- 3 Fuß mal 4 Fuß", - "en-GB": "- Oil on canvas -- Frame not included -- 3ft by 4ft", - "en-US": "- Oil on canvas -- Frame not included -- 3ft by 4ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Himmel blau:#87CEEB", - "en-GB": "Sky Blue:#87CEEB", - "en-US": "Sky Blue:#87CEEB", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5355, - "w": 5313, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Landscape_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5299, - "currencyCode": "USD", - }, - }, - ], - "sku": "MLP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Öl auf Leinwand + - Rahmen nicht im Lieferumfang enthalten + - 3 Fuß mal 4 Fuß", + "en-GB": "- Oil on canvas + - Frame not included + - 3ft by 4ft", + "en-US": "- Oil on canvas + - Frame not included + - 3ft by 4ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Himmel blau:#87CEEB", + "en-GB": "Sky Blue:#87CEEB", + "en-US": "Sky Blue:#87CEEB", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5355, + "w": 5313, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Landscape_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5299, + "currencyCode": "USD", + }, + }, + ], + "sku": "MLP-01", + } + `); }); it(`should return a modernLandscapePainting01 preset when built for graphql`, () => { const modernLandscapePainting01PresetGraphql = modernLandscapePainting01().buildGraphql(); expect(modernLandscapePainting01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Oil on canvas\\n- Frame not included\\n- 3ft by 4ft","de-DE":"- Öl auf Leinwand\\n- Rahmen nicht im Lieferumfang enthalten\\n- 3 Fuß mal 4 Fuß","en-US":"- Oil on canvas\\n- Frame not included\\n- 3ft by 4ft"}", - }, - { - "name": "color", - "value": "{"en-US":"Sky Blue:#87CEEB","en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5355, - "width": 5313, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Landscape_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MLP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Oil on canvas\\n- Frame not included\\n- 3ft by 4ft","de-DE":"- Öl auf Leinwand\\n- Rahmen nicht im Lieferumfang enthalten\\n- 3 Fuß mal 4 Fuß","en-US":"- Oil on canvas\\n- Frame not included\\n- 3ft by 4ft"}", + }, + { + "name": "color", + "value": "{"en-US":"Sky Blue:#87CEEB","en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5355, + "width": 5313, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Landscape_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MLP-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting-01.ts index 0ebb6e8ea..bb38145cb 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting-01.ts @@ -11,14 +11,17 @@ const modernLandscapePainting01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('5299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(5299)) .country('DE'), PriceDraft.presets .empty() + .key('5299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(5299)) .country('GB'), PriceDraft.presets .empty() + .key('5299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(5299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa-01.spec.ts index 52032b743..9121e1f2e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa-01.spec.ts @@ -9,237 +9,237 @@ describe(`with modernThreeSeaterSofa01 preset`, () => { const modernThreeSeaterSofa01Preset = modernThreeSeaterSofa01().build(); expect(modernThreeSeaterSofa01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Dunkles Schiefer grau:#2F4F4F", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Dark Slate Gray:#2F4F4F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Velvet upholstery -- 3-seater sofa -- Assembled on site", - "en-GB": "- Velvet upholstery -- 3-seater sofa -- Assembled on site", - "en-US": "- Velvet upholstery -- 3-seater sofa -- Assembled on site", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.4.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 249900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 249900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 249900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MTSS-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Dunkles Schiefer grau:#2F4F4F", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Dark Slate Gray:#2F4F4F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Velvet upholstery + - 3-seater sofa + - Assembled on site", + "en-GB": "- Velvet upholstery + - 3-seater sofa + - Assembled on site", + "en-US": "- Velvet upholstery + - 3-seater sofa + - Assembled on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.4.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 249900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 249900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 249900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MTSS-01", + } + `); }); it(`should return a modernThreeSeaterSofa01 preset when built for graphql`, () => { const modernThreeSeaterSofa01PresetGraphql = modernThreeSeaterSofa01().buildGraphql(); expect(modernThreeSeaterSofa01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Dark Slate Gray:#2F4F4F","en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site","en-GB":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site","de-DE":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.4.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 249900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 249900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 249900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MTSS-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Dark Slate Gray:#2F4F4F","en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site","en-GB":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site","de-DE":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.4.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 249900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 249900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 249900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MTSS-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa-01.ts index 50f4a6949..f1a8cda89 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa-01.ts @@ -11,14 +11,17 @@ const modernThreeSeaterSofa01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('249900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(249900)) .country('DE'), PriceDraft.presets .empty() + .key('249900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(249900)) .country('GB'), PriceDraft.presets .empty() + .key('249900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(249900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed-01.spec.ts index cd926e2e4..fb6c1ee85 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed-01.spec.ts @@ -9,189 +9,189 @@ describe(`with modernUpholsteredQueenBed01 preset`, () => { const modernUpholsteredQueenBed01Preset = modernUpholsteredQueenBed01().build(); expect(modernUpholsteredQueenBed01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Cotton Upholstery -- Standard Queen size -- Assembly on site", - "en-GB": "- Cotton Upholstery -- Standard Queen size -- Assembly on site", - "en-US": "- Cotton Upholstery -- Standard Queen size -- Assembly on site", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6000, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MUQB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Cotton Upholstery + - Standard Queen size + - Assembly on site", + "en-GB": "- Cotton Upholstery + - Standard Queen size + - Assembly on site", + "en-US": "- Cotton Upholstery + - Standard Queen size + - Assembly on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6000, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUQB-01", + } + `); }); it(`should return a modernUpholsteredQueenBed01 preset when built for graphql`, () => { const modernUpholsteredQueenBed01PresetGraphql = modernUpholsteredQueenBed01().buildGraphql(); expect(modernUpholsteredQueenBed01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Black:#000000","en-GB":"Black:#000000","de-DE":"Schwarz:#000000"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site","en-GB":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site","de-DE":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 6000, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MUQB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Black:#000000","en-GB":"Black:#000000","de-DE":"Schwarz:#000000"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site","en-GB":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site","de-DE":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6000, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MUQB-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed-01.ts index 14a2e420b..0c244e83e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed-01.ts @@ -11,14 +11,17 @@ const modernUpholsteredQueenBed01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('259900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(259900)) .country('DE'), PriceDraft.presets .empty() + .key('259900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(259900)) .country('GB'), PriceDraft.presets .empty() + .key('259900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(259900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-01.spec.ts index 763807909..eb105ffc6 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-01.spec.ts @@ -9,224 +9,224 @@ describe(`with modernUpholsteredTwinBed01 preset`, () => { const modernUpholsteredTwinBed01Preset = modernUpholsteredTwinBed01().build(); expect(modernUpholsteredTwinBed01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-GB": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-US": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Grey:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.1.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.2.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MUTB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-GB": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-US": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Grey:#778899", + "en-US": "Lightslate Gray:#778899", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.1.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.2.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUTB-01", + } + `); }); it(`should return a modernUpholsteredTwinBed01 preset when built for graphql`, () => { const modernUpholsteredTwinBed01PresetGraphql = modernUpholsteredTwinBed01().buildGraphql(); expect(modernUpholsteredTwinBed01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", - }, - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.1.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.2.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MUTB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", + }, + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.1.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.2.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MUTB-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-01.ts index 0991fc940..b6d9e893c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-01.ts @@ -11,14 +11,17 @@ const modernUpholsteredTwinBed01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('45000EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(45000)) .country('DE'), PriceDraft.presets .empty() + .key('45000GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(45000)) .country('GB'), PriceDraft.presets .empty() + .key('45000USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(45000)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-02.spec.ts index a53235c95..cfee55aa0 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-02.spec.ts @@ -9,224 +9,224 @@ describe(`with modernUpholsteredTwinBed02 preset`, () => { const modernUpholsteredTwinBed02Preset = modernUpholsteredTwinBed02().build(); expect(modernUpholsteredTwinBed02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-GB": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-US": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Grey:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - { - "name": "color", - "value": { - "de-DE": "See grün:#2E8B57", - "en-GB": "Sea Green:#2E8B57", - "en-US": "Sea Green:#2E8B57", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.2.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.3.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MUTB-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-GB": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-US": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Grey:#778899", + "en-US": "Lightslate Gray:#778899", + }, + }, + { + "name": "color", + "value": { + "de-DE": "See grün:#2E8B57", + "en-GB": "Sea Green:#2E8B57", + "en-US": "Sea Green:#2E8B57", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.2.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.3.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUTB-02", + } + `); }); it(`should return a modernUpholsteredTwinBed02 preset when built for graphql`, () => { const modernUpholsteredTwinBed02PresetGraphql = modernUpholsteredTwinBed02().buildGraphql(); expect(modernUpholsteredTwinBed02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", - }, - { - "name": "finish", - "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", - }, - { - "name": "color", - "value": "{"en-US":"Sea Green:#2E8B57","en-GB":"Sea Green:#2E8B57","de-DE":"See grün:#2E8B57"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.2.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.3.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MUTB-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", + }, + { + "name": "finish", + "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", + }, + { + "name": "color", + "value": "{"en-US":"Sea Green:#2E8B57","en-GB":"Sea Green:#2E8B57","de-DE":"See grün:#2E8B57"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.2.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.3.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MUTB-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-02.ts index c8bad6a77..e41c3a78b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-02.ts @@ -11,14 +11,17 @@ const modernUpholsteredTwinBed02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('45000EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(45000)) .country('DE'), PriceDraft.presets .empty() + .key('45000GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(45000)) .country('GB'), PriceDraft.presets .empty() + .key('45000USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(45000)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-03.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-03.spec.ts index 245ba3ede..f064a2c60 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-03.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-03.spec.ts @@ -9,224 +9,224 @@ describe(`with modernUpholsteredTwinBed03 preset`, () => { const modernUpholsteredTwinBed03Preset = modernUpholsteredTwinBed03().build(); expect(modernUpholsteredTwinBed03Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-GB": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-US": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Grau:#808080", - "en-GB": "Grey:#808080", - "en-US": "Gray:#808080", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Grey:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.2.jpeg", - }, - { - "dimensions": { - "h": 4000, - "w": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.3.jpeg", - }, - { - "dimensions": { - "h": 4000, - "w": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MUTB-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-GB": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-US": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grau:#808080", + "en-GB": "Grey:#808080", + "en-US": "Gray:#808080", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Grey:#778899", + "en-US": "Lightslate Gray:#778899", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.2.jpeg", + }, + { + "dimensions": { + "h": 4000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.3.jpeg", + }, + { + "dimensions": { + "h": 4000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUTB-03", + } + `); }); it(`should return a modernUpholsteredTwinBed03 preset when built for graphql`, () => { const modernUpholsteredTwinBed03PresetGraphql = modernUpholsteredTwinBed03().buildGraphql(); expect(modernUpholsteredTwinBed03PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", - }, - { - "name": "color", - "value": "{"en-US":"Gray:#808080","en-GB":"Grey:#808080","de-DE":"Grau:#808080"}", - }, - { - "name": "finish", - "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.2.jpeg", - }, - { - "dimensions": { - "height": 4000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.3.jpeg", - }, - { - "dimensions": { - "height": 4000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MUTB-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", + }, + { + "name": "color", + "value": "{"en-US":"Gray:#808080","en-GB":"Grey:#808080","de-DE":"Grau:#808080"}", + }, + { + "name": "finish", + "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.2.jpeg", + }, + { + "dimensions": { + "height": 4000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.3.jpeg", + }, + { + "dimensions": { + "height": 4000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MUTB-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-03.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-03.ts index 4bb734b6a..3b05f9bed 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-03.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-03.ts @@ -11,14 +11,17 @@ const modernUpholsteredTwinBed03 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('45000EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(45000)) .country('DE'), PriceDraft.presets .empty() + .key('45000GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(45000)) .country('GB'), PriceDraft.presets .empty() + .key('45000USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(45000)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-04.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-04.spec.ts index 5b57e8660..56ad351a1 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-04.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-04.spec.ts @@ -9,224 +9,224 @@ describe(`with modernUpholsteredTwinBed04 preset`, () => { const modernUpholsteredTwinBed04Preset = modernUpholsteredTwinBed04().build(); expect(modernUpholsteredTwinBed04Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-GB": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-US": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Grey:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.2.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.1.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MUTB-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-GB": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-US": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Grey:#778899", + "en-US": "Lightslate Gray:#778899", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.2.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.1.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUTB-04", + } + `); }); it(`should return a modernUpholsteredTwinBed04 preset when built for graphql`, () => { const modernUpholsteredTwinBed04PresetGraphql = modernUpholsteredTwinBed04().buildGraphql(); expect(modernUpholsteredTwinBed04PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", - }, - { - "name": "finish", - "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", - }, - { - "name": "color", - "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.2.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.1.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MUTB-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", + }, + { + "name": "finish", + "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", + }, + { + "name": "color", + "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.2.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.1.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MUTB-04", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-04.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-04.ts index d7b6f9197..34d90c0a7 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-04.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed-04.ts @@ -11,14 +11,17 @@ const modernUpholsteredTwinBed04 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('45000EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(45000)) .country('DE'), PriceDraft.presets .empty() + .key('45000GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(45000)) .country('GB'), PriceDraft.presets .empty() + .key('45000USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(45000)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-01.spec.ts index 22a76eb40..e049289a1 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-01.spec.ts @@ -9,210 +9,210 @@ describe(`with nalaTwoSeaterSofa01 preset`, () => { const nalaTwoSeaterSofa01Preset = nalaTwoSeaterSofa01().build(); expect(nalaTwoSeaterSofa01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Gray:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Gray:#778899", + "en-US": "Lightslate Gray:#778899", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-01", + } + `); }); it(`should return a nalaTwoSeaterSofa01 preset when built for graphql`, () => { const nalaTwoSeaterSofa01PresetGraphql = nalaTwoSeaterSofa01().buildGraphql(); expect(nalaTwoSeaterSofa01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Lightslate Gray:#778899","de-DE":"Helles Schiefer grau:#778899","en-US":"Lightslate Gray:#778899"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NTSS-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Lightslate Gray:#778899","de-DE":"Helles Schiefer grau:#778899","en-US":"Lightslate Gray:#778899"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-01.ts index 29c6cbfc5..e77b6e993 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-01.ts @@ -11,14 +11,17 @@ const nalaTwoSeaterSofa01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-02.spec.ts index 8176d5319..5177fc58f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-02.spec.ts @@ -9,210 +9,210 @@ describe(`with nalaTwoSeaterSofa02 preset`, () => { const nalaTwoSeaterSofa02Preset = nalaTwoSeaterSofa02().build(); expect(nalaTwoSeaterSofa02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Königs blau:#4169E1", - "en-GB": "Royal Blue:#4169E1", - "en-US": "Royal Blue:#4169E1", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.1.jpeg", - }, - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Königs blau:#4169E1", + "en-GB": "Royal Blue:#4169E1", + "en-US": "Royal Blue:#4169E1", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.1.jpeg", + }, + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-02", + } + `); }); it(`should return a nalaTwoSeaterSofa02 preset when built for graphql`, () => { const nalaTwoSeaterSofa02PresetGraphql = nalaTwoSeaterSofa02().buildGraphql(); expect(nalaTwoSeaterSofa02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.1.jpeg", - }, - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NTSS-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.1.jpeg", + }, + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-02.ts index a0c42f8fb..4674c63f3 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-02.ts @@ -11,14 +11,17 @@ const nalaTwoSeaterSofa02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-03.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-03.spec.ts index 624c517ef..b36ad1fe6 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-03.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-03.spec.ts @@ -9,210 +9,210 @@ describe(`with nalaTwoSeaterSofa03 preset`, () => { const nalaTwoSeaterSofa03Preset = nalaTwoSeaterSofa03().build(); expect(nalaTwoSeaterSofa03Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Peru:#CD853F", - "en-GB": "Peru:#CD853F", - "en-US": "Peru:#CD853F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.1.jpeg", - }, - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Peru:#CD853F", + "en-GB": "Peru:#CD853F", + "en-US": "Peru:#CD853F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.1.jpeg", + }, + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-03", + } + `); }); it(`should return a nalaTwoSeaterSofa03 preset when built for graphql`, () => { const nalaTwoSeaterSofa03PresetGraphql = nalaTwoSeaterSofa03().buildGraphql(); expect(nalaTwoSeaterSofa03PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.1.jpeg", - }, - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NTSS-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.1.jpeg", + }, + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-03.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-03.ts index ac774cc17..d40d507c6 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-03.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-03.ts @@ -11,14 +11,17 @@ const nalaTwoSeaterSofa03 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-04.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-04.spec.ts index 9f216a4cc..c24cd9d4d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-04.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-04.spec.ts @@ -9,194 +9,194 @@ describe(`with nalaTwoSeaterSofa04 preset`, () => { const nalaTwoSeaterSofa04Preset = nalaTwoSeaterSofa04().build(); expect(nalaTwoSeaterSofa04Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Tiefes Himmel blau:#00BFFF", - "en-GB": "Deep Sky Blue:#00BFFF", - "en-US": "Deep Sky Blue:#00BFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-4.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTTS-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Tiefes Himmel blau:#00BFFF", + "en-GB": "Deep Sky Blue:#00BFFF", + "en-US": "Deep Sky Blue:#00BFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-4.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTTS-04", + } + `); }); it(`should return a nalaTwoSeaterSofa04 preset when built for graphql`, () => { const nalaTwoSeaterSofa04PresetGraphql = nalaTwoSeaterSofa04().buildGraphql(); expect(nalaTwoSeaterSofa04PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Deep Sky Blue:#00BFFF","de-DE":"Tiefes Himmel blau:#00BFFF","en-US":"Deep Sky Blue:#00BFFF"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-4.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NTTS-04", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Deep Sky Blue:#00BFFF","de-DE":"Tiefes Himmel blau:#00BFFF","en-US":"Deep Sky Blue:#00BFFF"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-4.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTTS-04", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-04.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-04.ts index 5b40016fa..64c26959e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-04.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-04.ts @@ -11,14 +11,17 @@ const nalaTwoSeaterSofa04 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-05.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-05.spec.ts index ea3c6054a..94c9d8392 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-05.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-05.spec.ts @@ -9,210 +9,210 @@ describe(`with nalaTwoSeaterSofa05 preset`, () => { const nalaTwoSeaterSofa05Preset = nalaTwoSeaterSofa05().build(); expect(nalaTwoSeaterSofa05Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.1.jpeg", - }, - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-05", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.1.jpeg", + }, + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-05", + } + `); }); it(`should return a nalaTwoSeaterSofa05 preset when built for graphql`, () => { const nalaTwoSeaterSofa05PresetGraphql = nalaTwoSeaterSofa05().buildGraphql(); expect(nalaTwoSeaterSofa05PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.1.jpeg", - }, - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NTSS-05", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.1.jpeg", + }, + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-05", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-05.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-05.ts index fe9308c35..490771d64 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-05.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-05.ts @@ -11,14 +11,17 @@ const nalaTwoSeaterSofa05 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-06.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-06.spec.ts index b26bc2afd..c80719a1b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-06.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-06.spec.ts @@ -9,194 +9,194 @@ describe(`with nalaTwoSeaterSofa06 preset`, () => { const nalaTwoSeaterSofa06Preset = nalaTwoSeaterSofa06().build(); expect(nalaTwoSeaterSofa06Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Dunkles See grün:#8FBC8F", - "en-GB": "Dark Sea Green:#8FBC8F", - "en-US": "Dark Sea Green:#8FBC8F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-6.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-06", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Dunkles See grün:#8FBC8F", + "en-GB": "Dark Sea Green:#8FBC8F", + "en-US": "Dark Sea Green:#8FBC8F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-6.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-06", + } + `); }); it(`should return a nalaTwoSeaterSofa06 preset when built for graphql`, () => { const nalaTwoSeaterSofa06PresetGraphql = nalaTwoSeaterSofa06().buildGraphql(); expect(nalaTwoSeaterSofa06PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Dark Sea Green:#8FBC8F","de-DE":"Dunkles See grün:#8FBC8F","en-US":"Dark Sea Green:#8FBC8F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-6.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NTSS-06", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Dark Sea Green:#8FBC8F","de-DE":"Dunkles See grün:#8FBC8F","en-US":"Dark Sea Green:#8FBC8F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-6.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-06", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-06.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-06.ts index 543cd2044..3a1e3e66a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-06.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-06.ts @@ -11,14 +11,17 @@ const nalaTwoSeaterSofa06 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-07.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-07.spec.ts index c726216bf..6b10acf9d 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-07.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-07.spec.ts @@ -9,194 +9,194 @@ describe(`with nalaTwoSeaterSofa07 preset`, () => { const nalaTwoSeaterSofa07Preset = nalaTwoSeaterSofa07().build(); expect(nalaTwoSeaterSofa07Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Dunkles Schiefer grau:#2F4F4F", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Dark Slate Gray:#2F4F4F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-7.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-07", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Dunkles Schiefer grau:#2F4F4F", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Dark Slate Gray:#2F4F4F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-7.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-07", + } + `); }); it(`should return a nalaTwoSeaterSofa07 preset when built for graphql`, () => { const nalaTwoSeaterSofa07PresetGraphql = nalaTwoSeaterSofa07().buildGraphql(); expect(nalaTwoSeaterSofa07PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F","en-US":"Dark Slate Gray:#2F4F4F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-7.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NTSS-07", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F","en-US":"Dark Slate Gray:#2F4F4F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-7.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-07", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-07.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-07.ts index 5aa45e3e3..055e8c0c0 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-07.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa-07.ts @@ -11,14 +11,17 @@ const nalaTwoSeaterSofa07 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/natura-rug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/natura-rug-01.spec.ts index ff87c0503..610c6be86 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/natura-rug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/natura-rug-01.spec.ts @@ -8,177 +8,209 @@ describe(`with naturaRug01 preset`, () => { it(`should return a naturaRug01 preset`, () => { const naturaRug01Preset = naturaRug01().build(); expect(naturaRug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 6 Fuß x 6 Fuß", - "en-GB": "- 6ft x 6ft", - "en-US": "- 6ft x 6ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 8000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Natura_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NR-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 6 Fuß x 6 Fuß", + "en-GB": "- 6ft x 6ft", + "en-US": "- 6ft x 6ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 8000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Natura_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39950GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39950, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NR-09", + } + `); }); it(`should return a naturaRug01 preset when built for graphql`, () => { const naturaRug01PresetGraphql = naturaRug01().buildGraphql(); expect(naturaRug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 6ft x 6ft","de-DE":"- 6 Fuß x 6 Fuß","en-US":"- 6ft x 6ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 8000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Natura_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NR-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 6ft x 6ft","de-DE":"- 6 Fuß x 6 Fuß","en-US":"- 6ft x 6ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 8000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Natura_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39950GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39950, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NR-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/natura-rug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/natura-rug-01.ts index 8660aeda6..311da0cb6 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/natura-rug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/natura-rug-01.ts @@ -20,17 +20,25 @@ const naturaRug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('39900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(39900)) .country('DE'), PriceDraft.presets .empty() + .key('39900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(39900)) + .country('GB'), + PriceDraft.presets + .empty() + .key('39950GBP_dist') + .value(MoneyDraft.random().currencyCode('GBP').centAmount(39950)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) ) .country('GB'), PriceDraft.presets .empty() + .key('39900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(39900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/opal-king-bed-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/opal-king-bed-01.spec.ts index 71d598cce..4da6776ee 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/opal-king-bed-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/opal-king-bed-01.spec.ts @@ -8,171 +8,171 @@ describe(`with opalKingBed01 preset`, () => { it(`should return a opalKingBed01 preset`, () => { const opalKingBed01Preset = opalKingBed01().build(); expect(opalKingBed01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Montage inklusive", - "en-GB": "- Assembly included", - "en-US": "- Assembly included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2000, - "w": 2000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Opal_King_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MTB-023", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage inklusive", + "en-GB": "- Assembly included", + "en-US": "- Assembly included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2000, + "w": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Opal_King_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MTB-023", + } + `); }); it(`should return a opalKingBed01 preset when built for graphql`, () => { const opalKingBed01PresetGraphql = opalKingBed01().buildGraphql(); expect(opalKingBed01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included","de-DE":"- Montage inklusive","en-US":"- Assembly included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2000, - "width": 2000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Opal_King_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MTB-023", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included","de-DE":"- Montage inklusive","en-US":"- Assembly included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2000, + "width": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Opal_King_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MTB-023", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/opal-king-bed-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/opal-king-bed-01.ts index ec4a3ef25..225d7ba31 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/opal-king-bed-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/opal-king-bed-01.ts @@ -11,14 +11,17 @@ const opalKingBed01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/orion-double-bed-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/orion-double-bed-01.spec.ts index fa0f57e9b..3d66cf916 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/orion-double-bed-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/orion-double-bed-01.spec.ts @@ -9,186 +9,186 @@ describe(`with orionDoubleBed01 preset`, () => { const orionDoubleBed01Preset = orionDoubleBed01().build(); expect(orionDoubleBed01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten -- Matratze nicht im Lieferumfang enthalten", - "en-GB": "- Assembly included at delivery -- Mattress not included", - "en-US": "- Assembly included at delivery -- Mattress not included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Salbei:#BCB88A", - "en-GB": "Sage:#BCB88A", - "en-US": "Sage:#BCB88A", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3621, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Orion_Double_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "USD", - }, - }, - ], - "sku": "OTB-07", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten + - Matratze nicht im Lieferumfang enthalten", + "en-GB": "- Assembly included at delivery + - Mattress not included", + "en-US": "- Assembly included at delivery + - Mattress not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Salbei:#BCB88A", + "en-GB": "Sage:#BCB88A", + "en-US": "Sage:#BCB88A", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3621, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Orion_Double_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + ], + "sku": "OTB-07", + } + `); }); it(`should return a orionDoubleBed01 preset when built for graphql`, () => { const orionDoubleBed01PresetGraphql = orionDoubleBed01().buildGraphql(); expect(orionDoubleBed01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included at delivery\\n- Mattress not included","de-DE":"- Montage im Lieferumfang enthalten\\n- Matratze nicht im Lieferumfang enthalten","en-US":"- Assembly included at delivery\\n- Mattress not included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Sage:#BCB88A","de-DE":"Salbei:#BCB88A","en-US":"Sage:#BCB88A"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3621, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Orion_Double_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "OTB-07", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included at delivery\\n- Mattress not included","de-DE":"- Montage im Lieferumfang enthalten\\n- Matratze nicht im Lieferumfang enthalten","en-US":"- Assembly included at delivery\\n- Mattress not included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Sage:#BCB88A","de-DE":"Salbei:#BCB88A","en-US":"Sage:#BCB88A"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3621, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Orion_Double_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "OTB-07", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/orion-double-bed-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/orion-double-bed-01.ts index 75f1ced5a..cd23e01a2 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/orion-double-bed-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/orion-double-bed-01.ts @@ -11,14 +11,17 @@ const orionDoubleBed01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('159900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(159900)) .country('DE'), PriceDraft.presets .empty() + .key('159900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(159900)) .country('GB'), PriceDraft.presets .empty() + .key('159900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(159900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-01.spec.ts index 3310c3d81..85986bb2c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-01.spec.ts @@ -9,174 +9,174 @@ describe(`with patternedPillowCover01 preset`, () => { const patternedPillowCover01Preset = patternedPillowCover01().build(); expect(patternedPillowCover01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Lavendel:#fff0f5", - "en-GB": "Lavender Blush:#fff0f5", - "en-US": "Lavender Blush:#fff0f5", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "USD", - }, - }, - ], - "sku": "ADPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Lavendel:#fff0f5", + "en-GB": "Lavender Blush:#fff0f5", + "en-US": "Lavender Blush:#fff0f5", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + ], + "sku": "ADPC-09", + } + `); }); it(`should return a patternedPillowCover01 preset when built for graphql`, () => { const patternedPillowCover01PresetGraphql = patternedPillowCover01().buildGraphql(); expect(patternedPillowCover01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Lavender Blush:#fff0f5","de-DE":"Lavendel:#fff0f5","en-US":"Lavender Blush:#fff0f5"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "ADPC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Lavender Blush:#fff0f5","de-DE":"Lavendel:#fff0f5","en-US":"Lavender Blush:#fff0f5"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ADPC-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-01.ts index 3ecea768c..74bfe2b3c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-01.ts @@ -11,14 +11,17 @@ const patternedPillowCover01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1499)) .country('DE'), PriceDraft.presets .empty() + .key('1499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1499)) .country('GB'), PriceDraft.presets .empty() + .key('1499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-02.spec.ts index 465b2e280..551ff62a0 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-02.spec.ts @@ -9,182 +9,182 @@ describe(`with patternedPillowCover02 preset`, () => { const patternedPillowCover02Preset = patternedPillowCover02().build(); expect(patternedPillowCover02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": false, - }, - ], - "images": [ - { - "dimensions": { - "h": 4031, - "w": 6047, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "USD", - }, - }, - ], - "sku": "ADPC-7", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": false, + }, + ], + "images": [ + { + "dimensions": { + "h": 4031, + "w": 6047, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + ], + "sku": "ADPC-7", + } + `); }); it(`should return a patternedPillowCover02 preset when built for graphql`, () => { const patternedPillowCover02PresetGraphql = patternedPillowCover02().buildGraphql(); expect(patternedPillowCover02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "false", - }, - ], - "images": [ - { - "dimensions": { - "height": 4031, - "width": 6047, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "ADPC-7", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "false", + }, + ], + "images": [ + { + "dimensions": { + "height": 4031, + "width": 6047, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ADPC-7", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-02.ts index 91b23558c..464323f52 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover-02.ts @@ -11,14 +11,17 @@ const patternedPillowCover02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1499)) .country('DE'), PriceDraft.presets .empty() + .key('1499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1499)) .country('GB'), PriceDraft.presets .empty() + .key('1499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting-01.spec.ts index 39cb4f292..7a76c2baf 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting-01.spec.ts @@ -9,174 +9,174 @@ describe(`with pinkAbstractPainting01 preset`, () => { const pinkAbstractPainting01Preset = pinkAbstractPainting01().build(); expect(pinkAbstractPainting01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Acryl auf Leinwand -- 2 Fuß mal 2 Fuß", - "en-GB": "- Acrylic on canvas -- 2ft by 2ft", - "en-US": "- Acrylic on canvas -- 2ft by 2ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Rosa:#FFC0CB", - "en-GB": "Pink:#FFC0CB", - "en-US": "Pink:#FFC0CB", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3873, - "w": 3873, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Pink_Abstract_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5999, - "currencyCode": "USD", - }, - }, - ], - "sku": "PAP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Acryl auf Leinwand + - 2 Fuß mal 2 Fuß", + "en-GB": "- Acrylic on canvas + - 2ft by 2ft", + "en-US": "- Acrylic on canvas + - 2ft by 2ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Rosa:#FFC0CB", + "en-GB": "Pink:#FFC0CB", + "en-US": "Pink:#FFC0CB", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3873, + "w": 3873, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Pink_Abstract_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5999, + "currencyCode": "USD", + }, + }, + ], + "sku": "PAP-01", + } + `); }); it(`should return a pinkAbstractPainting01 preset when built for graphql`, () => { const pinkAbstractPainting01PresetGraphql = pinkAbstractPainting01().buildGraphql(); expect(pinkAbstractPainting01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß","en-US":"- Acrylic on canvas\\n- 2ft by 2ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3873, - "width": 3873, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Pink_Abstract_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "PAP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß","en-US":"- Acrylic on canvas\\n- 2ft by 2ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3873, + "width": 3873, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Pink_Abstract_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "PAP-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting-01.ts index 3e24fe439..b43310c20 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting-01.ts @@ -11,14 +11,17 @@ const pinkAbstractPainting01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('5999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(5999)) .country('DE'), PriceDraft.presets .empty() + .key('5999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(5999)) .country('GB'), PriceDraft.presets .empty() + .key('5999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(5999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting-01.spec.ts index af8edef72..fcccacd7f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting-01.spec.ts @@ -9,177 +9,177 @@ describe(`with purpleLandscapePainting01 preset`, () => { const purpleLandscapePainting01Preset = purpleLandscapePainting01().build(); expect(purpleLandscapePainting01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Ölgemälde auf Leinwand -- Rahmen nicht im Lieferumfang enthalten -- Größe: 4 Fuß x 3 Fuß", - "en-GB": "- Oil painting on canvas -- Frame not included -- Size: 4ft by 3ft", - "en-US": "- Oil painting on canvas -- Frame not included -- Size: 4ft by 3ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Violett:#800080", - "en-GB": "Purple:#800080", - "en-US": "Purple:#800080", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3902, - "w": 3755, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Landscape_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "USD", - }, - }, - ], - "sku": "BLP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Ölgemälde auf Leinwand + - Rahmen nicht im Lieferumfang enthalten + - Größe: 4 Fuß x 3 Fuß", + "en-GB": "- Oil painting on canvas + - Frame not included + - Size: 4ft by 3ft", + "en-US": "- Oil painting on canvas + - Frame not included + - Size: 4ft by 3ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Violett:#800080", + "en-GB": "Purple:#800080", + "en-US": "Purple:#800080", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3902, + "w": 3755, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Landscape_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "USD", + }, + }, + ], + "sku": "BLP-01", + } + `); }); it(`should return a purpleLandscapePainting01 preset when built for graphql`, () => { const purpleLandscapePainting01PresetGraphql = purpleLandscapePainting01().buildGraphql(); expect(purpleLandscapePainting01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Oil painting on canvas\\n- Frame not included\\n- Size: 4ft by 3ft","de-DE":"- Ölgemälde auf Leinwand\\n- Rahmen nicht im Lieferumfang enthalten\\n- Größe: 4 Fuß x 3 Fuß","en-US":"- Oil painting on canvas\\n- Frame not included\\n- Size: 4ft by 3ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Purple:#800080","de-DE":"Violett:#800080","en-US":"Purple:#800080"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3902, - "width": 3755, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Landscape_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "BLP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Oil painting on canvas\\n- Frame not included\\n- Size: 4ft by 3ft","de-DE":"- Ölgemälde auf Leinwand\\n- Rahmen nicht im Lieferumfang enthalten\\n- Größe: 4 Fuß x 3 Fuß","en-US":"- Oil painting on canvas\\n- Frame not included\\n- Size: 4ft by 3ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Purple:#800080","de-DE":"Violett:#800080","en-US":"Purple:#800080"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3902, + "width": 3755, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Landscape_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BLP-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting-01.ts index d3e977420..ebefe93c1 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting-01.ts @@ -11,14 +11,17 @@ const purpleLandscapePainting01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('8999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(8999)) .country('DE'), PriceDraft.presets .empty() + .key('8999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(8999)) .country('GB'), PriceDraft.presets .empty() + .key('8999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(8999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting-01.spec.ts index 85bad4d07..c6f450b1c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting-01.spec.ts @@ -9,93 +9,108 @@ describe(`with purpleMinimalistAbstractPainting01 preset`, () => { const purpleMinimalistAbstractPainting01Preset = purpleMinimalistAbstractPainting01().build(); expect(purpleMinimalistAbstractPainting01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Acryl auf Leinwand -- 2 Fuß mal 2 Fuß", - "en-GB": "- Acrylic on canvas -- 2ft by 2ft", - "en-US": "- Acrylic on canvas -- 2ft by 2ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Violett:#800080", - "en-GB": "Purple:#800080", - "en-US": "Purple:#800080", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2903, - "w": 3148, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Minimalist_Abstract_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2999, - "currencyCode": "USD", - }, - }, - ], - "sku": "PMAP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Acryl auf Leinwand + - 2 Fuß mal 2 Fuß", + "en-GB": "- Acrylic on canvas + - 2ft by 2ft", + "en-US": "- Acrylic on canvas + - 2ft by 2ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Violett:#800080", + "en-GB": "Purple:#800080", + "en-US": "Purple:#800080", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2903, + "w": 3148, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Minimalist_Abstract_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2999, + "currencyCode": "EUR", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3999EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2999, + "currencyCode": "USD", + }, + }, + ], + "sku": "PMAP-01", + } + `); }); it(`should return a purpleMinimalistAbstractPainting01 preset when built for graphql`, () => { @@ -103,87 +118,104 @@ describe(`with purpleMinimalistAbstractPainting01 preset`, () => { purpleMinimalistAbstractPainting01().buildGraphql(); expect(purpleMinimalistAbstractPainting01PresetGraphql) .toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß","en-US":"- Acrylic on canvas\\n- 2ft by 2ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Purple:#800080","de-DE":"Violett:#800080","en-US":"Purple:#800080"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2903, - "width": 3148, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Minimalist_Abstract_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "PMAP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß","en-US":"- Acrylic on canvas\\n- 2ft by 2ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Purple:#800080","de-DE":"Violett:#800080","en-US":"Purple:#800080"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2903, + "width": 3148, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Minimalist_Abstract_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3999EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "PMAP-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting-01.ts index 4f680d1d4..a2b91cbb7 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting-01.ts @@ -20,17 +20,25 @@ const purpleMinimalistAbstractPainting01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('2999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(2999)) + .country('DE'), + PriceDraft.presets + .empty() + .key('3999EUR_dist') + .value(MoneyDraft.random().currencyCode('EUR').centAmount(3999)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) ) .country('DE'), PriceDraft.presets .empty() + .key('2999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(2999)) .country('GB'), PriceDraft.presets .empty() + .key('2999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(2999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair-01.spec.ts index 14fd694db..dd1601417 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair-01.spec.ts @@ -6,199 +6,199 @@ describe(`with rattanLoungeChair01 preset`, () => { const rattanLoungeChair01Preset = rattanLoungeChair01().build(); expect(rattanLoungeChair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Inklusive 2 Kissen für Sitz und Rückenlehne", - "en-GB": "- Includes 2 cushions for seat and backrest", - "en-US": "- Includes 2 cushions for seat and backrest", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Antik-weiß:#faebd7", - "en-GB": "Antique White:#faebd7", - "en-US": "Antique White:#faebd7", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.1.jpeg", - }, - { - "dimensions": { - "h": 4500, - "w": 3375, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "USD", - }, - }, - ], - "sku": "RLC-08", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Inklusive 2 Kissen für Sitz und Rückenlehne", + "en-GB": "- Includes 2 cushions for seat and backrest", + "en-US": "- Includes 2 cushions for seat and backrest", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Antik-weiß:#faebd7", + "en-GB": "Antique White:#faebd7", + "en-US": "Antique White:#faebd7", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.1.jpeg", + }, + { + "dimensions": { + "h": 4500, + "w": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "USD", + }, + }, + ], + "sku": "RLC-08", + } + `); }); it(`should return a rattanLoungeChair01 preset when built for graphql`, () => { const rattanLoungeChair01PresetGraphql = rattanLoungeChair01().buildGraphql(); expect(rattanLoungeChair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 2 cushions for seat and backrest","en-US":"- Includes 2 cushions for seat and backrest","de-DE":"- Inklusive 2 Kissen für Sitz und Rückenlehne"}", - }, - { - "name": "color", - "value": "{"en-GB":"Antique White:#faebd7","de-DE":"Antik-weiß:#faebd7","en-US":"Antique White:#faebd7"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.1.jpeg", - }, - { - "dimensions": { - "height": 4500, - "width": 3375, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RLC-08", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 2 cushions for seat and backrest","en-US":"- Includes 2 cushions for seat and backrest","de-DE":"- Inklusive 2 Kissen für Sitz und Rückenlehne"}", + }, + { + "name": "color", + "value": "{"en-GB":"Antique White:#faebd7","de-DE":"Antik-weiß:#faebd7","en-US":"Antique White:#faebd7"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.1.jpeg", + }, + { + "dimensions": { + "height": 4500, + "width": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RLC-08", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair-01.ts index 772691bea..e07c387cc 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair-01.ts @@ -11,14 +11,17 @@ const rattanLoungeChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('19900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(19900)) .country('DE'), PriceDraft.presets .empty() + .key('19900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(19900)) .country('GB'), PriceDraft.presets .empty() + .key('19900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(19900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/raven-bowl-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/raven-bowl-01.spec.ts index d3404a1ac..5b24ebaab 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/raven-bowl-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/raven-bowl-01.spec.ts @@ -5,171 +5,171 @@ describe(`with ravenBowl01 preset`, () => { it(`should return a ravenBowl01 preset`, () => { const ravenBowl01Preset = ravenBowl01().build(); expect(ravenBowl01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Schüssel", - "en-GB": "- Includes 1 bowl", - "en-US": "- Includes 1 bowl", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2904, - "w": 4232, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Raven_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - ], - "sku": "RB-093", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Schüssel", + "en-GB": "- Includes 1 bowl", + "en-US": "- Includes 1 bowl", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2904, + "w": 4232, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Raven_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "RB-093", + } + `); }); it(`should return a ravenBowl01 preset when built for graphql`, () => { const ravenBowl01PresetGraphql = ravenBowl01().buildGraphql(); expect(ravenBowl01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2904, - "width": 4232, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Raven_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RB-093", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2904, + "width": 4232, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Raven_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RB-093", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/raven-bowl-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/raven-bowl-01.ts index 1fd6a8023..fd3aacbda 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/raven-bowl-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/raven-bowl-01.ts @@ -11,14 +11,17 @@ const ravenBowl01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(299)) .country('DE'), PriceDraft.presets .empty() + .key('299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(299)) .country('GB'), PriceDraft.presets .empty() + .key('299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray-01.spec.ts index 128ca3717..0c53fd2a0 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray-01.spec.ts @@ -6,174 +6,174 @@ describe(`with rectangleServingTray01 preset`, () => { const rectangleServingTray01Preset = rectangleServingTray01().build(); expect(rectangleServingTray01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Handwäsche nur -- Naturholz", - "en-GB": "- Hand wash only -- Natural wood", - "en-US": "- Hand wash only -- Natural wood", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4024, - "w": 6048, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rectangle_Serving_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "USD", - }, - }, - ], - "sku": "RST-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Handwäsche nur + - Naturholz", + "en-GB": "- Hand wash only + - Natural wood", + "en-US": "- Hand wash only + - Natural wood", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4024, + "w": 6048, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rectangle_Serving_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + ], + "sku": "RST-02", + } + `); }); it(`should return a rectangleServingTray01 preset when built for graphql`, () => { const rectangleServingTray01PresetGraphql = rectangleServingTray01().buildGraphql(); expect(rectangleServingTray01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Hand wash only\\n- Natural wood","en-US":"- Hand wash only\\n- Natural wood","de-DE":"- Handwäsche nur\\n- Naturholz"}", - }, - { - "name": "color", - "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4024, - "width": 6048, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rectangle_Serving_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RST-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Hand wash only\\n- Natural wood","en-US":"- Hand wash only\\n- Natural wood","de-DE":"- Handwäsche nur\\n- Naturholz"}", + }, + { + "name": "color", + "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4024, + "width": 6048, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rectangle_Serving_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RST-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray-01.ts index 404d26fec..30ab4ad7c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray-01.ts @@ -11,14 +11,17 @@ const rectangleServingTray01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(599)) .country('DE'), PriceDraft.presets .empty() + .key('599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(599)) .country('GB'), PriceDraft.presets .empty() + .key('599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/red-modern-painting-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/red-modern-painting-01.spec.ts index f74426416..060b2cd0f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/red-modern-painting-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/red-modern-painting-01.spec.ts @@ -6,174 +6,174 @@ describe(`with redModernPainting01 preset`, () => { const redModernPainting01Preset = redModernPainting01().build(); expect(redModernPainting01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Acryl auf Leinwand -- 2 Fuß mal 2 Fuß", - "en-GB": "- Acrylic on canvas -- 2ft by 2ft", - "en-US": "- Acrylic on canvas -- 2ft by 2ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Rot:#ff0000", - "en-GB": "Red:#ff0000", - "en-US": "Red:#ff0000", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3894, - "w": 3893, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Red_Modern_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "USD", - }, - }, - ], - "sku": "RMP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Acryl auf Leinwand + - 2 Fuß mal 2 Fuß", + "en-GB": "- Acrylic on canvas + - 2ft by 2ft", + "en-US": "- Acrylic on canvas + - 2ft by 2ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Rot:#ff0000", + "en-GB": "Red:#ff0000", + "en-US": "Red:#ff0000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3894, + "w": 3893, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Red_Modern_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + ], + "sku": "RMP-01", + } + `); }); it(`should return a redModernPainting01 preset when built for graphql`, () => { const redModernPainting01PresetGraphql = redModernPainting01().buildGraphql(); expect(redModernPainting01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","en-US":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß"}", - }, - { - "name": "color", - "value": "{"en-GB":"Red:#ff0000","de-DE":"Rot:#ff0000","en-US":"Red:#ff0000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3894, - "width": 3893, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Red_Modern_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RMP-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","en-US":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß"}", + }, + { + "name": "color", + "value": "{"en-GB":"Red:#ff0000","de-DE":"Rot:#ff0000","en-US":"Red:#ff0000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3894, + "width": 3893, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Red_Modern_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RMP-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/red-modern-painting-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/red-modern-painting-01.ts index e073e27a1..f23d2e591 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/red-modern-painting-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/red-modern-painting-01.ts @@ -11,14 +11,17 @@ const redModernPainting01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('3299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(3299)) .country('DE'), PriceDraft.presets .empty() + .key('3299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(3299)) .country('GB'), PriceDraft.presets .empty() + .key('3299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(3299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/round-serving-tray-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/round-serving-tray-01.spec.ts index 2589c532c..bac28834e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/round-serving-tray-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/round-serving-tray-01.spec.ts @@ -6,187 +6,187 @@ describe(`with roundServingTray01 preset`, () => { const roundServingTray01Preset = roundServingTray01().build(); expect(roundServingTray01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Handwäsche nur", - "en-GB": "- Hand wash only", - "en-US": "- Hand wash only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3537, - "w": 3537, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.1.jpeg", - }, - { - "dimensions": { - "h": 1719, - "w": 3283, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "USD", - }, - }, - ], - "sku": "RST-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Handwäsche nur", + "en-GB": "- Hand wash only", + "en-US": "- Hand wash only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3537, + "w": 3537, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.1.jpeg", + }, + { + "dimensions": { + "h": 1719, + "w": 3283, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + ], + "sku": "RST-01", + } + `); }); it(`should return a roundServingTray01 preset when built for graphql`, () => { const roundServingTray01PresetGraphql = roundServingTray01().buildGraphql(); expect(roundServingTray01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Hand wash only","en-US":"- Hand wash only","de-DE":"- Handwäsche nur"}", - }, - { - "name": "color", - "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3537, - "width": 3537, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.1.jpeg", - }, - { - "dimensions": { - "height": 1719, - "width": 3283, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RST-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Hand wash only","en-US":"- Hand wash only","de-DE":"- Handwäsche nur"}", + }, + { + "name": "color", + "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3537, + "width": 3537, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.1.jpeg", + }, + { + "dimensions": { + "height": 1719, + "width": 3283, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RST-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/round-serving-tray-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/round-serving-tray-01.ts index fc4b5e4d8..297b29b20 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/round-serving-tray-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/round-serving-tray-01.ts @@ -11,14 +11,17 @@ const roundServingTray01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(499)) .country('DE'), PriceDraft.presets .empty() + .key('499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(499)) .country('GB'), PriceDraft.presets .empty() + .key('499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rumi-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rumi-chair-01.spec.ts index ec6f6ec2a..6caed3836 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rumi-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rumi-chair-01.spec.ts @@ -5,183 +5,183 @@ describe(`with rumiChair01 preset`, () => { it(`should return a rumiChair01 preset`, () => { const rumiChair01Preset = rumiChair01().build(); expect(rumiChair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Lavendel:#fff0f5", - "en-GB": "Lavender Blush:#fff0f5", - "en-US": "Lavender Blush:#fff0f5", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3200, - "w": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rumi_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 15000, - "currencyCode": "USD", - }, - }, - ], - "sku": "RAM-094", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Lavendel:#fff0f5", + "en-GB": "Lavender Blush:#fff0f5", + "en-US": "Lavender Blush:#fff0f5", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rumi_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "15000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 15000, + "currencyCode": "USD", + }, + }, + ], + "sku": "RAM-094", + } + `); }); it(`should return a rumiChair01 preset when built for graphql`, () => { const rumiChair01PresetGraphql = rumiChair01().buildGraphql(); expect(rumiChair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only","en-US":"- Dry clean only","de-DE":"- Nur chemische Reinigung"}", - }, - { - "name": "color", - "value": "{"en-GB":"Lavender Blush:#fff0f5","de-DE":"Lavendel:#fff0f5","en-US":"Lavender Blush:#fff0f5"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Gold:#FFD700","en-US":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3200, - "width": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rumi_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 15000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RAM-094", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only","en-US":"- Dry clean only","de-DE":"- Nur chemische Reinigung"}", + }, + { + "name": "color", + "value": "{"en-GB":"Lavender Blush:#fff0f5","de-DE":"Lavendel:#fff0f5","en-US":"Lavender Blush:#fff0f5"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Gold:#FFD700","en-US":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3200, + "width": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rumi_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "15000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 15000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RAM-094", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rumi-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rumi-chair-01.ts index 373c5bff3..c30a3e9ea 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rumi-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rumi-chair-01.ts @@ -11,14 +11,17 @@ const rumiChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('12999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(12999)) .country('DE'), PriceDraft.presets .empty() + .key('12999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(12999)) .country('GB'), PriceDraft.presets .empty() + .key('15000USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(15000)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-bowl-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-bowl-01.spec.ts index fd401f76a..6fa735c9f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-bowl-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-bowl-01.spec.ts @@ -5,171 +5,171 @@ describe(`with rusticBowl01 preset`, () => { it(`should return a rusticBowl01 preset`, () => { const rusticBowl01Preset = rusticBowl01().build(); expect(rusticBowl01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Schüssel", - "en-GB": "- Includes 1 bowl", - "en-US": "- Includes 1 bowl", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3280, - "w": 5105, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "USD", - }, - }, - ], - "sku": "RB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Schüssel", + "en-GB": "- Includes 1 bowl", + "en-US": "- Includes 1 bowl", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3280, + "w": 5105, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + ], + "sku": "RB-01", + } + `); }); it(`should return a rusticBowl01 preset when built for graphql`, () => { const rusticBowl01PresetGraphql = rusticBowl01().buildGraphql(); expect(rusticBowl01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3280, - "width": 5105, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3280, + "width": 5105, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RB-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-bowl-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-bowl-01.ts index 95bceee9f..af5f57018 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-bowl-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-bowl-01.ts @@ -11,14 +11,17 @@ const rusticBowl01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('199EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(199)) .country('DE'), PriceDraft.presets .empty() + .key('199GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(199)) .country('GB'), PriceDraft.presets .empty() + .key('199USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(199)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser-01.spec.ts index 6d609c10e..537c0f1ca 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser-01.spec.ts @@ -6,225 +6,225 @@ describe(`with rusticCountryDresser01 preset`, () => { const rusticCountryDresser01Preset = rusticCountryDresser01().build(); expect(rusticCountryDresser01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 3 small drawers and 4 large drawers -- Nickel drawer handles -- Assembled on site", - "en-GB": "- 3 small drawers and 4 large drawers -- Nickel drawer handles -- Assembled on site", - "en-US": "- 3 small drawers and 4 large drawers -- Nickel drawer handles -- Assembled on site", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Gray:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.2.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.3.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.4.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "USD", - }, - }, - ], - "sku": "RCD-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 3 small drawers and 4 large drawers + - Nickel drawer handles + - Assembled on site", + "en-GB": "- 3 small drawers and 4 large drawers + - Nickel drawer handles + - Assembled on site", + "en-US": "- 3 small drawers and 4 large drawers + - Nickel drawer handles + - Assembled on site", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Gray:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.2.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.3.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.4.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + ], + "sku": "RCD-01", + } + `); }); it(`should return a rusticCountryDresser01 preset when built for graphql`, () => { const rusticCountryDresser01PresetGraphql = rusticCountryDresser01().buildGraphql(); expect(rusticCountryDresser01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site","en-GB":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site","de-DE":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site"}", - }, - { - "name": "finish", - "value": "{"en-US":"Light Gray:#D3D3D3","en-GB":"Light Gray:#D3D3D3","de-DE":"Hell grau:#D3D3D3"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.2.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.3.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.4.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RCD-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site","en-GB":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site","de-DE":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site"}", + }, + { + "name": "finish", + "value": "{"en-US":"Light Gray:#D3D3D3","en-GB":"Light Gray:#D3D3D3","de-DE":"Hell grau:#D3D3D3"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.2.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.3.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.4.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RCD-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser-01.ts index 6238bd32f..3435aec80 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser-01.ts @@ -11,14 +11,17 @@ const rusticCountryDresser01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('159900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(159900)) .country('DE'), PriceDraft.presets .empty() + .key('159900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(159900)) .country('GB'), PriceDraft.presets .empty() + .key('159900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(159900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed-01.spec.ts index 5ef6d1540..f7ff6f6b9 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed-01.spec.ts @@ -6,189 +6,189 @@ describe(`with rusticCountryQueenBed01 preset`, () => { const rusticCountryQueenBed01Preset = rusticCountryQueenBed01().build(); expect(rusticCountryQueenBed01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Leather upholstery -- Standard Queen size -- Assembly on site", - "en-GB": "- Leather upholstery -- Standard Queen size -- Assembly on site", - "en-US": "- Leather upholstery -- Standard Queen size -- Assembly on site", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 329900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 329900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 329900, - "currencyCode": "USD", - }, - }, - ], - "sku": "RCQB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Leather upholstery + - Standard Queen size + - Assembly on site", + "en-GB": "- Leather upholstery + - Standard Queen size + - Assembly on site", + "en-US": "- Leather upholstery + - Standard Queen size + - Assembly on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 329900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 329900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 329900, + "currencyCode": "USD", + }, + }, + ], + "sku": "RCQB-01", + } + `); }); it(`should return a rusticCountryQueenBed01 preset when built for graphql`, () => { const rusticCountryQueenBed01PresetGraphql = rusticCountryQueenBed01().buildGraphql(); expect(rusticCountryQueenBed01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site","en-GB":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site","de-DE":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 329900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 329900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 329900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RCQB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site","en-GB":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site","de-DE":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 329900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 329900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 329900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RCQB-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed-01.ts index 163dfea11..0dbfa4314 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed-01.ts @@ -11,14 +11,17 @@ const rusticCountryQueenBed01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('329900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(329900)) .country('DE'), PriceDraft.presets .empty() + .key('329900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(329900)) .country('GB'), PriceDraft.presets .empty() + .key('329900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(329900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole-01.spec.ts index 6ba6f0b53..279000d6c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole-01.spec.ts @@ -6,171 +6,171 @@ describe(`with rusticOvenCasserole01 preset`, () => { const rusticOvenCasserole01Preset = rusticOvenCasserole01().build(); expect(rusticOvenCasserole01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Ohne Deckel", - "en-GB": "- Does not include lid", - "en-US": "- Does not include lid", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Peru:#CD853F", - "en-GB": "Peru:#CD853F", - "en-US": "Peru:#CD853F", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3710, - "w": 4746, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Oven_Casserole-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "USD", - }, - }, - ], - "sku": "RCC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Ohne Deckel", + "en-GB": "- Does not include lid", + "en-US": "- Does not include lid", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Peru:#CD853F", + "en-GB": "Peru:#CD853F", + "en-US": "Peru:#CD853F", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3710, + "w": 4746, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Oven_Casserole-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + ], + "sku": "RCC-09", + } + `); }); it(`should return a rusticOvenCasserole01 preset when built for graphql`, () => { const rusticOvenCasserole01PresetGraphql = rusticOvenCasserole01().buildGraphql(); expect(rusticOvenCasserole01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Does not include lid","en-US":"- Does not include lid","de-DE":"- Ohne Deckel"}", - }, - { - "name": "color", - "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3710, - "width": 4746, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Oven_Casserole-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RCC-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Does not include lid","en-US":"- Does not include lid","de-DE":"- Ohne Deckel"}", + }, + { + "name": "color", + "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3710, + "width": 4746, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Oven_Casserole-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RCC-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole-01.ts index c4fb9588c..458e82e75 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole-01.ts @@ -11,14 +11,17 @@ const rusticOvenCasserole01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('2599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(2599)) .country('DE'), PriceDraft.presets .empty() + .key('2599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(2599)) .country('GB'), PriceDraft.presets .empty() + .key('2599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(2599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass-01.spec.ts index 4a6c38893..f10cc6102 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass-01.spec.ts @@ -6,199 +6,199 @@ describe(`with ryeWhiskeyGlass01 preset`, () => { const ryeWhiskeyGlass01Preset = ryeWhiskeyGlass01().build(); expect(ryeWhiskeyGlass01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2990, - "w": 2848, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.1.jpeg", - }, - { - "dimensions": { - "h": 2268, - "w": 2632, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "USD", - }, - }, - ], - "sku": "RWG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2990, + "w": 2848, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.1.jpeg", + }, + { + "dimensions": { + "h": 2268, + "w": 2632, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "USD", + }, + }, + ], + "sku": "RWG-09", + } + `); }); it(`should return a ryeWhiskeyGlass01 preset when built for graphql`, () => { const ryeWhiskeyGlass01PresetGraphql = ryeWhiskeyGlass01().buildGraphql(); expect(ryeWhiskeyGlass01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2990, - "width": 2848, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.1.jpeg", - }, - { - "dimensions": { - "height": 2268, - "width": 2632, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "RWG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2990, + "width": 2848, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.1.jpeg", + }, + { + "dimensions": { + "height": 2268, + "width": 2632, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RWG-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass-01.ts index 77625c8a8..3eb2b4ac5 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass-01.ts @@ -11,14 +11,17 @@ const ryeWhiskeyGlass01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('3499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(3499)) .country('DE'), PriceDraft.presets .empty() + .key('3499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(3499)) .country('GB'), PriceDraft.presets .empty() + .key('3499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(3499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sally-armchair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sally-armchair-01.spec.ts index cdf736bf5..f9415f6a1 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sally-armchair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sally-armchair-01.spec.ts @@ -6,183 +6,183 @@ describe(`with sallyArmchair01 preset`, () => { const sallyArmchair01Preset = sallyArmchair01().build(); expect(sallyArmchair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Wird mit passendem Dekokissen geliefert", - "en-GB": "- Comes with matching throw pillow", - "en-US": "- Comes with matching throw pillow", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Rosa:#FFC0CB", - "en-GB": "Pink:#FFC0CB", - "en-US": "Pink:#FFC0CB", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sally_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "USD", - }, - }, - ], - "sku": "SARMO-034", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Wird mit passendem Dekokissen geliefert", + "en-GB": "- Comes with matching throw pillow", + "en-US": "- Comes with matching throw pillow", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Rosa:#FFC0CB", + "en-GB": "Pink:#FFC0CB", + "en-US": "Pink:#FFC0CB", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sally_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "USD", + }, + }, + ], + "sku": "SARMO-034", + } + `); }); it(`should return a sallyArmchair01 preset when built for graphql`, () => { const sallyArmchair01PresetGraphql = sallyArmchair01().buildGraphql(); expect(sallyArmchair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Comes with matching throw pillow","en-US":"- Comes with matching throw pillow","de-DE":"- Wird mit passendem Dekokissen geliefert"}", - }, - { - "name": "color", - "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sally_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SARMO-034", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Comes with matching throw pillow","en-US":"- Comes with matching throw pillow","de-DE":"- Wird mit passendem Dekokissen geliefert"}", + }, + { + "name": "color", + "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sally_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SARMO-034", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sally-armchair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sally-armchair-01.ts index 2e1e27f79..a9389610f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sally-armchair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sally-armchair-01.ts @@ -11,14 +11,17 @@ const sallyArmchair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('19900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(19900)) .country('DE'), PriceDraft.presets .empty() + .key('19900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(19900)) .country('GB'), PriceDraft.presets .empty() + .key('19900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(19900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup-01.spec.ts index 77cc3766e..f1e60fb80 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup-01.spec.ts @@ -5,171 +5,171 @@ describe(`with sandTeaCup01 preset`, () => { it(`should return a sandTeaCup01 preset`, () => { const sandTeaCup01Preset = sandTeaCup01().build(); expect(sandTeaCup01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Tasse", - "en-GB": "- Includes 1 mug", - "en-US": "- Includes 1 mug", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Sand:#C2B280", - "en-GB": "Sand:#C2B280", - "en-US": "Sand:#C2B280", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4020, - "w": 6046, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sand_Tea_Cup-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - ], - "sku": "STM-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Tasse", + "en-GB": "- Includes 1 mug", + "en-US": "- Includes 1 mug", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Sand:#C2B280", + "en-GB": "Sand:#C2B280", + "en-US": "Sand:#C2B280", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4020, + "w": 6046, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sand_Tea_Cup-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "STM-09", + } + `); }); it(`should return a sandTeaCup01 preset when built for graphql`, () => { const sandTeaCup01PresetGraphql = sandTeaCup01().buildGraphql(); expect(sandTeaCup01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 mug","en-US":"- Includes 1 mug","de-DE":"- Enthält 1 Tasse"}", - }, - { - "name": "color", - "value": "{"en-GB":"Sand:#C2B280","de-DE":"Sand:#C2B280","en-US":"Sand:#C2B280"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4020, - "width": 6046, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sand_Tea_Cup-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "STM-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 mug","en-US":"- Includes 1 mug","de-DE":"- Enthält 1 Tasse"}", + }, + { + "name": "color", + "value": "{"en-GB":"Sand:#C2B280","de-DE":"Sand:#C2B280","en-US":"Sand:#C2B280"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4020, + "width": 6046, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sand_Tea_Cup-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "STM-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup-01.ts index 509a3f797..1a89fd8ec 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup-01.ts @@ -11,14 +11,17 @@ const sandTeaCup01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(299)) .country('DE'), PriceDraft.presets .empty() + .key('299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(299)) .country('GB'), PriceDraft.presets .empty() + .key('299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed-01.spec.ts index f5d88ae50..bd914de9b 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed-01.spec.ts @@ -6,171 +6,171 @@ describe(`with serenityQueenBed01 preset`, () => { const serenityQueenBed01Preset = serenityQueenBed01().build(); expect(serenityQueenBed01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2000, - "w": 2000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Serenity_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 99900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 99900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 99900, - "currencyCode": "USD", - }, - }, - ], - "sku": "IQB-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2000, + "w": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Serenity_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 99900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 99900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 99900, + "currencyCode": "USD", + }, + }, + ], + "sku": "IQB-09", + } + `); }); it(`should return a serenityQueenBed01 preset when built for graphql`, () => { const serenityQueenBed01PresetGraphql = serenityQueenBed01().buildGraphql(); expect(serenityQueenBed01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", - }, - { - "name": "color", - "value": "{"de-DE":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2000, - "width": 2000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Serenity_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 99900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 99900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 99900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "IQB-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", + }, + { + "name": "color", + "value": "{"de-DE":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2000, + "width": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Serenity_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 99900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 99900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 99900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "IQB-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed-01.ts index c35f281e1..8ea9d775f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed-01.ts @@ -11,14 +11,17 @@ const serenityQueenBed01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('99900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(99900)) .country('DE'), PriceDraft.presets .empty() + .key('99900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(99900)) .country('GB'), PriceDraft.presets .empty() + .key('99900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(99900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover-01.spec.ts index b2c942eac..8b1e814e7 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover-01.spec.ts @@ -6,171 +6,171 @@ describe(`with silkyPillowCover01 preset`, () => { const silkyPillowCover01Preset = silkyPillowCover01().build(); expect(silkyPillowCover01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Pillow not included", - "en-US": "- Pillow not included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4011, - "w": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Silky_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - ], - "sku": "SPC-06", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Pillow not included", + "en-US": "- Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4011, + "w": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Silky_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "SPC-06", + } + `); }); it(`should return a silkyPillowCover01 preset when built for graphql`, () => { const silkyPillowCover01PresetGraphql = silkyPillowCover01().buildGraphql(); expect(silkyPillowCover01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Pillow not included","en-US":"- Pillow not included","de-DE":"- Kissen nicht im Lieferumfang enthalten"}", - }, - { - "name": "color", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4011, - "width": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Silky_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SPC-06", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Pillow not included","en-US":"- Pillow not included","de-DE":"- Kissen nicht im Lieferumfang enthalten"}", + }, + { + "name": "color", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4011, + "width": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Silky_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SPC-06", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover-01.ts index 3cf61deca..f8fc40a3e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover-01.ts @@ -11,14 +11,17 @@ const silkyPillowCover01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1999)) .country('DE'), PriceDraft.presets .empty() + .key('1999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1999)) .country('GB'), PriceDraft.presets .empty() + .key('1999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug-01.spec.ts index e22fa29cf..0cc6d73fd 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug-01.spec.ts @@ -6,171 +6,171 @@ describe(`with sipperCoffeeMug01 preset`, () => { const sipperCoffeeMug01Preset = sipperCoffeeMug01().build(); expect(sipperCoffeeMug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Tasse", - "en-GB": "- Includes 1 mug", - "en-US": "- Includes 1 mug", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sipper_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - ], - "sku": "SCM-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Tasse", + "en-GB": "- Includes 1 mug", + "en-US": "- Includes 1 mug", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sipper_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "SCM-02", + } + `); }); it(`should return a sipperCoffeeMug01 preset when built for graphql`, () => { const sipperCoffeeMug01PresetGraphql = sipperCoffeeMug01().buildGraphql(); expect(sipperCoffeeMug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 mug","en-US":"- Includes 1 mug","de-DE":"- Enthält 1 Tasse"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sipper_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SCM-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 mug","en-US":"- Includes 1 mug","de-DE":"- Enthält 1 Tasse"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sipper_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SCM-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug-01.ts index ef6158227..f703a8205 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug-01.ts @@ -11,14 +11,17 @@ const sipperCoffeeMug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(299)) .country('DE'), PriceDraft.presets .empty() + .key('299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(299)) .country('GB'), PriceDraft.presets .empty() + .key('299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/slate-armchair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/slate-armchair-01.spec.ts index 3f9013248..c967ab4b3 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/slate-armchair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/slate-armchair-01.spec.ts @@ -6,187 +6,187 @@ describe(`with slateArmchair01 preset`, () => { const slateArmchair01Preset = slateArmchair01().build(); expect(slateArmchair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Inklusive Ottomane", - "en-GB": "- Includes ottoman", - "en-US": "- Includes ottoman", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schiefer grau:#708090", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Slate Gray:#708090", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4004, - "w": 5009, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.1.jpeg", - }, - { - "dimensions": { - "h": 3498, - "w": 5544, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "USD", - }, - }, - ], - "sku": "SARM-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Inklusive Ottomane", + "en-GB": "- Includes ottoman", + "en-US": "- Includes ottoman", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schiefer grau:#708090", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Slate Gray:#708090", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4004, + "w": 5009, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "h": 3498, + "w": 5544, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + ], + "sku": "SARM-09", + } + `); }); it(`should return a slateArmchair01 preset when built for graphql`, () => { const slateArmchair01PresetGraphql = slateArmchair01().buildGraphql(); expect(slateArmchair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes ottoman","en-US":"- Includes ottoman","de-DE":"- Inklusive Ottomane"}", - }, - { - "name": "color", - "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Schiefer grau:#708090","en-US":"Slate Gray:#708090"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4004, - "width": 5009, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.1.jpeg", - }, - { - "dimensions": { - "height": 3498, - "width": 5544, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SARM-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes ottoman","en-US":"- Includes ottoman","de-DE":"- Inklusive Ottomane"}", + }, + { + "name": "color", + "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Schiefer grau:#708090","en-US":"Slate Gray:#708090"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4004, + "width": 5009, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "height": 3498, + "width": 5544, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SARM-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/slate-armchair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/slate-armchair-01.ts index 7747874c3..aef409593 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/slate-armchair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/slate-armchair-01.ts @@ -11,14 +11,17 @@ const slateArmchair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('59900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(59900)) .country('DE'), PriceDraft.presets .empty() + .key('59900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(59900)) .country('GB'), PriceDraft.presets .empty() + .key('59900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(59900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl-01.spec.ts index 770305231..9a4c9601f 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl-01.spec.ts @@ -6,219 +6,219 @@ describe(`with smallWoodenBowl01 preset`, () => { const smallWoodenBowl01Preset = smallWoodenBowl01().build(); expect(smallWoodenBowl01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Schüssel", - "en-GB": "- Includes 1 bowl", - "en-US": "- Includes 1 bowl", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 3241, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.1.jpeg", - }, - { - "dimensions": { - "h": 3456, - "w": 5184, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.3.jpeg", - }, - { - "dimensions": { - "h": 4096, - "w": 6144, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.4.jpeg", - }, - { - "dimensions": { - "h": 5133, - "w": 7696, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - ], - "sku": "SWB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Schüssel", + "en-GB": "- Includes 1 bowl", + "en-US": "- Includes 1 bowl", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 3241, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.1.jpeg", + }, + { + "dimensions": { + "h": 3456, + "w": 5184, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.3.jpeg", + }, + { + "dimensions": { + "h": 4096, + "w": 6144, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.4.jpeg", + }, + { + "dimensions": { + "h": 5133, + "w": 7696, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "SWB-01", + } + `); }); it(`should return a smallWoodenBowl01 preset when built for graphql`, () => { const smallWoodenBowl01PresetGraphql = smallWoodenBowl01().buildGraphql(); expect(smallWoodenBowl01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", - }, - { - "name": "color", - "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 3241, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.1.jpeg", - }, - { - "dimensions": { - "height": 3456, - "width": 5184, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.3.jpeg", - }, - { - "dimensions": { - "height": 4096, - "width": 6144, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.4.jpeg", - }, - { - "dimensions": { - "height": 5133, - "width": 7696, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SWB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", + }, + { + "name": "color", + "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 3241, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.1.jpeg", + }, + { + "dimensions": { + "height": 3456, + "width": 5184, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.3.jpeg", + }, + { + "dimensions": { + "height": 4096, + "width": 6144, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.4.jpeg", + }, + { + "dimensions": { + "height": 5133, + "width": 7696, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SWB-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl-01.ts index 32eb2b159..5d25d6e76 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl-01.ts @@ -11,14 +11,17 @@ const smallWoodenBowl01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('399EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(399)) .country('DE'), PriceDraft.presets .empty() + .key('399GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(399)) .country('GB'), PriceDraft.presets .empty() + .key('399USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(399)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass-01.spec.ts index e95f894d8..990c27dd0 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass-01.spec.ts @@ -6,183 +6,183 @@ describe(`with sparkleChampagneGlass01 preset`, () => { const sparkleChampagneGlass01Preset = sparkleChampagneGlass01().build(); expect(sparkleChampagneGlass01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sparkle_Champagne_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4599, - "currencyCode": "USD", - }, - }, - ], - "sku": "SCG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sparkle_Champagne_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4599, + "currencyCode": "USD", + }, + }, + ], + "sku": "SCG-09", + } + `); }); it(`should return a sparkleChampagneGlass01 preset when built for graphql`, () => { const sparkleChampagneGlass01PresetGraphql = sparkleChampagneGlass01().buildGraphql(); expect(sparkleChampagneGlass01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sparkle_Champagne_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SCG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sparkle_Champagne_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SCG-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass-01.ts index 728407e45..8807d28a0 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass-01.ts @@ -11,14 +11,17 @@ const sparkleChampagneGlass01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('4599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(4599)) .country('DE'), PriceDraft.presets .empty() + .key('4599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(4599)) .country('GB'), PriceDraft.presets .empty() + .key('4599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(4599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster-01.spec.ts index 78eece9ef..4b0e76005 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster-01.spec.ts @@ -6,174 +6,174 @@ describe(`with squareBambooCoaster01 preset`, () => { const squareBambooCoaster01Preset = squareBambooCoaster01().build(); expect(squareBambooCoaster01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Mit einem feuchten Tuch abwischen -- Das Set enthält 4 Untersetzer", - "en-GB": "- Wipe clean with wet cloth -- Set includes 4 coaster", - "en-US": "- Wipe clean with wet cloth -- Set includes 4 coaster", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weizen:#f5deb3", - "en-GB": "Wheat:#f5deb3", - "en-US": "Wheat:#f5deb3", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2912, - "w": 2912, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Square_Bamboo_Coaster-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "USD", - }, - }, - ], - "sku": "BAMB-084", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Mit einem feuchten Tuch abwischen + - Das Set enthält 4 Untersetzer", + "en-GB": "- Wipe clean with wet cloth + - Set includes 4 coaster", + "en-US": "- Wipe clean with wet cloth + - Set includes 4 coaster", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weizen:#f5deb3", + "en-GB": "Wheat:#f5deb3", + "en-US": "Wheat:#f5deb3", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2912, + "w": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Square_Bamboo_Coaster-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + ], + "sku": "BAMB-084", + } + `); }); it(`should return a squareBambooCoaster01 preset when built for graphql`, () => { const squareBambooCoaster01PresetGraphql = squareBambooCoaster01().buildGraphql(); expect(squareBambooCoaster01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Wipe clean with wet cloth\\n- Set includes 4 coaster","en-US":"- Wipe clean with wet cloth\\n- Set includes 4 coaster","de-DE":"- Mit einem feuchten Tuch abwischen\\n- Das Set enthält 4 Untersetzer"}", - }, - { - "name": "color", - "value": "{"en-GB":"Wheat:#f5deb3","de-DE":"Weizen:#f5deb3","en-US":"Wheat:#f5deb3"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2912, - "width": 2912, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Square_Bamboo_Coaster-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "BAMB-084", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Wipe clean with wet cloth\\n- Set includes 4 coaster","en-US":"- Wipe clean with wet cloth\\n- Set includes 4 coaster","de-DE":"- Mit einem feuchten Tuch abwischen\\n- Das Set enthält 4 Untersetzer"}", + }, + { + "name": "color", + "value": "{"en-GB":"Wheat:#f5deb3","de-DE":"Weizen:#f5deb3","en-US":"Wheat:#f5deb3"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2912, + "width": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Square_Bamboo_Coaster-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BAMB-084", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster-01.ts index 1d2b99f08..e83110270 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster-01.ts @@ -11,14 +11,17 @@ const squareBambooCoaster01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1099EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1099)) .country('DE'), PriceDraft.presets .empty() + .key('1099GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1099)) .country('GB'), PriceDraft.presets .empty() + .key('1099USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1099)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask-01.spec.ts index 2b637f5fe..7da58b278 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask-01.spec.ts @@ -9,177 +9,209 @@ describe(`with steelHipFlask01 preset`, () => { const steelHipFlask01Preset = steelHipFlask01().build(); expect(steelHipFlask01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl", - "en-GB": "- Stainless steel", - "en-US": "- Stainless steel", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6580, - "w": 5006, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Steel_Hip_Flask-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "USD", - }, - }, - ], - "sku": "FLAS-094", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl", + "en-GB": "- Stainless steel", + "en-US": "- Stainless steel", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6580, + "w": 5006, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Steel_Hip_Flask-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + ], + "sku": "FLAS-094", + } + `); }); it(`should return a steelHipFlask01 preset when built for graphql`, () => { const steelHipFlask01PresetGraphql = steelHipFlask01().buildGraphql(); expect(steelHipFlask01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel","en-US":"- Stainless steel","de-DE":"- Edelstahl"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 6580, - "width": 5006, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Steel_Hip_Flask-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "FLAS-094", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel","en-US":"- Stainless steel","de-DE":"- Edelstahl"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6580, + "width": 5006, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Steel_Hip_Flask-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "FLAS-094", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask-01.ts index 05ccc56fd..13007f002 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask-01.ts @@ -20,17 +20,25 @@ const steelHipFlask01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('599EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(599)) + .country('DE'), + PriceDraft.presets + .empty() + .key('499EUR_dist') + .value(MoneyDraft.random().currencyCode('EUR').centAmount(499)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) ) .country('DE'), PriceDraft.presets .empty() + .key('599GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(599)) .country('GB'), PriceDraft.presets .empty() + .key('599USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(599)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray-01.spec.ts index 29b752891..87dce9a62 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray-01.spec.ts @@ -9,171 +9,171 @@ describe(`with stoneServingTray01 preset`, () => { const stoneServingTray01Preset = stoneServingTray01().build(); expect(stoneServingTray01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Zerbrechlich", - "en-GB": "- Fragile", - "en-US": "- Fragile", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schiefer grau:#708090", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Slate Gray:#708090", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2358, - "w": 4125, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stone_Serving_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "USD", - }, - }, - ], - "sku": "SST-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Zerbrechlich", + "en-GB": "- Fragile", + "en-US": "- Fragile", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schiefer grau:#708090", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Slate Gray:#708090", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2358, + "w": 4125, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stone_Serving_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + ], + "sku": "SST-02", + } + `); }); it(`should return a stoneServingTray01 preset when built for graphql`, () => { const stoneServingTray01PresetGraphql = stoneServingTray01().buildGraphql(); expect(stoneServingTray01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Fragile","en-US":"- Fragile","de-DE":"- Zerbrechlich"}", - }, - { - "name": "color", - "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","en-US":"Slate Gray:#708090","de-DE":"Schiefer grau:#708090"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2358, - "width": 4125, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stone_Serving_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SST-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Fragile","en-US":"- Fragile","de-DE":"- Zerbrechlich"}", + }, + { + "name": "color", + "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","en-US":"Slate Gray:#708090","de-DE":"Schiefer grau:#708090"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2358, + "width": 4125, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stone_Serving_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SST-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray-01.ts index aa4f31813..1963cd909 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray-01.ts @@ -11,14 +11,17 @@ const stoneServingTray01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('2499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(2499)) .country('DE'), PriceDraft.presets .empty() + .key('2499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(2499)) .country('GB'), PriceDraft.presets .empty() + .key('2499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(2499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass-01.spec.ts index 9fc7dc98c..ee64d5f7e 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass-01.spec.ts @@ -9,183 +9,183 @@ describe(`with stoutBeerGlass01 preset`, () => { const stoutBeerGlass01Preset = stoutBeerGlass01().build(); expect(stoutBeerGlass01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stout_Beer_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5699, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5699, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5999, - "currencyCode": "USD", - }, - }, - ], - "sku": "SBG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stout_Beer_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5699, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5699, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5999, + "currencyCode": "USD", + }, + }, + ], + "sku": "SBG-09", + } + `); }); it(`should return a stoutBeerGlass01 preset when built for graphql`, () => { const stoutBeerGlass01PresetGraphql = stoutBeerGlass01().buildGraphql(); expect(stoutBeerGlass01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stout_Beer_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5699, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5699, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SBG-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stout_Beer_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5699, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5699, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SBG-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass-01.ts index d48103e3c..84ceae1f1 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass-01.ts @@ -11,14 +11,17 @@ const stoutBeerGlass01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('5699EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(5699)) .country('DE'), PriceDraft.presets .empty() + .key('5699GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(5699)) .country('GB'), PriceDraft.presets .empty() + .key('5699USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(5999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-01.spec.ts index 29a2f666e..f2c755a24 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-01.spec.ts @@ -9,183 +9,183 @@ describe(`with sunnaiGlassBowl01 preset`, () => { const sunnaiGlassBowl01Preset = sunnaiGlassBowl01().build(); expect(sunnaiGlassBowl01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "type", - "value": [ - { - "en-GB": "Round", - }, - ], - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3739, - "w": 5381, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 799, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 799, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 799, - "currencyCode": "USD", - }, - }, - ], - "sku": "SGB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "type", + "value": [ + { + "en-GB": "Round", + }, + ], + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3739, + "w": 5381, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 799, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 799, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 799, + "currencyCode": "USD", + }, + }, + ], + "sku": "SGB-01", + } + `); }); it(`should return a sunnaiGlassBowl01 preset when built for graphql`, () => { const sunnaiGlassBowl01PresetGraphql = sunnaiGlassBowl01().buildGraphql(); expect(sunnaiGlassBowl01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "type", - "value": "[{"en-GB":"Round"}]", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3739, - "width": 5381, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 799, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 799, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 799, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SGB-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "type", + "value": "[{"en-GB":"Round"}]", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3739, + "width": 5381, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 799, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 799, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 799, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SGB-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-01.ts index 5d07c6ab0..54f9696e8 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-01.ts @@ -11,14 +11,17 @@ const sunnaiGlassBowl01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('799EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(799)) .country('DE'), PriceDraft.presets .empty() + .key('799GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(799)) .country('GB'), PriceDraft.presets .empty() + .key('799USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(799)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-02.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-02.spec.ts index d01140646..6d3e125a9 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-02.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-02.spec.ts @@ -9,183 +9,183 @@ describe(`with sunnaiGlassBowl02 preset`, () => { const sunnaiGlassBowl02Preset = sunnaiGlassBowl02().build(); expect(sunnaiGlassBowl02Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "type", - "value": [ - { - "en-GB": "Deep", - }, - ], - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3288, - "w": 4944, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "USD", - }, - }, - ], - "sku": "SGB-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "type", + "value": [ + { + "en-GB": "Deep", + }, + ], + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3288, + "w": 4944, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + ], + "sku": "SGB-02", + } + `); }); it(`should return a sunnaiGlassBowl02 preset when built for graphql`, () => { const sunnaiGlassBowl02PresetGraphql = sunnaiGlassBowl02().buildGraphql(); expect(sunnaiGlassBowl02PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "type", - "value": "[{"en-GB":"Deep"}]", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3288, - "width": 4944, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SGB-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "type", + "value": "[{"en-GB":"Deep"}]", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3288, + "width": 4944, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SGB-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-02.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-02.ts index 27551eefc..24f220bf4 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-02.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl-02.ts @@ -11,14 +11,17 @@ const sunnaiGlassBowl02 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('899EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(899)) .country('DE'), PriceDraft.presets .empty() + .key('899GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(899)) .country('GB'), PriceDraft.presets .empty() + .key('899USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(899)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle-01.spec.ts index 2080c6d74..4106055e7 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle-01.spec.ts @@ -9,218 +9,218 @@ describe(`with sweetPeaCandle01 preset`, () => { const sweetPeaCandle01Preset = sweetPeaCandle01().build(); expect(sweetPeaCandle01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Wird im Glas geliefert -- 180 Gramm", - "en-GB": "- Comes in glass jar -- 180 grams", - "en-US": "- Comes in glass jar -- 180 grams", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Rosa:#FFC0CB", - "en-GB": "Pink:#FFC0CB", - "en-US": "Pink:#FFC0CB", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3693, - "w": 5540, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.1.jpeg", - }, - { - "dimensions": { - "h": 4480, - "w": 6720, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.2.jpeg", - }, - { - "dimensions": { - "h": 4427, - "w": 6640, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "USD", - }, - }, - ], - "sku": "SPC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Wird im Glas geliefert + - 180 Gramm", + "en-GB": "- Comes in glass jar + - 180 grams", + "en-US": "- Comes in glass jar + - 180 grams", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Rosa:#FFC0CB", + "en-GB": "Pink:#FFC0CB", + "en-US": "Pink:#FFC0CB", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3693, + "w": 5540, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.1.jpeg", + }, + { + "dimensions": { + "h": 4480, + "w": 6720, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.2.jpeg", + }, + { + "dimensions": { + "h": 4427, + "w": 6640, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "USD", + }, + }, + ], + "sku": "SPC-01", + } + `); }); it(`should return a sweetPeaCandle01 preset when built for graphql`, () => { const sweetPeaCandle01PresetGraphql = sweetPeaCandle01().buildGraphql(); expect(sweetPeaCandle01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Comes in glass jar\\n- 180 grams","en-US":"- Comes in glass jar\\n- 180 grams","de-DE":"- Wird im Glas geliefert\\n- 180 Gramm"}", - }, - { - "name": "color", - "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3693, - "width": 5540, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.1.jpeg", - }, - { - "dimensions": { - "height": 4480, - "width": 6720, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.2.jpeg", - }, - { - "dimensions": { - "height": 4427, - "width": 6640, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 699, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 699, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 699, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "SPC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Comes in glass jar\\n- 180 grams","en-US":"- Comes in glass jar\\n- 180 grams","de-DE":"- Wird im Glas geliefert\\n- 180 Gramm"}", + }, + { + "name": "color", + "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3693, + "width": 5540, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.1.jpeg", + }, + { + "dimensions": { + "height": 4480, + "width": 6720, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.2.jpeg", + }, + { + "dimensions": { + "height": 4427, + "width": 6640, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 699, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 699, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 699, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SPC-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle-01.ts index 99d63a09a..bc0713360 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle-01.ts @@ -11,14 +11,17 @@ const sweetPeaCandle01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('699EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(699)) .country('DE'), PriceDraft.presets .empty() + .key('699GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(699)) .country('GB'), PriceDraft.presets .empty() + .key('699USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(699)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed-01.spec.ts index 2d371094d..cf3fb2993 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed-01.spec.ts @@ -8,183 +8,183 @@ describe(`with tanQueenBed01 preset`, () => { it(`should return a tanQueenBed01 preset`, () => { const tanQueenBed01Preset = tanQueenBed01().build(); expect(tanQueenBed01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3621, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Tan_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "LPQB-084", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3621, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Tan_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "LPQB-084", + } + `); }); it(`should return a tanQueenBed01 preset when built for graphql`, () => { const tanQueenBed01PresetGraphql = tanQueenBed01().buildGraphql(); expect(tanQueenBed01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Saddle Brown:#8b4513","en-US":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3621, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Tan_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "LPQB-084", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Saddle Brown:#8b4513","en-US":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3621, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Tan_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LPQB-084", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed-01.ts index 5c39fce83..75c31ec62 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed-01.ts @@ -11,14 +11,17 @@ const tanQueenBed01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('129900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(129900)) .country('DE'), PriceDraft.presets .empty() + .key('129900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(129900)) .country('GB'), PriceDraft.presets .empty() + .key('129900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(129900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter-01.spec.ts index 814d4a308..d89c668e5 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter-01.spec.ts @@ -9,174 +9,174 @@ describe(`with teakServingPlatter01 preset`, () => { const teakServingPlatter01Preset = teakServingPlatter01().build(); expect(teakServingPlatter01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Hergestellt aus natürlichem Teakholz -- Handwäsche nur", - "en-GB": "- Made of natural teak -- Hand wash only", - "en-US": "- Made of natural teak -- Hand wash only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2389, - "w": 4331, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Teak_Serving_Platter-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - ], - "sku": "TST-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Hergestellt aus natürlichem Teakholz + - Handwäsche nur", + "en-GB": "- Made of natural teak + - Hand wash only", + "en-US": "- Made of natural teak + - Hand wash only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2389, + "w": 4331, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Teak_Serving_Platter-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "TST-02", + } + `); }); it(`should return a teakServingPlatter01 preset when built for graphql`, () => { const teakServingPlatter01PresetGraphql = teakServingPlatter01().buildGraphql(); expect(teakServingPlatter01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Made of natural teak\\n- Hand wash only","en-US":"- Made of natural teak\\n- Hand wash only","de-DE":"- Hergestellt aus natürlichem Teakholz\\n- Handwäsche nur"}", - }, - { - "name": "color", - "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2389, - "width": 4331, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Teak_Serving_Platter-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "TST-02", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Made of natural teak\\n- Hand wash only","en-US":"- Made of natural teak\\n- Hand wash only","de-DE":"- Hergestellt aus natürlichem Teakholz\\n- Handwäsche nur"}", + }, + { + "name": "color", + "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2389, + "width": 4331, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Teak_Serving_Platter-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TST-02", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter-01.ts index c6e8ba014..fd7290407 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter-01.ts @@ -11,14 +11,17 @@ const teakServingPlatter01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('1299EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(1299)) .country('DE'), PriceDraft.presets .empty() + .key('1299GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(1299)) .country('GB'), PriceDraft.presets .empty() + .key('1299USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(1299)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-armchair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-armchair-01.spec.ts index 2120f95cf..dbc23f50a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-armchair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-armchair-01.spec.ts @@ -9,203 +9,203 @@ describe(`with traditionalArmchair01 preset`, () => { const traditionalArmchair01Preset = traditionalArmchair01().build(); expect(traditionalArmchair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Baumwollpolsterung", - "en-GB": "- Cotton upholstery", - "en-US": "- Cotton upholstery", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Mais seide:#FFF8DC", - "en-GB": "Corn Silk:#FFF8DC", - "en-US": "Corn Silk:#FFF8DC", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.3.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "TARM-034", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Baumwollpolsterung", + "en-GB": "- Cotton upholstery", + "en-US": "- Cotton upholstery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Mais seide:#FFF8DC", + "en-GB": "Corn Silk:#FFF8DC", + "en-US": "Corn Silk:#FFF8DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.3.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "TARM-034", + } + `); }); it(`should return a traditionalArmchair01 preset when built for graphql`, () => { const traditionalArmchair01PresetGraphql = traditionalArmchair01().buildGraphql(); expect(traditionalArmchair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Cotton upholstery","en-US":"- Cotton upholstery","de-DE":"- Baumwollpolsterung"}", - }, - { - "name": "color", - "value": "{"en-GB":"Corn Silk:#FFF8DC","de-DE":"Mais seide:#FFF8DC","en-US":"Corn Silk:#FFF8DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.1.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.3.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "TARM-034", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Cotton upholstery","en-US":"- Cotton upholstery","de-DE":"- Baumwollpolsterung"}", + }, + { + "name": "color", + "value": "{"en-GB":"Corn Silk:#FFF8DC","de-DE":"Mais seide:#FFF8DC","en-US":"Corn Silk:#FFF8DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.3.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TARM-034", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-armchair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-armchair-01.ts index ab8e99743..4a28f3c87 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-armchair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-armchair-01.ts @@ -11,14 +11,17 @@ const traditionalArmchair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('29900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(29900)) .country('DE'), PriceDraft.presets .empty() + .key('29900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(29900)) .country('GB'), PriceDraft.presets .empty() + .key('29900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(29900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa-01.spec.ts index c2a086761..8b9656e5c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa-01.spec.ts @@ -9,221 +9,221 @@ describe(`with traditionalLSeaterSofa01 preset`, () => { const traditionalLSeaterSofa01Preset = traditionalLSeaterSofa01().build(); expect(traditionalLSeaterSofa01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Baumwollbezug -- Wurfkissen um Lieferumfang enthalten -- Selbstmontage", - "en-GB": "- Cotton upholstery -- Comes with accent pillows -- Assembly on site", - "en-US": "- Cotton upholstery -- Comes with accent pillows -- Assembly on site", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 359900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 359900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 359900, - "currencyCode": "USD", - }, - }, - ], - "sku": "TLSS-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Baumwollbezug + - Wurfkissen um Lieferumfang enthalten + - Selbstmontage", + "en-GB": "- Cotton upholstery + - Comes with accent pillows + - Assembly on site", + "en-US": "- Cotton upholstery + - Comes with accent pillows + - Assembly on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 359900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 359900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 359900, + "currencyCode": "USD", + }, + }, + ], + "sku": "TLSS-01", + } + `); }); it(`should return a traditionalLSeaterSofa01 preset when built for graphql`, () => { const traditionalLSeaterSofa01PresetGraphql = traditionalLSeaterSofa01().buildGraphql(); expect(traditionalLSeaterSofa01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery\\n- Comes with accent pillows\\n- Assembly on site","en-GB":"- Cotton upholstery\\n- Comes with accent pillows\\n- Assembly on site","de-DE":"- Baumwollbezug\\n- Wurfkissen um Lieferumfang enthalten\\n- Selbstmontage"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 359900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 359900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 359900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "TLSS-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery\\n- Comes with accent pillows\\n- Assembly on site","en-GB":"- Cotton upholstery\\n- Comes with accent pillows\\n- Assembly on site","de-DE":"- Baumwollbezug\\n- Wurfkissen um Lieferumfang enthalten\\n- Selbstmontage"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 359900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 359900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 359900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TLSS-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa-01.ts index 6c7740bc2..3152f5e44 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa-01.ts @@ -11,14 +11,17 @@ const traditionalLSeaterSofa01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('359900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(359900)) .country('DE'), PriceDraft.presets .empty() + .key('359900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(359900)) .country('GB'), PriceDraft.presets .empty() + .key('359900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(359900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa-01.spec.ts index 0d6eab9b3..d5e2198d3 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa-01.spec.ts @@ -9,221 +9,221 @@ describe(`with traditionalThreeSeaterSofa01 preset`, () => { const traditionalThreeSeaterSofa01Preset = traditionalThreeSeaterSofa01().build(); expect(traditionalThreeSeaterSofa01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Dreisitzer -- Samtbezug -- Selbstmontage", - "en-GB": "- Three seater sofa -- Velvet upholstery -- Assembly on site", - "en-US": "- Three seater sofa -- Velvet upholstery -- Assembly on site", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Mittel meer grün:#3CB371", - "en-GB": "Medium Sea Green:#3CB371", - "en-US": "Medium Sea Green:#3CB371", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.3.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 239900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 239900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 239900, - "currencyCode": "USD", - }, - }, - ], - "sku": "TTSS-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Dreisitzer + - Samtbezug + - Selbstmontage", + "en-GB": "- Three seater sofa + - Velvet upholstery + - Assembly on site", + "en-US": "- Three seater sofa + - Velvet upholstery + - Assembly on site", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Mittel meer grün:#3CB371", + "en-GB": "Medium Sea Green:#3CB371", + "en-US": "Medium Sea Green:#3CB371", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.3.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 239900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 239900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 239900, + "currencyCode": "USD", + }, + }, + ], + "sku": "TTSS-01", + } + `); }); it(`should return a traditionalThreeSeaterSofa01 preset when built for graphql`, () => { const traditionalThreeSeaterSofa01PresetGraphql = traditionalThreeSeaterSofa01().buildGraphql(); expect(traditionalThreeSeaterSofa01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Three seater sofa\\n- Velvet upholstery\\n- Assembly on site","en-GB":"- Three seater sofa\\n- Velvet upholstery\\n- Assembly on site","de-DE":"- Dreisitzer\\n- Samtbezug\\n- Selbstmontage"}", - }, - { - "name": "color", - "value": "{"en-US":"Medium Sea Green:#3CB371","en-GB":"Medium Sea Green:#3CB371","de-DE":"Mittel meer grün:#3CB371"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.3.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 239900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 239900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 239900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "TTSS-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Three seater sofa\\n- Velvet upholstery\\n- Assembly on site","en-GB":"- Three seater sofa\\n- Velvet upholstery\\n- Assembly on site","de-DE":"- Dreisitzer\\n- Samtbezug\\n- Selbstmontage"}", + }, + { + "name": "color", + "value": "{"en-US":"Medium Sea Green:#3CB371","en-GB":"Medium Sea Green:#3CB371","de-DE":"Mittel meer grün:#3CB371"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.3.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 239900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 239900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 239900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TTSS-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa-01.ts index 763a85be0..4707cddba 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa-01.ts @@ -11,14 +11,17 @@ const traditionalThreeSeaterSofa01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('239900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(239900)) .country('DE'), PriceDraft.presets .empty() + .key('239900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(239900)) .country('GB'), PriceDraft.presets .empty() + .key('239900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(239900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug-01.spec.ts index 8cd4e94de..b3d3ce9f3 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug-01.spec.ts @@ -9,186 +9,186 @@ describe(`with travelCoffeeMug01 preset`, () => { const travelCoffeeMug01Preset = travelCoffeeMug01().build(); expect(travelCoffeeMug01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Isoliert -- Sowohl für kalte als auch heiße Getränke geeignet", - "en-GB": "- Insulated -- Suitable for both cold and hot drinks", - "en-US": "- Insulated -- Suitable for both cold and hot drinks", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Travel_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "USD", - }, - }, - ], - "sku": "TCM-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Isoliert + - Sowohl für kalte als auch heiße Getränke geeignet", + "en-GB": "- Insulated + - Suitable for both cold and hot drinks", + "en-US": "- Insulated + - Suitable for both cold and hot drinks", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Travel_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + ], + "sku": "TCM-03", + } + `); }); it(`should return a travelCoffeeMug01 preset when built for graphql`, () => { const travelCoffeeMug01PresetGraphql = travelCoffeeMug01().buildGraphql(); expect(travelCoffeeMug01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Insulated \\n- Suitable for both cold and hot drinks","en-US":"- Insulated \\n- Suitable for both cold and hot drinks","de-DE":"- Isoliert\\n- Sowohl für kalte als auch heiße Getränke geeignet"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Travel_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "TCM-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Insulated \\n- Suitable for both cold and hot drinks","en-US":"- Insulated \\n- Suitable for both cold and hot drinks","de-DE":"- Isoliert\\n- Sowohl für kalte als auch heiße Getränke geeignet"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Travel_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TCM-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug-01.ts index 91fb17a43..c51d3287a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug-01.ts @@ -11,14 +11,17 @@ const travelCoffeeMug01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('499EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(499)) .country('DE'), PriceDraft.presets .empty() + .key('499GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(499)) .country('GB'), PriceDraft.presets .empty() + .key('499USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(499)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair-01.spec.ts index b138fd0ee..fbd6d33d9 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair-01.spec.ts @@ -9,187 +9,187 @@ describe(`with turnerVelvetArmchair01 preset`, () => { const turnerVelvetArmchair01Preset = turnerVelvetArmchair01().build(); expect(turnerVelvetArmchair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Königs blau:#4169E1", - "en-GB": "Royal Blue:#4169E1", - "en-US": "Royal Blue:#4169E1", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - ], - "sku": "TARM-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Königs blau:#4169E1", + "en-GB": "Royal Blue:#4169E1", + "en-US": "Royal Blue:#4169E1", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "TARM-03", + } + `); }); it(`should return a turnerVelvetArmchair01 preset when built for graphql`, () => { const turnerVelvetArmchair01PresetGraphql = turnerVelvetArmchair01().buildGraphql(); expect(turnerVelvetArmchair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only","en-US":"- Dry clean only","de-DE":"- Nur chemische Reinigung"}", - }, - { - "name": "color", - "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.1.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "TARM-03", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only","en-US":"- Dry clean only","de-DE":"- Nur chemische Reinigung"}", + }, + { + "name": "color", + "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TARM-03", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair-01.ts index 16e886051..b101b5d7a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair-01.ts @@ -11,14 +11,17 @@ const turnerVelvetArmchair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('39900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(39900)) .country('DE'), PriceDraft.presets .empty() + .key('39900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(39900)) .country('GB'), PriceDraft.presets .empty() + .key('39900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(39900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/vanilla-candle-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/vanilla-candle-01.spec.ts index 4d16ff9f6..6d067ef48 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/vanilla-candle-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/vanilla-candle-01.spec.ts @@ -9,208 +9,240 @@ describe(`with vanillaCandle01 preset`, () => { const vanillaCandle01Preset = vanillaCandle01().build(); expect(vanillaCandle01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Wird im Glas geliefert -- 300 Gramm", - "en-GB": "- Comes in glass jar -- 300 grams", - "en-US": "- Comes in glass jar -- 300 grams", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3879, - "w": 5819, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.1.jpeg", - }, - { - "dimensions": { - "h": 4143, - "w": 6214, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 999, - "currencyCode": "USD", - }, - }, - ], - "sku": "VC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Wird im Glas geliefert + - 300 Gramm", + "en-GB": "- Comes in glass jar + - 300 grams", + "en-US": "- Comes in glass jar + - 300 grams", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3879, + "w": 5819, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.1.jpeg", + }, + { + "dimensions": { + "h": 4143, + "w": 6214, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 999, + "currencyCode": "EUR", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 999, + "currencyCode": "USD", + }, + }, + ], + "sku": "VC-01", + } + `); }); it(`should return a vanillaCandle01 preset when built for graphql`, () => { const vanillaCandle01PresetGraphql = vanillaCandle01().buildGraphql(); expect(vanillaCandle01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Comes in glass jar\\n- 300 grams","en-US":"- Comes in glass jar\\n- 300 grams","de-DE":"- Wird im Glas geliefert\\n- 300 Gramm"}", - }, - { - "name": "color", - "value": "{"en-US":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", - }, - { - "name": "finish", - "value": "{"en-US":"Glass:transparent","en-GB":"Glass:transparent","de-DE":"Glas:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3879, - "width": 5819, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.1.jpeg", - }, - { - "dimensions": { - "height": 4143, - "width": 6214, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "VC-01", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Comes in glass jar\\n- 300 grams","en-US":"- Comes in glass jar\\n- 300 grams","de-DE":"- Wird im Glas geliefert\\n- 300 Gramm"}", + }, + { + "name": "color", + "value": "{"en-US":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", + }, + { + "name": "finish", + "value": "{"en-US":"Glass:transparent","en-GB":"Glass:transparent","de-DE":"Glas:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3879, + "width": 5819, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.1.jpeg", + }, + { + "dimensions": { + "height": 4143, + "width": 6214, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "VC-01", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/vanilla-candle-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/vanilla-candle-01.ts index b24db8a50..e65215a2a 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/vanilla-candle-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/vanilla-candle-01.ts @@ -20,17 +20,25 @@ const vanillaCandle01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(999)) + .country('DE'), + PriceDraft.presets + .empty() + .key('1099EUR_dist') + .value(MoneyDraft.random().currencyCode('EUR').centAmount(1099)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) ) .country('DE'), PriceDraft.presets .empty() + .key('999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(999)) .country('GB'), PriceDraft.presets .empty() + .key('999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet-01.spec.ts index 86899574b..08c200a0c 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet-01.spec.ts @@ -9,193 +9,225 @@ describe(`with walnutCabinet01 preset`, () => { const walnutCabinet01Preset = walnutCabinet01().build(); expect(walnutCabinet01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2935, - "w": 4400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.1.jpeg", - }, - { - "dimensions": { - "h": 2935, - "w": 4400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "USD", - }, - }, - ], - "sku": "WCS-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2935, + "w": 4400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.1.jpeg", + }, + { + "dimensions": { + "h": 2935, + "w": 4400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + ], + "sku": "WCS-09", + } + `); }); it(`should return a walnutCabinet01 preset when built for graphql`, () => { const walnutCabinet01PresetGraphql = walnutCabinet01().buildGraphql(); expect(walnutCabinet01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Brown:#a52a2a","en-US":"Brown:#a52a2a","de-DE":"Braun:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2935, - "width": 4400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.1.jpeg", - }, - { - "dimensions": { - "height": 2935, - "width": 4400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "WCS-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Brown:#a52a2a","en-US":"Brown:#a52a2a","de-DE":"Braun:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2935, + "width": 4400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.1.jpeg", + }, + { + "dimensions": { + "height": 2935, + "width": 4400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "WCS-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet-01.ts index 8b7a03aed..da911ab55 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet-01.ts @@ -20,6 +20,12 @@ const walnutCabinet01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('159900EUR') + .value(MoneyDraft.random().currencyCode('EUR').centAmount(159900)) + .country('DE'), + PriceDraft.presets + .empty() + .key('159900EUR_dist') .value(MoneyDraft.random().currencyCode('EUR').centAmount(159900)) .channel( KeyReferenceDraft.presets.channel().key(distributionChannel.key!) @@ -27,10 +33,12 @@ const walnutCabinet01 = (): TProductVariantDraftBuilder => .country('DE'), PriceDraft.presets .empty() + .key('159900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(159900)) .country('GB'), PriceDraft.presets .empty() + .key('159900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(159900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool-01.spec.ts index bd6bf9ef9..47c0de0fe 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool-01.spec.ts @@ -9,171 +9,171 @@ describe(`with walnutCounterStool01 preset`, () => { const walnutCounterStool01Preset = walnutCounterStool01().build(); expect(walnutCounterStool01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Beinhaltet 1 Hocker", - "en-GB": "- Includes 1 stool", - "en-US": "- Includes 1 stool", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5906, - "w": 5906, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Counter_Stool-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "USD", - }, - }, - ], - "sku": "WCSI-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Beinhaltet 1 Hocker", + "en-GB": "- Includes 1 stool", + "en-US": "- Includes 1 stool", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5906, + "w": 5906, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Counter_Stool-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "USD", + }, + }, + ], + "sku": "WCSI-09", + } + `); }); it(`should return a walnutCounterStool01 preset when built for graphql`, () => { const walnutCounterStool01PresetGraphql = walnutCounterStool01().buildGraphql(); expect(walnutCounterStool01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 stool","en-US":"- Includes 1 stool","de-DE":"- Beinhaltet 1 Hocker"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Saddle Brown:#8b4513","en-US":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5906, - "width": 5906, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Counter_Stool-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "WCSI-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 stool","en-US":"- Includes 1 stool","de-DE":"- Beinhaltet 1 Hocker"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Saddle Brown:#8b4513","en-US":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5906, + "width": 5906, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Counter_Stool-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "WCSI-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool-01.ts index 84647cb1a..d75ea65e4 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool-01.ts @@ -11,14 +11,17 @@ const walnutCounterStool01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('8999EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(8999)) .country('DE'), PriceDraft.presets .empty() + .key('8999GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(8999)) .country('GB'), PriceDraft.presets .empty() + .key('8999USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(8999)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/willow-teapot-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/willow-teapot-01.spec.ts index 58c50fbb8..bbf61c451 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/willow-teapot-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/willow-teapot-01.spec.ts @@ -8,171 +8,171 @@ describe(`with willowTeapot01 preset`, () => { it(`should return a willowTeapot01 preset`, () => { const willowTeapot01Preset = willowTeapot01().build(); expect(willowTeapot01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Handwäsche nur", - "en-GB": "- Hand wash only", - "en-US": "- Hand wash only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Himmel blau:#87CEEB", - "en-GB": "Sky Blue:#87CEEB", - "en-US": "Sky Blue:#87CEEB", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Willow_Teapot-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "USD", - }, - }, - ], - "sku": "WTP-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Handwäsche nur", + "en-GB": "- Hand wash only", + "en-US": "- Hand wash only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Himmel blau:#87CEEB", + "en-GB": "Sky Blue:#87CEEB", + "en-US": "Sky Blue:#87CEEB", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Willow_Teapot-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + ], + "sku": "WTP-09", + } + `); }); it(`should return a willowTeapot01 preset when built for graphql`, () => { const willowTeapot01PresetGraphql = willowTeapot01().buildGraphql(); expect(willowTeapot01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Hand wash only","en-US":"- Hand wash only","de-DE":"- Handwäsche nur"}", - }, - { - "name": "color", - "value": "{"en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB","en-US":"Sky Blue:#87CEEB"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Willow_Teapot-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "WTP-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Hand wash only","en-US":"- Hand wash only","de-DE":"- Handwäsche nur"}", + }, + { + "name": "color", + "value": "{"en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB","en-US":"Sky Blue:#87CEEB"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Willow_Teapot-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "WTP-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/willow-teapot-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/willow-teapot-01.ts index 358bd64b9..c3e81c3c3 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/willow-teapot-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/willow-teapot-01.ts @@ -11,14 +11,17 @@ const willowTeapot01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('899EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(899)) .country('DE'), PriceDraft.presets .empty() + .key('899GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(899)) .country('GB'), PriceDraft.presets .empty() + .key('899USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(899)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wilma-chair-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wilma-chair-01.spec.ts index 2bb64ebf5..79ff9daa2 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wilma-chair-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wilma-chair-01.spec.ts @@ -8,199 +8,199 @@ describe(`with wilmaChair01 preset`, () => { it(`should return a wilmaChair01 preset`, () => { const wilmaChair01Preset = wilmaChair01().build(); expect(wilmaChair01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Kissenbezüge sind abnehmbar und maschinenwaschbar", - "en-GB": "- Cushion covers are removable and machine washable", - "en-US": "- Cushion covers are removable and machine washable", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Blumen weiß:#FFFAF0", - "en-GB": "Floral White:#FFFAF0", - "en-US": "Floral White:#FFFAF0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3200, - "w": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.1.jpeg", - }, - { - "dimensions": { - "h": 3200, - "w": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NJOP-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Kissenbezüge sind abnehmbar und maschinenwaschbar", + "en-GB": "- Cushion covers are removable and machine washable", + "en-US": "- Cushion covers are removable and machine washable", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Blumen weiß:#FFFAF0", + "en-GB": "Floral White:#FFFAF0", + "en-US": "Floral White:#FFFAF0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.1.jpeg", + }, + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NJOP-09", + } + `); }); it(`should return a wilmaChair01 preset when built for graphql`, () => { const wilmaChair01PresetGraphql = wilmaChair01().buildGraphql(); expect(wilmaChair01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Cushion covers are removable and machine washable","en-US":"- Cushion covers are removable and machine washable","de-DE":"- Kissenbezüge sind abnehmbar und maschinenwaschbar"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","en-US":"Black:#000000","de-DE":"Schwarz:#000000"}", - }, - { - "name": "color", - "value": "{"en-GB":"Floral White:#FFFAF0","de-DE":"Blumen weiß:#FFFAF0","en-US":"Floral White:#FFFAF0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3200, - "width": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.1.jpeg", - }, - { - "dimensions": { - "height": 3200, - "width": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NJOP-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Cushion covers are removable and machine washable","en-US":"- Cushion covers are removable and machine washable","de-DE":"- Kissenbezüge sind abnehmbar und maschinenwaschbar"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","en-US":"Black:#000000","de-DE":"Schwarz:#000000"}", + }, + { + "name": "color", + "value": "{"en-GB":"Floral White:#FFFAF0","de-DE":"Blumen weiß:#FFFAF0","en-US":"Floral White:#FFFAF0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3200, + "width": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.1.jpeg", + }, + { + "dimensions": { + "height": 3200, + "width": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NJOP-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wilma-chair-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wilma-chair-01.ts index 8cc066e2e..b70d36efb 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wilma-chair-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wilma-chair-01.ts @@ -11,14 +11,17 @@ const wilmaChair01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('29900EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(29900)) .country('DE'), PriceDraft.presets .empty() + .key('29900GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(29900)) .country('GB'), PriceDraft.presets .empty() + .key('29900USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(29900)) .country('US'), ]) diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener-01.spec.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener-01.spec.ts index 7d7bc3db5..f49fc7620 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener-01.spec.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener-01.spec.ts @@ -9,183 +9,183 @@ describe(`with wineBottleOpener01 preset`, () => { const wineBottleOpener01Preset = wineBottleOpener01().build(); expect(wineBottleOpener01Preset).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl", - "en-GB": "- Stainless steel", - "en-US": "- Stainless steel", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3456, - "w": 5184, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wine_Bottle_Opener-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "USD", - }, - }, - ], - "sku": "WOP-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl", + "en-GB": "- Stainless steel", + "en-US": "- Stainless steel", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3456, + "w": 5184, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wine_Bottle_Opener-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + ], + "sku": "WOP-09", + } + `); }); it(`should return a wineBottleOpener01 preset when built for graphql`, () => { const wineBottleOpener01PresetGraphql = wineBottleOpener01().buildGraphql(); expect(wineBottleOpener01PresetGraphql).toMatchInlineSnapshot(` -{ - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel","en-US":"- Stainless steel","de-DE":"- Edelstahl"}", - }, - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3456, - "width": 5184, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wine_Bottle_Opener-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "WOP-09", -} -`); + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel","en-US":"- Stainless steel","de-DE":"- Edelstahl"}", + }, + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3456, + "width": 5184, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wine_Bottle_Opener-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "WOP-09", + } + `); }); }); diff --git a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener-01.ts b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener-01.ts index cba97cbce..53347b7c1 100644 --- a/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener-01.ts +++ b/models/product/src/product-variant/product-variant-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener-01.ts @@ -11,14 +11,17 @@ const wineBottleOpener01 = (): TProductVariantDraftBuilder => .prices([ PriceDraft.presets .empty() + .key('199EUR') .value(MoneyDraft.random().currencyCode('EUR').centAmount(199)) .country('DE'), PriceDraft.presets .empty() + .key('199GBP') .value(MoneyDraft.random().currencyCode('GBP').centAmount(199)) .country('GB'), PriceDraft.presets .empty() + .key('199USD') .value(MoneyDraft.random().currencyCode('USD').centAmount(199)) .country('US'), ]) diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair.spec.ts index 83fa47da2..564e40411 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/abigail-lounge-chair.spec.ts @@ -6,337 +6,369 @@ describe(`with abigailLoungeChair preset`, () => { const abigailLoungeChairPreset = abigailLoungeChair().build(); expect(abigailLoungeChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Loungesessel mit rosafarbener Samtpolsterung und Spindelbeinen aus Messing ist ein luxuriöses und stilvolles Möbelstück, das jedem Wohnzimmer, Schlafzimmer oder Büro einen Hauch von Glamour verleihen kann. Der Stuhl verfügt über einen bequemen und geräumigen Sitz mit weicher und plüschiger Samtpolsterung in zartrosa Farbe. Die Rückenlehne und die Armlehnen des Stuhls sind leicht gebogen und bieten einen bequemen und stützenden Platz zum Sitzen und Entspannen. Die Spindelbeine aus Messing sind konisch zulaufend und tragen zur allgemeinen Eleganz und Raffinesse des Designs bei. Die Kombination aus rosafarbenem Samt und Messing ist sowohl opulent als auch schick und macht diesen Loungesessel zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen, von modern und minimalistisch bis hin zu Vintage-inspiriert und glamourös. Seine weiche Polsterung, kombiniert mit seinem eleganten und zeitlosen Design, machen ihn zu einem perfekten Ort, um sich stilvoll zu entspannen.", - "en": undefined, - "en-GB": "A lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room, bedroom or office. The chair features a comfortable and spacious seat with soft and plush velvet upholstery in soft pink color. The backrest and armrests of the chair are slightly curved, providing a comfortable and supportive place to sit and relax. The brass spindle legs are tapered, adding to the overall elegance and sophistication of the design. The combination of pink velvet and brass is both opulent and chic, making the lounge chair a perfect addition to a range of decor styles, from modern and minimalist to vintage-inspired and glam. Overall, a lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and comfortable piece of furniture that can add a touch of glamour and sophistication to any space. Its soft and plush upholstery, combined with its elegant and timeless design, make it a perfect place to relax and unwind in style.", - "en-US": "A lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room, bedroom or office. The chair features a comfortable and spacious seat with soft and plush velvet upholstery in soft pink color. The backrest and armrests of the chair are slightly curved, providing a comfortable and supportive place to sit and relax. The brass spindle legs are tapered, adding to the overall elegance and sophistication of the design. The combination of pink velvet and brass is both opulent and chic, making the lounge chair a perfect addition to a range of decor styles, from modern and minimalist to vintage-inspired and glam. Overall, a lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and comfortable piece of furniture that can add a touch of glamour and sophistication to any space. Its soft and plush upholstery, combined with its elegant and timeless design, make it a perfect place to relax and unwind in style.", - "fr": undefined, - }, - "key": "abigail-lounge-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Loungesessel mit rosafarbener Samtpolsterung und Spindelbeinen aus Messing ist ein luxuriöses und stilvolles Möbelstück, das jedem Wohnzimmer, Schlafzimmer oder Büro einen Hauch von Glamour verleihen kann. Der Stuhl verfügt über einen bequemen und geräumigen Sitz mit weicher und plüschiger Samtpolsterung in zartrosa Farbe. Die Rückenlehne und die Armlehnen des Stuhls sind leicht gebogen und bieten einen bequemen und stützenden Platz zum Sitzen und Entspannen. Die Spindelbeine aus Messing sind konisch zulaufend und tragen zur allgemeinen Eleganz und Raffinesse des Designs bei. Die Kombination aus rosafarbenem Samt und Messing ist sowohl opulent als auch schick und macht diesen Loungesessel zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen, von modern und minimalistisch bis hin zu Vintage-inspiriert und glamourös. Seine weiche Polsterung, kombiniert mit seinem eleganten und zeitlosen Design, machen ihn zu einem perfekten Ort, um sich stilvoll zu entspannen.", + "en": undefined, + "en-GB": "A lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room, bedroom or office. The chair features a comfortable and spacious seat with soft and plush velvet upholstery in soft pink color. The backrest and armrests of the chair are slightly curved, providing a comfortable and supportive place to sit and relax. The brass spindle legs are tapered, adding to the overall elegance and sophistication of the design. The combination of pink velvet and brass is both opulent and chic, making the lounge chair a perfect addition to a range of decor styles, from modern and minimalist to vintage-inspired and glam. Overall, a lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and comfortable piece of furniture that can add a touch of glamour and sophistication to any space. Its soft and plush upholstery, combined with its elegant and timeless design, make it a perfect place to relax and unwind in style.", + "en-US": "A lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room, bedroom or office. The chair features a comfortable and spacious seat with soft and plush velvet upholstery in soft pink color. The backrest and armrests of the chair are slightly curved, providing a comfortable and supportive place to sit and relax. The brass spindle legs are tapered, adding to the overall elegance and sophistication of the design. The combination of pink velvet and brass is both opulent and chic, making the lounge chair a perfect addition to a range of decor styles, from modern and minimalist to vintage-inspired and glam. Overall, a lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and comfortable piece of furniture that can add a touch of glamour and sophistication to any space. Its soft and plush upholstery, combined with its elegant and timeless design, make it a perfect place to relax and unwind in style.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", + "key": "abigail-lounge-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Wird mit passendem Kissen geliefert + - Samtpolsterung + - Wird zusammengebaut geliefert", + "en-GB": "- Comes with matching throw pillow + - Velvet upholstery + - Pre-assembled", + "en-US": "- Comes with matching throw pillow + - Velvet upholstery + - Pre-assembled", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Abigail_Lounge_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 75000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 75000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "70000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 70000, + "currencyCode": "USD", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 75000, + "currencyCode": "USD", + }, + }, + ], + "sku": "ALC-01", }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Wird mit passendem Kissen geliefert -- Samtpolsterung -- Wird zusammengebaut geliefert", - "en-GB": "- Comes with matching throw pillow -- Velvet upholstery -- Pre-assembled", - "en-US": "- Comes with matching throw pillow -- Velvet upholstery -- Pre-assembled", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Abigail Lounge-Sessel", + "en": undefined, + "en-GB": "Abigail Lounge Chair", + "en-US": "Abigail Lounge Chair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 5000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Abigail_Lounge_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 75000, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "abigail-lounge-stuhl", + "en": undefined, + "en-GB": "abigail-lounge-chair", + "en-US": "abigail-lounge-chair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 75000, - "currencyCode": "GBP", - }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 75000, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ALC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Abigail Lounge-Sessel", - "en": undefined, - "en-GB": "Abigail Lounge Chair", - "en-US": "Abigail Lounge Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "abigail-lounge-stuhl", - "en": undefined, - "en-GB": "abigail-lounge-chair", - "en-US": "abigail-lounge-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a abigailLoungeChair preset when built for graphql`, () => { const abigailLoungeChairPresetGraphql = abigailLoungeChair().buildGraphql(); expect(abigailLoungeChairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room, bedroom or office. The chair features a comfortable and spacious seat with soft and plush velvet upholstery in soft pink color. The backrest and armrests of the chair are slightly curved, providing a comfortable and supportive place to sit and relax. The brass spindle legs are tapered, adding to the overall elegance and sophistication of the design. The combination of pink velvet and brass is both opulent and chic, making the lounge chair a perfect addition to a range of decor styles, from modern and minimalist to vintage-inspired and glam. Overall, a lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and comfortable piece of furniture that can add a touch of glamour and sophistication to any space. Its soft and plush upholstery, combined with its elegant and timeless design, make it a perfect place to relax and unwind in style.", - }, - { - "locale": "en-US", - "value": "A lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room, bedroom or office. The chair features a comfortable and spacious seat with soft and plush velvet upholstery in soft pink color. The backrest and armrests of the chair are slightly curved, providing a comfortable and supportive place to sit and relax. The brass spindle legs are tapered, adding to the overall elegance and sophistication of the design. The combination of pink velvet and brass is both opulent and chic, making the lounge chair a perfect addition to a range of decor styles, from modern and minimalist to vintage-inspired and glam. Overall, a lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and comfortable piece of furniture that can add a touch of glamour and sophistication to any space. Its soft and plush upholstery, combined with its elegant and timeless design, make it a perfect place to relax and unwind in style.", - }, - { - "locale": "de-DE", - "value": "Ein Loungesessel mit rosafarbener Samtpolsterung und Spindelbeinen aus Messing ist ein luxuriöses und stilvolles Möbelstück, das jedem Wohnzimmer, Schlafzimmer oder Büro einen Hauch von Glamour verleihen kann. Der Stuhl verfügt über einen bequemen und geräumigen Sitz mit weicher und plüschiger Samtpolsterung in zartrosa Farbe. Die Rückenlehne und die Armlehnen des Stuhls sind leicht gebogen und bieten einen bequemen und stützenden Platz zum Sitzen und Entspannen. Die Spindelbeine aus Messing sind konisch zulaufend und tragen zur allgemeinen Eleganz und Raffinesse des Designs bei. Die Kombination aus rosafarbenem Samt und Messing ist sowohl opulent als auch schick und macht diesen Loungesessel zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen, von modern und minimalistisch bis hin zu Vintage-inspiriert und glamourös. Seine weiche Polsterung, kombiniert mit seinem eleganten und zeitlosen Design, machen ihn zu einem perfekten Ort, um sich stilvoll zu entspannen.", - }, - ], - "key": "abigail-lounge-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Light Pink:#FFB6C1","en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1"}", - }, - { - "name": "finish", - "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Comes with matching throw pillow\\n- Velvet upholstery\\n- Pre-assembled","en-GB":"- Comes with matching throw pillow\\n- Velvet upholstery\\n- Pre-assembled","de-DE":"- Wird mit passendem Kissen geliefert\\n- Samtpolsterung\\n- Wird zusammengebaut geliefert"}", - }, - ], - "images": [ { - "dimensions": { - "height": 4000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Abigail_Lounge_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 75000, - "currencyCode": "EUR", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 75000, - "currencyCode": "GBP", + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room, bedroom or office. The chair features a comfortable and spacious seat with soft and plush velvet upholstery in soft pink color. The backrest and armrests of the chair are slightly curved, providing a comfortable and supportive place to sit and relax. The brass spindle legs are tapered, adding to the overall elegance and sophistication of the design. The combination of pink velvet and brass is both opulent and chic, making the lounge chair a perfect addition to a range of decor styles, from modern and minimalist to vintage-inspired and glam. Overall, a lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and comfortable piece of furniture that can add a touch of glamour and sophistication to any space. Its soft and plush upholstery, combined with its elegant and timeless design, make it a perfect place to relax and unwind in style.", + }, + { + "locale": "en-US", + "value": "A lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room, bedroom or office. The chair features a comfortable and spacious seat with soft and plush velvet upholstery in soft pink color. The backrest and armrests of the chair are slightly curved, providing a comfortable and supportive place to sit and relax. The brass spindle legs are tapered, adding to the overall elegance and sophistication of the design. The combination of pink velvet and brass is both opulent and chic, making the lounge chair a perfect addition to a range of decor styles, from modern and minimalist to vintage-inspired and glam. Overall, a lounge chair with pink velvet upholstery and brass spindle legs is a luxurious and comfortable piece of furniture that can add a touch of glamour and sophistication to any space. Its soft and plush upholstery, combined with its elegant and timeless design, make it a perfect place to relax and unwind in style.", }, + { + "locale": "de-DE", + "value": "Ein Loungesessel mit rosafarbener Samtpolsterung und Spindelbeinen aus Messing ist ein luxuriöses und stilvolles Möbelstück, das jedem Wohnzimmer, Schlafzimmer oder Büro einen Hauch von Glamour verleihen kann. Der Stuhl verfügt über einen bequemen und geräumigen Sitz mit weicher und plüschiger Samtpolsterung in zartrosa Farbe. Die Rückenlehne und die Armlehnen des Stuhls sind leicht gebogen und bieten einen bequemen und stützenden Platz zum Sitzen und Entspannen. Die Spindelbeine aus Messing sind konisch zulaufend und tragen zur allgemeinen Eleganz und Raffinesse des Designs bei. Die Kombination aus rosafarbenem Samt und Messing ist sowohl opulent als auch schick und macht diesen Loungesessel zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen, von modern und minimalistisch bis hin zu Vintage-inspiriert und glamourös. Seine weiche Polsterung, kombiniert mit seinem eleganten und zeitlosen Design, machen ihn zu einem perfekten Ort, um sich stilvoll zu entspannen.", + }, + ], + "key": "abigail-lounge-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Light Pink:#FFB6C1","en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1"}", + }, + { + "name": "finish", + "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Comes with matching throw pillow\\n- Velvet upholstery\\n- Pre-assembled","en-GB":"- Comes with matching throw pillow\\n- Velvet upholstery\\n- Pre-assembled","de-DE":"- Wird mit passendem Kissen geliefert\\n- Samtpolsterung\\n- Wird zusammengebaut geliefert"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Abigail_Lounge_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 75000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 75000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "70000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 70000, + "currencyCode": "USD", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "75000USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 75000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ALC-01", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Abigail Lounge Chair", + }, + { + "locale": "en-GB", + "value": "Abigail Lounge Chair", + }, + { + "locale": "de-DE", + "value": "Abigail Lounge-Sessel", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 75000, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "abigail-lounge-chair", + }, + { + "locale": "en-GB", + "value": "abigail-lounge-chair", + }, + { + "locale": "de-DE", + "value": "abigail-lounge-stuhl", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ALC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Abigail Lounge Chair", - }, - { - "locale": "en-GB", - "value": "Abigail Lounge Chair", - }, - { - "locale": "de-DE", - "value": "Abigail Lounge-Sessel", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "abigail-lounge-chair", - }, - { - "locale": "en-GB", - "value": "abigail-lounge-chair", - }, - { - "locale": "de-DE", - "value": "abigail-lounge-stuhl", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/amalia-rug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/amalia-rug.spec.ts index b30bac1a8..ca9fb6fa8 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/amalia-rug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/amalia-rug.spec.ts @@ -5,304 +5,304 @@ describe(`with amaliaRug preset`, () => { it(`should return a amaliaRug preset`, () => { const amaliaRugPreset = amaliaRug().build(); expect(amaliaRugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser runde Plüsch-Akzent-Teppich weich und bequem. Der dichte Flor vermittelt ein weiches Gefühl. Die Fasern sind dicht gepackt und verleihen dem Teppich ein üppiges und luxuriöses Gefühl. Der Teppich ist ein großartiger dekorativer Akzent in einem Schlafzimmer, Wohnzimmer oder anderen Bereichen, in denen ein kleiner Hauch von Weichheit und Komfort erwünscht ist. Aufgrund ihrer geringen Größe lassen sich runde Plüschteppiche leicht bewegen und neu positionieren, was sie zu einer vielseitigen Ergänzung für jedes Zuhause macht. Sie sind außerdem leicht zu reinigen und zu pflegen, was sie zu einer praktischen Wahl für stark frequentierte Bereiche macht. Insgesamt ist ein runder Teppich mit Plüschakzenten eine gemütliche und einladende Ergänzung für jeden Raum. Seine weiche Textur und luxuriöse Haptik machen es zu einer beliebten Wahl für diejenigen, die ihrem Wohnraum einen Hauch von Komfort und Stil verleihen möchten.", - "en": undefined, - "en-GB": "A round plush accent rug is designed to be soft and comfortable underfoot, with a thick and dense pile that provides a plush feel. The fibers are densely packed together, giving the rug a lush and luxurious feel. The rug is a great decorative accent in a bedroom, living room, or other area where a small touch of softness and comfort is desired. Because of their small size, round plush accent rugs are easy to move and reposition, making them a versatile addition to any home. They are also easy to clean and maintain, making them a practical choice for high-traffic areas. Overall, a round plush accent rug is a cozy and inviting addition to any room. Its soft texture and luxurious feel make it a popular choice for those who want to add a touch of comfort and style to their living space.", - "en-US": "A round plush accent rug is designed to be soft and comfortable underfoot, with a thick and dense pile that provides a plush feel. The fibers are densely packed together, giving the rug a lush and luxurious feel. The rug is a great decorative accent in a bedroom, living room, or other area where a small touch of softness and comfort is desired. Because of their small size, round plush accent rugs are easy to move and reposition, making them a versatile addition to any home. They are also easy to clean and maintain, making them a practical choice for high-traffic areas. Overall, a round plush accent rug is a cozy and inviting addition to any room. Its soft texture and luxurious feel make it a popular choice for those who want to add a touch of comfort and style to their living space.", - "fr": undefined, - }, - "key": "amalia-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- 6 Fuß x 6 Fuß", - "en-GB": "- 6ft x 6ft", - "en-US": "- 6ft x 6ft", + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser runde Plüsch-Akzent-Teppich weich und bequem. Der dichte Flor vermittelt ein weiches Gefühl. Die Fasern sind dicht gepackt und verleihen dem Teppich ein üppiges und luxuriöses Gefühl. Der Teppich ist ein großartiger dekorativer Akzent in einem Schlafzimmer, Wohnzimmer oder anderen Bereichen, in denen ein kleiner Hauch von Weichheit und Komfort erwünscht ist. Aufgrund ihrer geringen Größe lassen sich runde Plüschteppiche leicht bewegen und neu positionieren, was sie zu einer vielseitigen Ergänzung für jedes Zuhause macht. Sie sind außerdem leicht zu reinigen und zu pflegen, was sie zu einer praktischen Wahl für stark frequentierte Bereiche macht. Insgesamt ist ein runder Teppich mit Plüschakzenten eine gemütliche und einladende Ergänzung für jeden Raum. Seine weiche Textur und luxuriöse Haptik machen es zu einer beliebten Wahl für diejenigen, die ihrem Wohnraum einen Hauch von Komfort und Stil verleihen möchten.", + "en": undefined, + "en-GB": "A round plush accent rug is designed to be soft and comfortable underfoot, with a thick and dense pile that provides a plush feel. The fibers are densely packed together, giving the rug a lush and luxurious feel. The rug is a great decorative accent in a bedroom, living room, or other area where a small touch of softness and comfort is desired. Because of their small size, round plush accent rugs are easy to move and reposition, making them a versatile addition to any home. They are also easy to clean and maintain, making them a practical choice for high-traffic areas. Overall, a round plush accent rug is a cozy and inviting addition to any room. Its soft texture and luxurious feel make it a popular choice for those who want to add a touch of comfort and style to their living space.", + "en-US": "A round plush accent rug is designed to be soft and comfortable underfoot, with a thick and dense pile that provides a plush feel. The fibers are densely packed together, giving the rug a lush and luxurious feel. The rug is a great decorative accent in a bedroom, living room, or other area where a small touch of softness and comfort is desired. Because of their small size, round plush accent rugs are easy to move and reposition, making them a versatile addition to any home. They are also easy to clean and maintain, making them a practical choice for high-traffic areas. Overall, a round plush accent rug is a cozy and inviting addition to any room. Its soft texture and luxurious feel make it a popular choice for those who want to add a touch of comfort and style to their living space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "key": "amalia-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 6 Fuß x 6 Fuß", + "en-GB": "- 6ft x 6ft", + "en-US": "- 6ft x 6ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Amalia_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 13999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 13999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 13999, + "currencyCode": "USD", + }, + }, + ], + "sku": "AMR-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Teppich "Amalia"", + "en": undefined, + "en-GB": "Amalia Rug", + "en-US": "Amalia Rug", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Amalia_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 13999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 13999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "amalia-teppich", + "en": undefined, + "en-GB": "amalia-rug", + "en-US": "amalia-rug", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 13999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "AMR-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Teppich "Amalia"", - "en": undefined, - "en-GB": "Amalia Rug", - "en-US": "Amalia Rug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "amalia-teppich", - "en": undefined, - "en-GB": "amalia-rug", - "en-US": "amalia-rug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a amaliaRug preset when built for graphql`, () => { const amaliaRugPresetGraphql = amaliaRug().buildGraphql(); expect(amaliaRugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A round plush accent rug is designed to be soft and comfortable underfoot, with a thick and dense pile that provides a plush feel. The fibers are densely packed together, giving the rug a lush and luxurious feel. The rug is a great decorative accent in a bedroom, living room, or other area where a small touch of softness and comfort is desired. Because of their small size, round plush accent rugs are easy to move and reposition, making them a versatile addition to any home. They are also easy to clean and maintain, making them a practical choice for high-traffic areas. Overall, a round plush accent rug is a cozy and inviting addition to any room. Its soft texture and luxurious feel make it a popular choice for those who want to add a touch of comfort and style to their living space.", - }, - { - "locale": "en-US", - "value": "A round plush accent rug is designed to be soft and comfortable underfoot, with a thick and dense pile that provides a plush feel. The fibers are densely packed together, giving the rug a lush and luxurious feel. The rug is a great decorative accent in a bedroom, living room, or other area where a small touch of softness and comfort is desired. Because of their small size, round plush accent rugs are easy to move and reposition, making them a versatile addition to any home. They are also easy to clean and maintain, making them a practical choice for high-traffic areas. Overall, a round plush accent rug is a cozy and inviting addition to any room. Its soft texture and luxurious feel make it a popular choice for those who want to add a touch of comfort and style to their living space.", - }, - { - "locale": "de-DE", - "value": "Dieser runde Plüsch-Akzent-Teppich weich und bequem. Der dichte Flor vermittelt ein weiches Gefühl. Die Fasern sind dicht gepackt und verleihen dem Teppich ein üppiges und luxuriöses Gefühl. Der Teppich ist ein großartiger dekorativer Akzent in einem Schlafzimmer, Wohnzimmer oder anderen Bereichen, in denen ein kleiner Hauch von Weichheit und Komfort erwünscht ist. Aufgrund ihrer geringen Größe lassen sich runde Plüschteppiche leicht bewegen und neu positionieren, was sie zu einer vielseitigen Ergänzung für jedes Zuhause macht. Sie sind außerdem leicht zu reinigen und zu pflegen, was sie zu einer praktischen Wahl für stark frequentierte Bereiche macht. Insgesamt ist ein runder Teppich mit Plüschakzenten eine gemütliche und einladende Ergänzung für jeden Raum. Seine weiche Textur und luxuriöse Haptik machen es zu einer beliebten Wahl für diejenigen, die ihrem Wohnraum einen Hauch von Komfort und Stil verleihen möchten.", - }, - ], - "key": "amalia-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 6ft x 6ft","de-DE":"- 6 Fuß x 6 Fuß","en-US":"- 6ft x 6ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Amalia_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 13999, - "currencyCode": "EUR", + "categories": [ + { + "key": "rugs", + "typeId": "category", }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A round plush accent rug is designed to be soft and comfortable underfoot, with a thick and dense pile that provides a plush feel. The fibers are densely packed together, giving the rug a lush and luxurious feel. The rug is a great decorative accent in a bedroom, living room, or other area where a small touch of softness and comfort is desired. Because of their small size, round plush accent rugs are easy to move and reposition, making them a versatile addition to any home. They are also easy to clean and maintain, making them a practical choice for high-traffic areas. Overall, a round plush accent rug is a cozy and inviting addition to any room. Its soft texture and luxurious feel make it a popular choice for those who want to add a touch of comfort and style to their living space.", + }, + { + "locale": "en-US", + "value": "A round plush accent rug is designed to be soft and comfortable underfoot, with a thick and dense pile that provides a plush feel. The fibers are densely packed together, giving the rug a lush and luxurious feel. The rug is a great decorative accent in a bedroom, living room, or other area where a small touch of softness and comfort is desired. Because of their small size, round plush accent rugs are easy to move and reposition, making them a versatile addition to any home. They are also easy to clean and maintain, making them a practical choice for high-traffic areas. Overall, a round plush accent rug is a cozy and inviting addition to any room. Its soft texture and luxurious feel make it a popular choice for those who want to add a touch of comfort and style to their living space.", + }, + { + "locale": "de-DE", + "value": "Dieser runde Plüsch-Akzent-Teppich weich und bequem. Der dichte Flor vermittelt ein weiches Gefühl. Die Fasern sind dicht gepackt und verleihen dem Teppich ein üppiges und luxuriöses Gefühl. Der Teppich ist ein großartiger dekorativer Akzent in einem Schlafzimmer, Wohnzimmer oder anderen Bereichen, in denen ein kleiner Hauch von Weichheit und Komfort erwünscht ist. Aufgrund ihrer geringen Größe lassen sich runde Plüschteppiche leicht bewegen und neu positionieren, was sie zu einer vielseitigen Ergänzung für jedes Zuhause macht. Sie sind außerdem leicht zu reinigen und zu pflegen, was sie zu einer praktischen Wahl für stark frequentierte Bereiche macht. Insgesamt ist ein runder Teppich mit Plüschakzenten eine gemütliche und einladende Ergänzung für jeden Raum. Seine weiche Textur und luxuriöse Haptik machen es zu einer beliebten Wahl für diejenigen, die ihrem Wohnraum einen Hauch von Komfort und Stil verleihen möchten.", + }, + ], + "key": "amalia-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 6ft x 6ft","de-DE":"- 6 Fuß x 6 Fuß","en-US":"- 6ft x 6ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Amalia_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 13999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 13999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "13999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 13999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "AMR-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 13999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Amalia Rug", }, + { + "locale": "en-GB", + "value": "Amalia Rug", + }, + { + "locale": "de-DE", + "value": "Teppich "Amalia"", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 13999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "amalia-rug", + }, + { + "locale": "en-GB", + "value": "amalia-rug", + }, + { + "locale": "de-DE", + "value": "amalia-teppich", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "AMR-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Amalia Rug", - }, - { - "locale": "en-GB", - "value": "Amalia Rug", - }, - { - "locale": "de-DE", - "value": "Teppich "Amalia"", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "amalia-rug", - }, - { - "locale": "en-GB", - "value": "amalia-rug", - }, - { - "locale": "de-DE", - "value": "amalia-teppich", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/aria-rug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/aria-rug.spec.ts index 36b842df9..571764c17 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/aria-rug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/aria-rug.spec.ts @@ -5,355 +5,355 @@ describe(`with ariaRug preset`, () => { it(`should return a ariaRug preset`, () => { const ariaRugPreset = ariaRug().build(); expect(ariaRugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der Aria-Teppich ist ein Flächenteppich mit einem geometrischen Muster, das ein sich wiederholendes Design aus Formen und Linien aufweist, das sowohl modern als auch vielseitig ist. Es kann einem Raum visuelles Interesse und Textur verleihen und dabei helfen, einen Raum zu definieren und zu verankern. Insgesamt ist ein Teppich mit geometrischem Muster eine vielseitige und stilvolle Wahl für jeden Raum. Sein mutiges und markantes Design kann einem Raum Charakter und Interesse verleihen, während seine weiche und komfortable Textur eine gemütliche und einladende Atmosphäre schaffen kann.", - "en": undefined, - "en-GB": "The Aria Rug is an area rug with a geometric pattern that features a repeating design made up of shapes and lines, which is both modern and eclectic. It can add visual interest and texture to a room, and can help define and anchor a space. Overall, an area rug with a geometric pattern is a versatile and stylish choice for any room. Its bold and striking design can add character and interest to a space, while its soft and comfortable texture can create a cozy and inviting atmosphere.", - "en-US": "The Aria Rug is an area rug with a geometric pattern that features a repeating design made up of shapes and lines, which is both modern and eclectic. It can add visual interest and texture to a room, and can help define and anchor a space. Overall, an area rug with a geometric pattern is a versatile and stylish choice for any room. Its bold and striking design can add character and interest to a space, while its soft and comfortable texture can create a cozy and inviting atmosphere.", - "fr": undefined, - }, - "key": "aria-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung -- 5 Fuß x 7 Fuß", - "en-GB": "- Dry clean only -- 5ft x 7ft", - "en-US": "- Dry clean only -- 5ft x 7ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Elfenbein:#FFFFF0", - "en-GB": "Ivory:#FFFFF0", - "en-US": "Ivory:#FFFFF0", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3900, - "w": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.1.jpeg", - }, - { - "dimensions": { - "h": 3900, - "w": 5200, + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der Aria-Teppich ist ein Flächenteppich mit einem geometrischen Muster, das ein sich wiederholendes Design aus Formen und Linien aufweist, das sowohl modern als auch vielseitig ist. Es kann einem Raum visuelles Interesse und Textur verleihen und dabei helfen, einen Raum zu definieren und zu verankern. Insgesamt ist ein Teppich mit geometrischem Muster eine vielseitige und stilvolle Wahl für jeden Raum. Sein mutiges und markantes Design kann einem Raum Charakter und Interesse verleihen, während seine weiche und komfortable Textur eine gemütliche und einladende Atmosphäre schaffen kann.", + "en": undefined, + "en-GB": "The Aria Rug is an area rug with a geometric pattern that features a repeating design made up of shapes and lines, which is both modern and eclectic. It can add visual interest and texture to a room, and can help define and anchor a space. Overall, an area rug with a geometric pattern is a versatile and stylish choice for any room. Its bold and striking design can add character and interest to a space, while its soft and comfortable texture can create a cozy and inviting atmosphere.", + "en-US": "The Aria Rug is an area rug with a geometric pattern that features a repeating design made up of shapes and lines, which is both modern and eclectic. It can add visual interest and texture to a room, and can help define and anchor a space. Overall, an area rug with a geometric pattern is a versatile and stylish choice for any room. Its bold and striking design can add character and interest to a space, while its soft and comfortable texture can create a cozy and inviting atmosphere.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.2.jpeg", - }, - { - "dimensions": { - "h": 3900, - "w": 5200, + "key": "aria-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung + - 5 Fuß x 7 Fuß", + "en-GB": "- Dry clean only + - 5ft x 7ft", + "en-US": "- Dry clean only + - 5ft x 7ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Elfenbein:#FFFFF0", + "en-GB": "Ivory:#FFFFF0", + "en-US": "Ivory:#FFFFF0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3900, + "w": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.1.jpeg", + }, + { + "dimensions": { + "h": 3900, + "w": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.2.jpeg", + }, + { + "dimensions": { + "h": 3900, + "w": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.4.jpeg", + }, + { + "dimensions": { + "h": 3900, + "w": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12499, + "currencyCode": "USD", + }, + }, + ], + "sku": "AAR-34", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.4.jpeg", - }, - { - "dimensions": { - "h": 3900, - "w": 5200, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Teppich "Aria"", + "en": undefined, + "en-GB": "Aria Rug", + "en-US": "Aria Rug", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12499, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12499, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "aria-teppich", + "en": undefined, + "en-GB": "aria-rug", + "en-US": "aria-rug", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12499, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "AAR-34", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Teppich "Aria"", - "en": undefined, - "en-GB": "Aria Rug", - "en-US": "Aria Rug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "aria-teppich", - "en": undefined, - "en-GB": "aria-rug", - "en-US": "aria-rug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a ariaRug preset when built for graphql`, () => { const ariaRugPresetGraphql = ariaRug().buildGraphql(); expect(ariaRugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "de-DE", - "value": "Der Aria-Teppich ist ein Flächenteppich mit einem geometrischen Muster, das ein sich wiederholendes Design aus Formen und Linien aufweist, das sowohl modern als auch vielseitig ist. Es kann einem Raum visuelles Interesse und Textur verleihen und dabei helfen, einen Raum zu definieren und zu verankern. Insgesamt ist ein Teppich mit geometrischem Muster eine vielseitige und stilvolle Wahl für jeden Raum. Sein mutiges und markantes Design kann einem Raum Charakter und Interesse verleihen, während seine weiche und komfortable Textur eine gemütliche und einladende Atmosphäre schaffen kann.", - }, - { - "locale": "en-GB", - "value": "The Aria Rug is an area rug with a geometric pattern that features a repeating design made up of shapes and lines, which is both modern and eclectic. It can add visual interest and texture to a room, and can help define and anchor a space. Overall, an area rug with a geometric pattern is a versatile and stylish choice for any room. Its bold and striking design can add character and interest to a space, while its soft and comfortable texture can create a cozy and inviting atmosphere.", - }, - { - "locale": "en-US", - "value": "The Aria Rug is an area rug with a geometric pattern that features a repeating design made up of shapes and lines, which is both modern and eclectic. It can add visual interest and texture to a room, and can help define and anchor a space. Overall, an area rug with a geometric pattern is a versatile and stylish choice for any room. Its bold and striking design can add character and interest to a space, while its soft and comfortable texture can create a cozy and inviting atmosphere.", - }, - ], - "key": "aria-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only\\n- 5ft x 7ft","de-DE":"- Nur chemische Reinigung\\n- 5 Fuß x 7 Fuß","en-US":"- Dry clean only\\n- 5ft x 7ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3900, - "width": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.1.jpeg", - }, { - "dimensions": { - "height": 3900, - "width": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.2.jpeg", - }, - { - "dimensions": { - "height": 3900, - "width": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.4.jpeg", - }, - { - "dimensions": { - "height": 3900, - "width": 5200, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12499, - "currencyCode": "EUR", + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "de-DE", + "value": "Der Aria-Teppich ist ein Flächenteppich mit einem geometrischen Muster, das ein sich wiederholendes Design aus Formen und Linien aufweist, das sowohl modern als auch vielseitig ist. Es kann einem Raum visuelles Interesse und Textur verleihen und dabei helfen, einen Raum zu definieren und zu verankern. Insgesamt ist ein Teppich mit geometrischem Muster eine vielseitige und stilvolle Wahl für jeden Raum. Sein mutiges und markantes Design kann einem Raum Charakter und Interesse verleihen, während seine weiche und komfortable Textur eine gemütliche und einladende Atmosphäre schaffen kann.", }, + { + "locale": "en-GB", + "value": "The Aria Rug is an area rug with a geometric pattern that features a repeating design made up of shapes and lines, which is both modern and eclectic. It can add visual interest and texture to a room, and can help define and anchor a space. Overall, an area rug with a geometric pattern is a versatile and stylish choice for any room. Its bold and striking design can add character and interest to a space, while its soft and comfortable texture can create a cozy and inviting atmosphere.", + }, + { + "locale": "en-US", + "value": "The Aria Rug is an area rug with a geometric pattern that features a repeating design made up of shapes and lines, which is both modern and eclectic. It can add visual interest and texture to a room, and can help define and anchor a space. Overall, an area rug with a geometric pattern is a versatile and stylish choice for any room. Its bold and striking design can add character and interest to a space, while its soft and comfortable texture can create a cozy and inviting atmosphere.", + }, + ], + "key": "aria-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only\\n- 5ft x 7ft","de-DE":"- Nur chemische Reinigung\\n- 5 Fuß x 7 Fuß","en-US":"- Dry clean only\\n- 5ft x 7ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3900, + "width": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.1.jpeg", + }, + { + "dimensions": { + "height": 3900, + "width": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.2.jpeg", + }, + { + "dimensions": { + "height": 3900, + "width": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.4.jpeg", + }, + { + "dimensions": { + "height": 3900, + "width": 5200, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Aria_Rug-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "AAR-34", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12499, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Aria Rug", + }, + { + "locale": "en-GB", + "value": "Aria Rug", }, + { + "locale": "de-DE", + "value": "Teppich "Aria"", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12499, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "aria-rug", + }, + { + "locale": "en-GB", + "value": "aria-rug", + }, + { + "locale": "de-DE", + "value": "aria-teppich", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "AAR-34", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Aria Rug", - }, - { - "locale": "en-GB", - "value": "Aria Rug", - }, - { - "locale": "de-DE", - "value": "Teppich "Aria"", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "aria-rug", - }, - { - "locale": "en-GB", - "value": "aria-rug", - }, - { - "locale": "de-DE", - "value": "aria-teppich", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/art-deco-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/art-deco-chair.spec.ts index 0b8e8ff56..a16664986 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/art-deco-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/art-deco-chair.spec.ts @@ -5,305 +5,305 @@ describe(`with artDecoChair preset`, () => { it(`should return a artDecoChair preset`, () => { const artDecoChairPreset = artDecoChair().build(); expect(artDecoChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Art-Deco-Stuhl mit Metallbeinen hat ein schlankes, stromlinienförmiges Design, das Raffinesse und Eleganz ausstrahlt. Der Stuhl hat einen bequem gepolsterten Sitz und eine Rückenlehne mit strapazierfähiger Baumwollpolsterung, die ein weiches und luxuriöses Gefühl vermittelt. Die Metallbeine haben eine glatte Oberfläche, die den modernen Stil des Stuhls betont. Der Stuhl bedient sich markante Art-Deco-Elemente wie eckige Formen, kräftige Linien und geometrische Muster. Der Stuhl ist ein markantes Möbelstück, das jedem Raum Stil und Komfort verleiht.", - "en": undefined, - "en-GB": "An art deco chair with metal legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with durable cotton upholstery providing a soft and luxurious feel. The metal legs have a smooth finish that accentuates the chair's modern style. The chair features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair is a striking piece of furniture that adds both style and comfort to any room.", - "en-US": "An art deco chair with metal legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with durable cotton upholstery providing a soft and luxurious feel. The metal legs have a smooth finish that accentuates the chair's modern style. The chair features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair is a striking piece of furniture that adds both style and comfort to any room.", - "fr": undefined, - }, - "key": "art-deco-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Montage bei Lieferung", - "en-GB": "- Assembly on delivery", - "en-US": "- Assembly on delivery", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Art-Deco-Stuhl mit Metallbeinen hat ein schlankes, stromlinienförmiges Design, das Raffinesse und Eleganz ausstrahlt. Der Stuhl hat einen bequem gepolsterten Sitz und eine Rückenlehne mit strapazierfähiger Baumwollpolsterung, die ein weiches und luxuriöses Gefühl vermittelt. Die Metallbeine haben eine glatte Oberfläche, die den modernen Stil des Stuhls betont. Der Stuhl bedient sich markante Art-Deco-Elemente wie eckige Formen, kräftige Linien und geometrische Muster. Der Stuhl ist ein markantes Möbelstück, das jedem Raum Stil und Komfort verleiht.", + "en": undefined, + "en-GB": "An art deco chair with metal legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with durable cotton upholstery providing a soft and luxurious feel. The metal legs have a smooth finish that accentuates the chair's modern style. The chair features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair is a striking piece of furniture that adds both style and comfort to any room.", + "en-US": "An art deco chair with metal legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with durable cotton upholstery providing a soft and luxurious feel. The metal legs have a smooth finish that accentuates the chair's modern style. The chair features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair is a striking piece of furniture that adds both style and comfort to any room.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Grau:#808080", - "en-GB": "Grey:#808080", - "en-US": "Gray:#808080", + "key": "art-deco-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage bei Lieferung", + "en-GB": "- Assembly on delivery", + "en-US": "- Assembly on delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grau:#808080", + "en-GB": "Grey:#808080", + "en-US": "Gray:#808080", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "ADARM-04", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sessel im Art-Deco-Stil", + "en": undefined, + "en-GB": "Art Deco Chair", + "en-US": "Art Deco Chair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "art-deco-stuhl", + "en": undefined, + "en-GB": "art-deco-chair", + "en-US": "art-deco-chair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ADARM-04", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sessel im Art-Deco-Stil", - "en": undefined, - "en-GB": "Art Deco Chair", - "en-US": "Art Deco Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "art-deco-stuhl", - "en": undefined, - "en-GB": "art-deco-chair", - "en-US": "art-deco-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a artDecoChair preset when built for graphql`, () => { const artDecoChairPresetGraphql = artDecoChair().buildGraphql(); expect(artDecoChairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "An art deco chair with metal legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with durable cotton upholstery providing a soft and luxurious feel. The metal legs have a smooth finish that accentuates the chair's modern style. The chair features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair is a striking piece of furniture that adds both style and comfort to any room.", - }, - { - "locale": "en-US", - "value": "An art deco chair with metal legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with durable cotton upholstery providing a soft and luxurious feel. The metal legs have a smooth finish that accentuates the chair's modern style. The chair features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair is a striking piece of furniture that adds both style and comfort to any room.", - }, - { - "locale": "de-DE", - "value": "Dieser Art-Deco-Stuhl mit Metallbeinen hat ein schlankes, stromlinienförmiges Design, das Raffinesse und Eleganz ausstrahlt. Der Stuhl hat einen bequem gepolsterten Sitz und eine Rückenlehne mit strapazierfähiger Baumwollpolsterung, die ein weiches und luxuriöses Gefühl vermittelt. Die Metallbeine haben eine glatte Oberfläche, die den modernen Stil des Stuhls betont. Der Stuhl bedient sich markante Art-Deco-Elemente wie eckige Formen, kräftige Linien und geometrische Muster. Der Stuhl ist ein markantes Möbelstück, das jedem Raum Stil und Komfort verleiht.", - }, - ], - "key": "art-deco-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly on delivery","de-DE":"- Montage bei Lieferung","en-US":"- Assembly on delivery"}", - }, - { - "name": "color", - "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", + "categories": [ + { + "key": "armchairs", + "typeId": "category", }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "An art deco chair with metal legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with durable cotton upholstery providing a soft and luxurious feel. The metal legs have a smooth finish that accentuates the chair's modern style. The chair features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair is a striking piece of furniture that adds both style and comfort to any room.", + }, + { + "locale": "en-US", + "value": "An art deco chair with metal legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with durable cotton upholstery providing a soft and luxurious feel. The metal legs have a smooth finish that accentuates the chair's modern style. The chair features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair is a striking piece of furniture that adds both style and comfort to any room.", + }, + { + "locale": "de-DE", + "value": "Dieser Art-Deco-Stuhl mit Metallbeinen hat ein schlankes, stromlinienförmiges Design, das Raffinesse und Eleganz ausstrahlt. Der Stuhl hat einen bequem gepolsterten Sitz und eine Rückenlehne mit strapazierfähiger Baumwollpolsterung, die ein weiches und luxuriöses Gefühl vermittelt. Die Metallbeine haben eine glatte Oberfläche, die den modernen Stil des Stuhls betont. Der Stuhl bedient sich markante Art-Deco-Elemente wie eckige Formen, kräftige Linien und geometrische Muster. Der Stuhl ist ein markantes Möbelstück, das jedem Raum Stil und Komfort verleiht.", + }, + ], + "key": "art-deco-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly on delivery","de-DE":"- Montage bei Lieferung","en-US":"- Assembly on delivery"}", + }, + { + "name": "color", + "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ADARM-04", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Art Deco Chair", }, + { + "locale": "en-GB", + "value": "Art Deco Chair", + }, + { + "locale": "de-DE", + "value": "Sessel im Art-Deco-Stil", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "art-deco-chair", + }, + { + "locale": "en-GB", + "value": "art-deco-chair", + }, + { + "locale": "de-DE", + "value": "art-deco-stuhl", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ADARM-04", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Art Deco Chair", - }, - { - "locale": "en-GB", - "value": "Art Deco Chair", - }, - { - "locale": "de-DE", - "value": "Sessel im Art-Deco-Stil", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "art-deco-chair", - }, - { - "locale": "en-GB", - "value": "art-deco-chair", - }, - { - "locale": "de-DE", - "value": "art-deco-stuhl", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table.spec.ts index 0cafb4561..6f03a6628 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/art-deco-coffee-table.spec.ts @@ -6,339 +6,339 @@ describe(`with artDecoCoffeeTable preset`, () => { const artDecoCoffeeTablePreset = artDecoCoffeeTable().build(); expect(artDecoCoffeeTablePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "tables", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Art-Deco-Couchtisch mit goldenen Beinen und einer schwarzen Marmorplatte ist ein luxuriöses und stilvolles Möbelstück, das jedem Wohnzimmer einen Hauch von Glamour verleihen kann. Der Tisch verfügt über ein geometrisches Design mit schlanken und eckigen Linien, die charakteristisch für den Art-Deco-Stil sind. Die Beine des Tisches sind aus Metall gefertigt und haben eine glänzende Goldoberfläche, die dem Design einen Hauch von Opulenz verleiht. Die Tischplatte besteht aus schwarzem Marmor, der ein natürliches geädertes Muster aufweist, das jedem Stück ein einzigartiges und luxuriöses Aussehen verleiht. Die Marmorplatte ist glatt und poliert und schafft eine glatte und raffinierte Oberfläche für die Präsentation von Büchern, Getränken oder dekorativen Accessoires. Die Kombination aus Gold und Schwarz schafft einen auffälligen Kontrast, der sowohl mutig als auch elegant ist. Der Art-Deco-Stil des Tisches ist sowohl zeitlos als auch glamourös, was ihn zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen macht, von zeitgenössisch bis hin zu Vintage-inspiriert. Ein Art-Deco-Couchtisch mit goldenen Beinen und einer schwarzen Marmorplatte ist eine luxuriöse und stilvolle Ergänzung für jedes Wohnzimmer. Sein einzigartiges und markantes Design, kombiniert mit seinen hochwertigen Materialien und seiner Handwerkskunst, machen es zu einem herausragenden Möbelstück, das das Erscheinungsbild jedes Raums aufwerten kann.", - "en": undefined, - "en-GB": "An Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room. The table features a geometric design, with sleek and angular lines that are characteristic of the Art Deco style. The legs of the table are made from metal and have a shiny gold finish that adds a touch of opulence to the design. The tabletop is made from black marble, which has a natural veined pattern that gives each piece a unique and luxurious appearance. The marble top is smooth and polished, creating a sleek and sophisticated surface for displaying books, drinks, or decorative accessories. The combination of gold and black creates a striking contrast that is both bold and elegant. The Art Deco style of the table is both timeless and glamorous, making it a perfect complement to a range of decor styles, from contemporary to vintage-inspired. Overall, an Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish addition to any living room. Its unique and striking design, combined with its high-quality materials and craftsmanship, make it a standout piece of furniture that can elevate the look and feel of any space.", - "en-US": "An Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room. The table features a geometric design, with sleek and angular lines that are characteristic of the Art Deco style. The legs of the table are made from metal and have a shiny gold finish that adds a touch of opulence to the design. The tabletop is made from black marble, which has a natural veined pattern that gives each piece a unique and luxurious appearance. The marble top is smooth and polished, creating a sleek and sophisticated surface for displaying books, drinks, or decorative accessories. The combination of gold and black creates a striking contrast that is both bold and elegant. The Art Deco style of the table is both timeless and glamorous, making it a perfect complement to a range of decor styles, from contemporary to vintage-inspired. Overall, an Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish addition to any living room. Its unique and striking design, combined with its high-quality materials and craftsmanship, make it a standout piece of furniture that can elevate the look and feel of any space.", - "fr": undefined, - }, - "key": "art-deco-coffee-table", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Granite top -- 5ft by 3ft by 2ft -- Preassembled", - "en-GB": "- Granite top -- 5ft by 3ft by 2ft -- Preassembled", - "en-US": "- Granite top -- 5ft by 3ft by 2ft -- Preassembled", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "tables", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Art-Deco-Couchtisch mit goldenen Beinen und einer schwarzen Marmorplatte ist ein luxuriöses und stilvolles Möbelstück, das jedem Wohnzimmer einen Hauch von Glamour verleihen kann. Der Tisch verfügt über ein geometrisches Design mit schlanken und eckigen Linien, die charakteristisch für den Art-Deco-Stil sind. Die Beine des Tisches sind aus Metall gefertigt und haben eine glänzende Goldoberfläche, die dem Design einen Hauch von Opulenz verleiht. Die Tischplatte besteht aus schwarzem Marmor, der ein natürliches geädertes Muster aufweist, das jedem Stück ein einzigartiges und luxuriöses Aussehen verleiht. Die Marmorplatte ist glatt und poliert und schafft eine glatte und raffinierte Oberfläche für die Präsentation von Büchern, Getränken oder dekorativen Accessoires. Die Kombination aus Gold und Schwarz schafft einen auffälligen Kontrast, der sowohl mutig als auch elegant ist. Der Art-Deco-Stil des Tisches ist sowohl zeitlos als auch glamourös, was ihn zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen macht, von zeitgenössisch bis hin zu Vintage-inspiriert. Ein Art-Deco-Couchtisch mit goldenen Beinen und einer schwarzen Marmorplatte ist eine luxuriöse und stilvolle Ergänzung für jedes Wohnzimmer. Sein einzigartiges und markantes Design, kombiniert mit seinen hochwertigen Materialien und seiner Handwerkskunst, machen es zu einem herausragenden Möbelstück, das das Erscheinungsbild jedes Raums aufwerten kann.", + "en": undefined, + "en-GB": "An Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room. The table features a geometric design, with sleek and angular lines that are characteristic of the Art Deco style. The legs of the table are made from metal and have a shiny gold finish that adds a touch of opulence to the design. The tabletop is made from black marble, which has a natural veined pattern that gives each piece a unique and luxurious appearance. The marble top is smooth and polished, creating a sleek and sophisticated surface for displaying books, drinks, or decorative accessories. The combination of gold and black creates a striking contrast that is both bold and elegant. The Art Deco style of the table is both timeless and glamorous, making it a perfect complement to a range of decor styles, from contemporary to vintage-inspired. Overall, an Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish addition to any living room. Its unique and striking design, combined with its high-quality materials and craftsmanship, make it a standout piece of furniture that can elevate the look and feel of any space.", + "en-US": "An Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room. The table features a geometric design, with sleek and angular lines that are characteristic of the Art Deco style. The legs of the table are made from metal and have a shiny gold finish that adds a touch of opulence to the design. The tabletop is made from black marble, which has a natural veined pattern that gives each piece a unique and luxurious appearance. The marble top is smooth and polished, creating a sleek and sophisticated surface for displaying books, drinks, or decorative accessories. The combination of gold and black creates a striking contrast that is both bold and elegant. The Art Deco style of the table is both timeless and glamorous, making it a perfect complement to a range of decor styles, from contemporary to vintage-inspired. Overall, an Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish addition to any living room. Its unique and striking design, combined with its high-quality materials and craftsmanship, make it a standout piece of furniture that can elevate the look and feel of any space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + "key": "art-deco-coffee-table", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Granite top + - 5ft by 3ft by 2ft + - Preassembled", + "en-GB": "- Granite top + - 5ft by 3ft by 2ft + - Preassembled", + "en-US": "- Granite top + - 5ft by 3ft by 2ft + - Preassembled", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 320000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 320000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 320000, + "currencyCode": "USD", + }, + }, + ], + "sku": "ADCT-01", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Couchtisch im Art-Deco-Stil", + "en": undefined, + "en-GB": "Art Deco Coffee Table", + "en-US": "Art Deco Coffee Table", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "art-deco-couchtisch", + "en": undefined, + "en-GB": "art-deco-coffe-table", + "en-US": "art-deco-coffe-table", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 320000, - "currencyCode": "EUR", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 320000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 320000, - "currencyCode": "USD", - }, - }, - ], - "sku": "ADCT-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Couchtisch im Art-Deco-Stil", - "en": undefined, - "en-GB": "Art Deco Coffee Table", - "en-US": "Art Deco Coffee Table", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "art-deco-couchtisch", - "en": undefined, - "en-GB": "art-deco-coffe-table", - "en-US": "art-deco-coffe-table", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a artDecoCoffeeTable preset when built for graphql`, () => { const artDecoCoffeeTablePresetGraphql = artDecoCoffeeTable().buildGraphql(); expect(artDecoCoffeeTablePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "tables", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "An Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room. The table features a geometric design, with sleek and angular lines that are characteristic of the Art Deco style. The legs of the table are made from metal and have a shiny gold finish that adds a touch of opulence to the design. The tabletop is made from black marble, which has a natural veined pattern that gives each piece a unique and luxurious appearance. The marble top is smooth and polished, creating a sleek and sophisticated surface for displaying books, drinks, or decorative accessories. The combination of gold and black creates a striking contrast that is both bold and elegant. The Art Deco style of the table is both timeless and glamorous, making it a perfect complement to a range of decor styles, from contemporary to vintage-inspired. Overall, an Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish addition to any living room. Its unique and striking design, combined with its high-quality materials and craftsmanship, make it a standout piece of furniture that can elevate the look and feel of any space.", - }, - { - "locale": "en-US", - "value": "An Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room. The table features a geometric design, with sleek and angular lines that are characteristic of the Art Deco style. The legs of the table are made from metal and have a shiny gold finish that adds a touch of opulence to the design. The tabletop is made from black marble, which has a natural veined pattern that gives each piece a unique and luxurious appearance. The marble top is smooth and polished, creating a sleek and sophisticated surface for displaying books, drinks, or decorative accessories. The combination of gold and black creates a striking contrast that is both bold and elegant. The Art Deco style of the table is both timeless and glamorous, making it a perfect complement to a range of decor styles, from contemporary to vintage-inspired. Overall, an Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish addition to any living room. Its unique and striking design, combined with its high-quality materials and craftsmanship, make it a standout piece of furniture that can elevate the look and feel of any space.", - }, - { - "locale": "de-DE", - "value": "Dieser Art-Deco-Couchtisch mit goldenen Beinen und einer schwarzen Marmorplatte ist ein luxuriöses und stilvolles Möbelstück, das jedem Wohnzimmer einen Hauch von Glamour verleihen kann. Der Tisch verfügt über ein geometrisches Design mit schlanken und eckigen Linien, die charakteristisch für den Art-Deco-Stil sind. Die Beine des Tisches sind aus Metall gefertigt und haben eine glänzende Goldoberfläche, die dem Design einen Hauch von Opulenz verleiht. Die Tischplatte besteht aus schwarzem Marmor, der ein natürliches geädertes Muster aufweist, das jedem Stück ein einzigartiges und luxuriöses Aussehen verleiht. Die Marmorplatte ist glatt und poliert und schafft eine glatte und raffinierte Oberfläche für die Präsentation von Büchern, Getränken oder dekorativen Accessoires. Die Kombination aus Gold und Schwarz schafft einen auffälligen Kontrast, der sowohl mutig als auch elegant ist. Der Art-Deco-Stil des Tisches ist sowohl zeitlos als auch glamourös, was ihn zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen macht, von zeitgenössisch bis hin zu Vintage-inspiriert. Ein Art-Deco-Couchtisch mit goldenen Beinen und einer schwarzen Marmorplatte ist eine luxuriöse und stilvolle Ergänzung für jedes Wohnzimmer. Sein einzigartiges und markantes Design, kombiniert mit seinen hochwertigen Materialien und seiner Handwerkskunst, machen es zu einem herausragenden Möbelstück, das das Erscheinungsbild jedes Raums aufwerten kann.", - }, - ], - "key": "art-deco-coffee-table", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled","en-GB":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled","de-DE":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled"}", - }, - { - "name": "color", - "value": "{"en-US":"Black:#000000","en-GB":"Black:#000000","de-DE":"Schwarz:#000000"}", - }, - { - "name": "finish", - "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", - }, - ], - "images": [ { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 320000, - "currencyCode": "EUR", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "tables", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "An Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room. The table features a geometric design, with sleek and angular lines that are characteristic of the Art Deco style. The legs of the table are made from metal and have a shiny gold finish that adds a touch of opulence to the design. The tabletop is made from black marble, which has a natural veined pattern that gives each piece a unique and luxurious appearance. The marble top is smooth and polished, creating a sleek and sophisticated surface for displaying books, drinks, or decorative accessories. The combination of gold and black creates a striking contrast that is both bold and elegant. The Art Deco style of the table is both timeless and glamorous, making it a perfect complement to a range of decor styles, from contemporary to vintage-inspired. Overall, an Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish addition to any living room. Its unique and striking design, combined with its high-quality materials and craftsmanship, make it a standout piece of furniture that can elevate the look and feel of any space.", + }, + { + "locale": "en-US", + "value": "An Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish piece of furniture that can add a touch of glamour to any living room. The table features a geometric design, with sleek and angular lines that are characteristic of the Art Deco style. The legs of the table are made from metal and have a shiny gold finish that adds a touch of opulence to the design. The tabletop is made from black marble, which has a natural veined pattern that gives each piece a unique and luxurious appearance. The marble top is smooth and polished, creating a sleek and sophisticated surface for displaying books, drinks, or decorative accessories. The combination of gold and black creates a striking contrast that is both bold and elegant. The Art Deco style of the table is both timeless and glamorous, making it a perfect complement to a range of decor styles, from contemporary to vintage-inspired. Overall, an Art Deco coffee table with gold legs and a black marble top is a luxurious and stylish addition to any living room. Its unique and striking design, combined with its high-quality materials and craftsmanship, make it a standout piece of furniture that can elevate the look and feel of any space.", }, + { + "locale": "de-DE", + "value": "Dieser Art-Deco-Couchtisch mit goldenen Beinen und einer schwarzen Marmorplatte ist ein luxuriöses und stilvolles Möbelstück, das jedem Wohnzimmer einen Hauch von Glamour verleihen kann. Der Tisch verfügt über ein geometrisches Design mit schlanken und eckigen Linien, die charakteristisch für den Art-Deco-Stil sind. Die Beine des Tisches sind aus Metall gefertigt und haben eine glänzende Goldoberfläche, die dem Design einen Hauch von Opulenz verleiht. Die Tischplatte besteht aus schwarzem Marmor, der ein natürliches geädertes Muster aufweist, das jedem Stück ein einzigartiges und luxuriöses Aussehen verleiht. Die Marmorplatte ist glatt und poliert und schafft eine glatte und raffinierte Oberfläche für die Präsentation von Büchern, Getränken oder dekorativen Accessoires. Die Kombination aus Gold und Schwarz schafft einen auffälligen Kontrast, der sowohl mutig als auch elegant ist. Der Art-Deco-Stil des Tisches ist sowohl zeitlos als auch glamourös, was ihn zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen macht, von zeitgenössisch bis hin zu Vintage-inspiriert. Ein Art-Deco-Couchtisch mit goldenen Beinen und einer schwarzen Marmorplatte ist eine luxuriöse und stilvolle Ergänzung für jedes Wohnzimmer. Sein einzigartiges und markantes Design, kombiniert mit seinen hochwertigen Materialien und seiner Handwerkskunst, machen es zu einem herausragenden Möbelstück, das das Erscheinungsbild jedes Raums aufwerten kann.", + }, + ], + "key": "art-deco-coffee-table", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled","en-GB":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled","de-DE":"- Granite top\\n- 5ft by 3ft by 2ft\\n- Preassembled"}", + }, + { + "name": "color", + "value": "{"en-US":"Black:#000000","en-GB":"Black:#000000","de-DE":"Schwarz:#000000"}", + }, + { + "name": "finish", + "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Art_Deco_Coffee_Table-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 320000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 320000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "320000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 320000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ADCT-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 320000, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Art Deco Coffee Table", + }, + { + "locale": "en-GB", + "value": "Art Deco Coffee Table", + }, + { + "locale": "de-DE", + "value": "Couchtisch im Art-Deco-Stil", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 320000, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "art-deco-coffe-table", + }, + { + "locale": "en-GB", + "value": "art-deco-coffe-table", + }, + { + "locale": "de-DE", + "value": "art-deco-couchtisch", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ADCT-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Art Deco Coffee Table", - }, - { - "locale": "en-GB", - "value": "Art Deco Coffee Table", - }, - { - "locale": "de-DE", - "value": "Couchtisch im Art-Deco-Stil", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "art-deco-coffe-table", - }, - { - "locale": "en-GB", - "value": "art-deco-coffe-table", - }, - { - "locale": "de-DE", - "value": "art-deco-couchtisch", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ashen-rug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ashen-rug.spec.ts index 9fd9ef83a..2e0777057 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ashen-rug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ashen-rug.spec.ts @@ -5,323 +5,323 @@ describe(`with ashenRug preset`, () => { it(`should return a ashenRug preset`, () => { const ashenRugPreset = ashenRug().build(); expect(ashenRugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein moderner Shag-Teppich ist eine Art Vorleger oder Teppich mit langem Plüschflor, der für seine Weichheit und seinen Komfort bekannt ist. Im Gegensatz zu traditionellen Shag-Teppichen, die in den 1970er Jahren beliebt waren und ein etwas zotteliges und ungepflegtes Aussehen hatten, sind moderne Shag-Teppiche raffinierter und haben ein elegantes, zeitgemäßes Aussehen. Neben ihrer Weichheit und ihrem Komfort sind moderne Hochflorteppiche auch für ihre Fähigkeit bekannt, Schall zu absorbieren und eine gemütliche, einladende Atmosphäre zu schaffen. Sie werden oft in Wohnzimmern, Schlafzimmern und anderen Räumen verwendet, in denen Komfort und Stil wichtig sind. Ein moderner Hochflorteppich ist eine luxuriöse und stilvolle Ergänzung für jedes Zuhause. Seine weiche, plüschige Textur und sein schlankes, modernes Aussehen machen ihn zu einer beliebten Wahl für diejenigen, die ihrem Wohnraum Komfort und Stil verleihen möchten.", - "en": undefined, - "en-GB": "A modern shag carpet is a type of rug or carpet with a long, plush pile that is known for its softness and comfort. Unlike traditional shag carpets, which were popular in the 1970s and had a somewhat shaggy and unkempt appearance, modern shag carpets are more refined and have a sleek, contemporary look. In addition to their softness and comfort, modern shag carpets are also known for their ability to absorb sound and create a cozy, inviting atmosphere. They are often used in living rooms, bedrooms, and other spaces where comfort and style are important. Overall, a modern shag carpet is a luxurious and stylish addition to any home. Its soft, plush texture and sleek, contemporary look make it a popular choice for those looking to add comfort and style to their living space.", - "en-US": "A modern shag carpet is a type of rug or carpet with a long, plush pile that is known for its softness and comfort. Unlike traditional shag carpets, which were popular in the 1970s and had a somewhat shaggy and unkempt appearance, modern shag carpets are more refined and have a sleek, contemporary look. In addition to their softness and comfort, modern shag carpets are also known for their ability to absorb sound and create a cozy, inviting atmosphere. They are often used in living rooms, bedrooms, and other spaces where comfort and style are important. Overall, a modern shag carpet is a luxurious and stylish addition to any home. Its soft, plush texture and sleek, contemporary look make it a popular choice for those looking to add comfort and style to their living space.", - "fr": undefined, - }, - "key": "ashen-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- 5 Fuß x 7 Fuß -- Nur chemische Reinigung", - "en-GB": "- 5ft x 7ft -- Dry-clean only", - "en-US": "- 5ft x 7ft -- Dry-clean only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Gainsboro:#dcdcdc", - "en-GB": "Gainsboro:#dcdcdc", - "en-US": "Gainsboro:#dcdcdc", + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein moderner Shag-Teppich ist eine Art Vorleger oder Teppich mit langem Plüschflor, der für seine Weichheit und seinen Komfort bekannt ist. Im Gegensatz zu traditionellen Shag-Teppichen, die in den 1970er Jahren beliebt waren und ein etwas zotteliges und ungepflegtes Aussehen hatten, sind moderne Shag-Teppiche raffinierter und haben ein elegantes, zeitgemäßes Aussehen. Neben ihrer Weichheit und ihrem Komfort sind moderne Hochflorteppiche auch für ihre Fähigkeit bekannt, Schall zu absorbieren und eine gemütliche, einladende Atmosphäre zu schaffen. Sie werden oft in Wohnzimmern, Schlafzimmern und anderen Räumen verwendet, in denen Komfort und Stil wichtig sind. Ein moderner Hochflorteppich ist eine luxuriöse und stilvolle Ergänzung für jedes Zuhause. Seine weiche, plüschige Textur und sein schlankes, modernes Aussehen machen ihn zu einer beliebten Wahl für diejenigen, die ihrem Wohnraum Komfort und Stil verleihen möchten.", + "en": undefined, + "en-GB": "A modern shag carpet is a type of rug or carpet with a long, plush pile that is known for its softness and comfort. Unlike traditional shag carpets, which were popular in the 1970s and had a somewhat shaggy and unkempt appearance, modern shag carpets are more refined and have a sleek, contemporary look. In addition to their softness and comfort, modern shag carpets are also known for their ability to absorb sound and create a cozy, inviting atmosphere. They are often used in living rooms, bedrooms, and other spaces where comfort and style are important. Overall, a modern shag carpet is a luxurious and stylish addition to any home. Its soft, plush texture and sleek, contemporary look make it a popular choice for those looking to add comfort and style to their living space.", + "en-US": "A modern shag carpet is a type of rug or carpet with a long, plush pile that is known for its softness and comfort. Unlike traditional shag carpets, which were popular in the 1970s and had a somewhat shaggy and unkempt appearance, modern shag carpets are more refined and have a sleek, contemporary look. In addition to their softness and comfort, modern shag carpets are also known for their ability to absorb sound and create a cozy, inviting atmosphere. They are often used in living rooms, bedrooms, and other spaces where comfort and style are important. Overall, a modern shag carpet is a luxurious and stylish addition to any home. Its soft, plush texture and sleek, contemporary look make it a popular choice for those looking to add comfort and style to their living space.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, + "key": "ashen-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 5 Fuß x 7 Fuß + - Nur chemische Reinigung", + "en-GB": "- 5ft x 7ft + - Dry-clean only", + "en-US": "- 5ft x 7ft + - Dry-clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Gainsboro:#dcdcdc", + "en-GB": "Gainsboro:#dcdcdc", + "en-US": "Gainsboro:#dcdcdc", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.1.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 25000, + "currencyCode": "USD", + }, + }, + ], + "sku": "ARG-56", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.1.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 4500, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Teppich "Ashen"", + "en": undefined, + "en-GB": "Ashen Rug", + "en-US": "Ashen Rug", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "ashen-teppich", + "en": undefined, + "en-GB": "ashen-rug", + "en-US": "ashen-rug", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 25000, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ARG-56", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Teppich "Ashen"", - "en": undefined, - "en-GB": "Ashen Rug", - "en-US": "Ashen Rug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "ashen-teppich", - "en": undefined, - "en-GB": "ashen-rug", - "en-US": "ashen-rug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a ashenRug preset when built for graphql`, () => { const ashenRugPresetGraphql = ashenRug().buildGraphql(); expect(ashenRugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A modern shag carpet is a type of rug or carpet with a long, plush pile that is known for its softness and comfort. Unlike traditional shag carpets, which were popular in the 1970s and had a somewhat shaggy and unkempt appearance, modern shag carpets are more refined and have a sleek, contemporary look. In addition to their softness and comfort, modern shag carpets are also known for their ability to absorb sound and create a cozy, inviting atmosphere. They are often used in living rooms, bedrooms, and other spaces where comfort and style are important. Overall, a modern shag carpet is a luxurious and stylish addition to any home. Its soft, plush texture and sleek, contemporary look make it a popular choice for those looking to add comfort and style to their living space.", - }, - { - "locale": "en-US", - "value": "A modern shag carpet is a type of rug or carpet with a long, plush pile that is known for its softness and comfort. Unlike traditional shag carpets, which were popular in the 1970s and had a somewhat shaggy and unkempt appearance, modern shag carpets are more refined and have a sleek, contemporary look. In addition to their softness and comfort, modern shag carpets are also known for their ability to absorb sound and create a cozy, inviting atmosphere. They are often used in living rooms, bedrooms, and other spaces where comfort and style are important. Overall, a modern shag carpet is a luxurious and stylish addition to any home. Its soft, plush texture and sleek, contemporary look make it a popular choice for those looking to add comfort and style to their living space.", - }, - { - "locale": "de-DE", - "value": "Ein moderner Shag-Teppich ist eine Art Vorleger oder Teppich mit langem Plüschflor, der für seine Weichheit und seinen Komfort bekannt ist. Im Gegensatz zu traditionellen Shag-Teppichen, die in den 1970er Jahren beliebt waren und ein etwas zotteliges und ungepflegtes Aussehen hatten, sind moderne Shag-Teppiche raffinierter und haben ein elegantes, zeitgemäßes Aussehen. Neben ihrer Weichheit und ihrem Komfort sind moderne Hochflorteppiche auch für ihre Fähigkeit bekannt, Schall zu absorbieren und eine gemütliche, einladende Atmosphäre zu schaffen. Sie werden oft in Wohnzimmern, Schlafzimmern und anderen Räumen verwendet, in denen Komfort und Stil wichtig sind. Ein moderner Hochflorteppich ist eine luxuriöse und stilvolle Ergänzung für jedes Zuhause. Seine weiche, plüschige Textur und sein schlankes, modernes Aussehen machen ihn zu einer beliebten Wahl für diejenigen, die ihrem Wohnraum Komfort und Stil verleihen möchten.", - }, - ], - "key": "ashen-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 5ft x 7ft\\n- Dry-clean only","de-DE":"- 5 Fuß x 7 Fuß\\n- Nur chemische Reinigung","en-US":"- 5ft x 7ft\\n- Dry-clean only"}", - }, - { - "name": "color", - "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.1.jpeg", - }, { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19999, - "currencyCode": "EUR", + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A modern shag carpet is a type of rug or carpet with a long, plush pile that is known for its softness and comfort. Unlike traditional shag carpets, which were popular in the 1970s and had a somewhat shaggy and unkempt appearance, modern shag carpets are more refined and have a sleek, contemporary look. In addition to their softness and comfort, modern shag carpets are also known for their ability to absorb sound and create a cozy, inviting atmosphere. They are often used in living rooms, bedrooms, and other spaces where comfort and style are important. Overall, a modern shag carpet is a luxurious and stylish addition to any home. Its soft, plush texture and sleek, contemporary look make it a popular choice for those looking to add comfort and style to their living space.", + }, + { + "locale": "en-US", + "value": "A modern shag carpet is a type of rug or carpet with a long, plush pile that is known for its softness and comfort. Unlike traditional shag carpets, which were popular in the 1970s and had a somewhat shaggy and unkempt appearance, modern shag carpets are more refined and have a sleek, contemporary look. In addition to their softness and comfort, modern shag carpets are also known for their ability to absorb sound and create a cozy, inviting atmosphere. They are often used in living rooms, bedrooms, and other spaces where comfort and style are important. Overall, a modern shag carpet is a luxurious and stylish addition to any home. Its soft, plush texture and sleek, contemporary look make it a popular choice for those looking to add comfort and style to their living space.", + }, + { + "locale": "de-DE", + "value": "Ein moderner Shag-Teppich ist eine Art Vorleger oder Teppich mit langem Plüschflor, der für seine Weichheit und seinen Komfort bekannt ist. Im Gegensatz zu traditionellen Shag-Teppichen, die in den 1970er Jahren beliebt waren und ein etwas zotteliges und ungepflegtes Aussehen hatten, sind moderne Shag-Teppiche raffinierter und haben ein elegantes, zeitgemäßes Aussehen. Neben ihrer Weichheit und ihrem Komfort sind moderne Hochflorteppiche auch für ihre Fähigkeit bekannt, Schall zu absorbieren und eine gemütliche, einladende Atmosphäre zu schaffen. Sie werden oft in Wohnzimmern, Schlafzimmern und anderen Räumen verwendet, in denen Komfort und Stil wichtig sind. Ein moderner Hochflorteppich ist eine luxuriöse und stilvolle Ergänzung für jedes Zuhause. Seine weiche, plüschige Textur und sein schlankes, modernes Aussehen machen ihn zu einer beliebten Wahl für diejenigen, die ihrem Wohnraum Komfort und Stil verleihen möchten.", }, + ], + "key": "ashen-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 5ft x 7ft\\n- Dry-clean only","de-DE":"- 5 Fuß x 7 Fuß\\n- Nur chemische Reinigung","en-US":"- 5ft x 7ft\\n- Dry-clean only"}", + }, + { + "name": "color", + "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.1.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ashen_Rug-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 25000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ARG-56", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Ashen Rug", + }, + { + "locale": "en-GB", + "value": "Ashen Rug", + }, + { + "locale": "de-DE", + "value": "Teppich "Ashen"", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 25000, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "ashen-rug", + }, + { + "locale": "en-GB", + "value": "ashen-rug", + }, + { + "locale": "de-DE", + "value": "ashen-teppich", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ARG-56", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Ashen Rug", - }, - { - "locale": "en-GB", - "value": "Ashen Rug", - }, - { - "locale": "de-DE", - "value": "Teppich "Ashen"", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "ashen-rug", - }, - { - "locale": "en-GB", - "value": "ashen-rug", - }, - { - "locale": "de-DE", - "value": "ashen-teppich", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover.spec.ts index 1035b5aef..7d62499c4 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ben-pillow-cover.spec.ts @@ -5,303 +5,303 @@ describe(`with benPillowCover preset`, () => { it(`should return a benPillowCover preset`, () => { const benPillowCoverPreset = benPillowCover().build(); expect(benPillowCoverPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der Kissenbezug "Ben" ist ein dekorativer Kissenbezug aus braunem Leinen. Er ist ein visueller Akzent in jedem Raum. Er besteht aus einem natürlichen Leinenstoff, der für seine Haltbarkeit, Atmungsaktivität und seinen klassischen Look bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein rechteckiges dekoratives Kissen in Standardgröße passt. Es verfügt über eine neutrale braune Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Leinenstoff hat eine weiche und leicht strukturierte Oberfläche, die dem Kissen ein gemütliches und einladendes Gefühl verleiht. Die Kanten des Kissenbezugs sind in der Regel mit einem sauberen Saum versehen, der dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird oft verwendet, um einem Raum einen Hauch von Wärme und natürlicher Eleganz zu verleihen, egal ob er auf einem Bett, einem Sofa oder einem Akzentstuhl platziert wird. Es kann allein verwendet oder mit anderen dekorativen Kissen in verschiedenen Formen und Farben kombiniert werden, um einen mehrschichtigen und zusammenhängenden Look zu schaffen. Insgesamt ist ein dekorativer Kissenbezug aus braunem Leinen ein vielseitiges und zeitloses Akzentstück, das den Komfort und Stil jedes Raums im Haus verbessern kann.", - "en": undefined, - "en-GB": "The Ben Pillow Cover is a brown linen decorative pillowcase used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size rectangle decorative pillow. It features a neutral brown color that can complement a wide variety of decor styles and color schemes. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a brown linen decorative pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", - "en-US": "The Ben Pillow Cover is a brown linen decorative pillowcase used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size rectangle decorative pillow. It features a neutral brown color that can complement a wide variety of decor styles and color schemes. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a brown linen decorative pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", - "fr": undefined, - }, - "key": "ben-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Bezug ist abnehmbar -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine-washable -- Cover is removable -- Does not include pillow", - "en-US": "- Machine-washable -- Cover is removable -- Does not include pillow", + "categories": [ + { + "key": "bedding", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der Kissenbezug "Ben" ist ein dekorativer Kissenbezug aus braunem Leinen. Er ist ein visueller Akzent in jedem Raum. Er besteht aus einem natürlichen Leinenstoff, der für seine Haltbarkeit, Atmungsaktivität und seinen klassischen Look bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein rechteckiges dekoratives Kissen in Standardgröße passt. Es verfügt über eine neutrale braune Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Leinenstoff hat eine weiche und leicht strukturierte Oberfläche, die dem Kissen ein gemütliches und einladendes Gefühl verleiht. Die Kanten des Kissenbezugs sind in der Regel mit einem sauberen Saum versehen, der dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird oft verwendet, um einem Raum einen Hauch von Wärme und natürlicher Eleganz zu verleihen, egal ob er auf einem Bett, einem Sofa oder einem Akzentstuhl platziert wird. Es kann allein verwendet oder mit anderen dekorativen Kissen in verschiedenen Formen und Farben kombiniert werden, um einen mehrschichtigen und zusammenhängenden Look zu schaffen. Insgesamt ist ein dekorativer Kissenbezug aus braunem Leinen ein vielseitiges und zeitloses Akzentstück, das den Komfort und Stil jedes Raums im Haus verbessern kann.", + "en": undefined, + "en-GB": "The Ben Pillow Cover is a brown linen decorative pillowcase used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size rectangle decorative pillow. It features a neutral brown color that can complement a wide variety of decor styles and color schemes. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a brown linen decorative pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", + "en-US": "The Ben Pillow Cover is a brown linen decorative pillowcase used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size rectangle decorative pillow. It features a neutral brown color that can complement a wide variety of decor styles and color schemes. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a brown linen decorative pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "key": "ben-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Bezug ist abnehmbar + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine-washable + - Cover is removable + - Does not include pillow", + "en-US": "- Machine-washable + - Cover is removable + - Does not include pillow", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ben_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "LBPC-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Kissenbezug "Ben"", + "en": undefined, + "en-GB": "Ben Pillow Cover", + "en-US": "Ben Pillow Cover", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ben_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "ben-kissenbezug", + "en": undefined, + "en-GB": "ben-pillow-cover", + "en-US": "ben-pillow-cover", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LBPC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Kissenbezug "Ben"", - "en": undefined, - "en-GB": "Ben Pillow Cover", - "en-US": "Ben Pillow Cover", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "ben-kissenbezug", - "en": undefined, - "en-GB": "ben-pillow-cover", - "en-US": "ben-pillow-cover", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a benPillowCover preset when built for graphql`, () => { const benPillowCoverPresetGraphql = benPillowCover().buildGraphql(); expect(benPillowCoverPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "The Ben Pillow Cover is a brown linen decorative pillowcase used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size rectangle decorative pillow. It features a neutral brown color that can complement a wide variety of decor styles and color schemes. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a brown linen decorative pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", - }, - { - "locale": "en-US", - "value": "The Ben Pillow Cover is a brown linen decorative pillowcase used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size rectangle decorative pillow. It features a neutral brown color that can complement a wide variety of decor styles and color schemes. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a brown linen decorative pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", - }, - { - "locale": "de-DE", - "value": "Der Kissenbezug "Ben" ist ein dekorativer Kissenbezug aus braunem Leinen. Er ist ein visueller Akzent in jedem Raum. Er besteht aus einem natürlichen Leinenstoff, der für seine Haltbarkeit, Atmungsaktivität und seinen klassischen Look bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein rechteckiges dekoratives Kissen in Standardgröße passt. Es verfügt über eine neutrale braune Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Leinenstoff hat eine weiche und leicht strukturierte Oberfläche, die dem Kissen ein gemütliches und einladendes Gefühl verleiht. Die Kanten des Kissenbezugs sind in der Regel mit einem sauberen Saum versehen, der dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird oft verwendet, um einem Raum einen Hauch von Wärme und natürlicher Eleganz zu verleihen, egal ob er auf einem Bett, einem Sofa oder einem Akzentstuhl platziert wird. Es kann allein verwendet oder mit anderen dekorativen Kissen in verschiedenen Formen und Farben kombiniert werden, um einen mehrschichtigen und zusammenhängenden Look zu schaffen. Insgesamt ist ein dekorativer Kissenbezug aus braunem Leinen ein vielseitiges und zeitloses Akzentstück, das den Komfort und Stil jedes Raums im Haus verbessern kann.", - }, - ], - "key": "ben-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine-washable\\n- Cover is removable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Bezug ist abnehmbar\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine-washable\\n- Cover is removable\\n- Does not include pillow"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ben_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedding", + "typeId": "category", }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "The Ben Pillow Cover is a brown linen decorative pillowcase used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size rectangle decorative pillow. It features a neutral brown color that can complement a wide variety of decor styles and color schemes. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a brown linen decorative pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", + }, + { + "locale": "en-US", + "value": "The Ben Pillow Cover is a brown linen decorative pillowcase used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size rectangle decorative pillow. It features a neutral brown color that can complement a wide variety of decor styles and color schemes. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a brown linen decorative pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", + }, + { + "locale": "de-DE", + "value": "Der Kissenbezug "Ben" ist ein dekorativer Kissenbezug aus braunem Leinen. Er ist ein visueller Akzent in jedem Raum. Er besteht aus einem natürlichen Leinenstoff, der für seine Haltbarkeit, Atmungsaktivität und seinen klassischen Look bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein rechteckiges dekoratives Kissen in Standardgröße passt. Es verfügt über eine neutrale braune Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Leinenstoff hat eine weiche und leicht strukturierte Oberfläche, die dem Kissen ein gemütliches und einladendes Gefühl verleiht. Die Kanten des Kissenbezugs sind in der Regel mit einem sauberen Saum versehen, der dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird oft verwendet, um einem Raum einen Hauch von Wärme und natürlicher Eleganz zu verleihen, egal ob er auf einem Bett, einem Sofa oder einem Akzentstuhl platziert wird. Es kann allein verwendet oder mit anderen dekorativen Kissen in verschiedenen Formen und Farben kombiniert werden, um einen mehrschichtigen und zusammenhängenden Look zu schaffen. Insgesamt ist ein dekorativer Kissenbezug aus braunem Leinen ein vielseitiges und zeitloses Akzentstück, das den Komfort und Stil jedes Raums im Haus verbessern kann.", + }, + ], + "key": "ben-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine-washable\\n- Cover is removable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Bezug ist abnehmbar\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine-washable\\n- Cover is removable\\n- Does not include pillow"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ben_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LBPC-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Ben Pillow Cover", }, + { + "locale": "en-GB", + "value": "Ben Pillow Cover", + }, + { + "locale": "de-DE", + "value": "Kissenbezug "Ben"", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "ben-pillow-cover", + }, + { + "locale": "en-GB", + "value": "ben-pillow-cover", + }, + { + "locale": "de-DE", + "value": "ben-kissenbezug", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LBPC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Ben Pillow Cover", - }, - { - "locale": "en-GB", - "value": "Ben Pillow Cover", - }, - { - "locale": "de-DE", - "value": "Kissenbezug "Ben"", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "ben-pillow-cover", - }, - { - "locale": "en-GB", - "value": "ben-pillow-cover", - }, - { - "locale": "de-DE", - "value": "ben-kissenbezug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/braided-rug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/braided-rug.spec.ts index 2dd53a708..d4080db07 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/braided-rug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/braided-rug.spec.ts @@ -5,324 +5,324 @@ describe(`with braidedRug preset`, () => { it(`should return a braidedRug preset`, () => { const braidedRugPreset = braidedRug().build(); expect(braidedRugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser geflochtene, runde Juteteppich für das Wohnzimmer ist ein stilvolles und natürliches Wohnaccessoire, welches jedem Raum Wärme und Struktur verleiht. Der Teppich besteht aus strapazierfähigen und nachhaltigen Jutefasern, die zu einer runden Form zusammengeflochten sind. Das Flechtmuster des Teppichs erzeugt eine strukturierte Oberfläche, die sowohl weich als auch strapazierfähig ist. Die Naturfasern der Jute verleihen dem Teppich ein warmes und erdiges Aussehen und machen ihn zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen, von modern und minimalistisch bis hin zu rustikal und unkonventionell. Die runde Form des Teppichs ist ideal, um einen gemütlichen und intimen Sitzbereich in einem größeren Wohnzimmer zu schaffen oder um einem kleineren Raum visuelle Finesse zu verleihen. Ein geflochtener runder Juteteppich eine stilvolle und natürliche Möglichkeit, einem Wohnzimmer Wärme und Textur zu verleihen. Seine langlebige und nachhaltige Konstruktion, kombiniert mit seinem warmen und erdigen Aussehen, machen es zu einem vielseitigen und zeitlosen Wohnaccessoire, an dem Sie jahrelang Freude haben werden.", - "en": undefined, - "en-GB": "A braided round jute rug for the living room is a stylish and natural home decor accessory that can add warmth and texture to any space. The rug is made from durable and sustainable jute fibers, which are braided together to create a round shape. The braided construction of the rug creates a textured surface that is both soft and durable underfoot. The natural fibers of the jute give the rug a warm and earthy appearance, making it a perfect complement to a range of decor styles, from modern and minimalist to rustic and bohemian. The round shape of the rug is ideal for creating a cozy and intimate seating area in a larger living room or for adding visual interest to a smaller space. Overall, a braided round jute rug is a stylish and natural way to add warmth and texture to a living room. Its durable and sustainable construction, combined with its warm and earthy appearance, make it a versatile and timeless home decor accessory that can be enjoyed for years to come.", - "en-US": "A braided round jute rug for the living room is a stylish and natural home decor accessory that can add warmth and texture to any space. The rug is made from durable and sustainable jute fibers, which are braided together to create a round shape. The braided construction of the rug creates a textured surface that is both soft and durable underfoot. The natural fibers of the jute give the rug a warm and earthy appearance, making it a perfect complement to a range of decor styles, from modern and minimalist to rustic and bohemian. The round shape of the rug is ideal for creating a cozy and intimate seating area in a larger living room or for adding visual interest to a smaller space. Overall, a braided round jute rug is a stylish and natural way to add warmth and texture to a living room. Its durable and sustainable construction, combined with its warm and earthy appearance, make it a versatile and timeless home decor accessory that can be enjoyed for years to come.", - "fr": undefined, - }, - "key": "braided-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4720, - "w": 4924, + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser geflochtene, runde Juteteppich für das Wohnzimmer ist ein stilvolles und natürliches Wohnaccessoire, welches jedem Raum Wärme und Struktur verleiht. Der Teppich besteht aus strapazierfähigen und nachhaltigen Jutefasern, die zu einer runden Form zusammengeflochten sind. Das Flechtmuster des Teppichs erzeugt eine strukturierte Oberfläche, die sowohl weich als auch strapazierfähig ist. Die Naturfasern der Jute verleihen dem Teppich ein warmes und erdiges Aussehen und machen ihn zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen, von modern und minimalistisch bis hin zu rustikal und unkonventionell. Die runde Form des Teppichs ist ideal, um einen gemütlichen und intimen Sitzbereich in einem größeren Wohnzimmer zu schaffen oder um einem kleineren Raum visuelle Finesse zu verleihen. Ein geflochtener runder Juteteppich eine stilvolle und natürliche Möglichkeit, einem Wohnzimmer Wärme und Textur zu verleihen. Seine langlebige und nachhaltige Konstruktion, kombiniert mit seinem warmen und erdigen Aussehen, machen es zu einem vielseitigen und zeitlosen Wohnaccessoire, an dem Sie jahrelang Freude haben werden.", + "en": undefined, + "en-GB": "A braided round jute rug for the living room is a stylish and natural home decor accessory that can add warmth and texture to any space. The rug is made from durable and sustainable jute fibers, which are braided together to create a round shape. The braided construction of the rug creates a textured surface that is both soft and durable underfoot. The natural fibers of the jute give the rug a warm and earthy appearance, making it a perfect complement to a range of decor styles, from modern and minimalist to rustic and bohemian. The round shape of the rug is ideal for creating a cozy and intimate seating area in a larger living room or for adding visual interest to a smaller space. Overall, a braided round jute rug is a stylish and natural way to add warmth and texture to a living room. Its durable and sustainable construction, combined with its warm and earthy appearance, make it a versatile and timeless home decor accessory that can be enjoyed for years to come.", + "en-US": "A braided round jute rug for the living room is a stylish and natural home decor accessory that can add warmth and texture to any space. The rug is made from durable and sustainable jute fibers, which are braided together to create a round shape. The braided construction of the rug creates a textured surface that is both soft and durable underfoot. The natural fibers of the jute give the rug a warm and earthy appearance, making it a perfect complement to a range of decor styles, from modern and minimalist to rustic and bohemian. The round shape of the rug is ideal for creating a cozy and intimate seating area in a larger living room or for adding visual interest to a smaller space. Overall, a braided round jute rug is a stylish and natural way to add warmth and texture to a living room. Its durable and sustainable construction, combined with its warm and earthy appearance, make it a versatile and timeless home decor accessory that can be enjoyed for years to come.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.1.jpeg", - }, - { - "dimensions": { - "h": 3373, - "w": 5060, + "key": "braided-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4720, + "w": 4924, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.1.jpeg", + }, + { + "dimensions": { + "h": 3373, + "w": 5060, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.3.jpeg", + }, + { + "dimensions": { + "h": 3685, + "w": 5527, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9999, + "currencyCode": "USD", + }, + }, + ], + "sku": "BR-0983", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.3.jpeg", - }, - { - "dimensions": { - "h": 3685, - "w": 5527, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Geflochtener Teppich", + "en": undefined, + "en-GB": "Braided Rug", + "en-US": "Braided Rug", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "geflochtener-teppich", + "en": undefined, + "en-GB": "braided-rug", + "en-US": "braided-rug", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BR-0983", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Geflochtener Teppich", - "en": undefined, - "en-GB": "Braided Rug", - "en-US": "Braided Rug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "geflochtener-teppich", - "en": undefined, - "en-GB": "braided-rug", - "en-US": "braided-rug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a braidedRug preset when built for graphql`, () => { const braidedRugPresetGraphql = braidedRug().buildGraphql(); expect(braidedRugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A braided round jute rug for the living room is a stylish and natural home decor accessory that can add warmth and texture to any space. The rug is made from durable and sustainable jute fibers, which are braided together to create a round shape. The braided construction of the rug creates a textured surface that is both soft and durable underfoot. The natural fibers of the jute give the rug a warm and earthy appearance, making it a perfect complement to a range of decor styles, from modern and minimalist to rustic and bohemian. The round shape of the rug is ideal for creating a cozy and intimate seating area in a larger living room or for adding visual interest to a smaller space. Overall, a braided round jute rug is a stylish and natural way to add warmth and texture to a living room. Its durable and sustainable construction, combined with its warm and earthy appearance, make it a versatile and timeless home decor accessory that can be enjoyed for years to come.", - }, - { - "locale": "en-US", - "value": "A braided round jute rug for the living room is a stylish and natural home decor accessory that can add warmth and texture to any space. The rug is made from durable and sustainable jute fibers, which are braided together to create a round shape. The braided construction of the rug creates a textured surface that is both soft and durable underfoot. The natural fibers of the jute give the rug a warm and earthy appearance, making it a perfect complement to a range of decor styles, from modern and minimalist to rustic and bohemian. The round shape of the rug is ideal for creating a cozy and intimate seating area in a larger living room or for adding visual interest to a smaller space. Overall, a braided round jute rug is a stylish and natural way to add warmth and texture to a living room. Its durable and sustainable construction, combined with its warm and earthy appearance, make it a versatile and timeless home decor accessory that can be enjoyed for years to come.", - }, - { - "locale": "de-DE", - "value": "Dieser geflochtene, runde Juteteppich für das Wohnzimmer ist ein stilvolles und natürliches Wohnaccessoire, welches jedem Raum Wärme und Struktur verleiht. Der Teppich besteht aus strapazierfähigen und nachhaltigen Jutefasern, die zu einer runden Form zusammengeflochten sind. Das Flechtmuster des Teppichs erzeugt eine strukturierte Oberfläche, die sowohl weich als auch strapazierfähig ist. Die Naturfasern der Jute verleihen dem Teppich ein warmes und erdiges Aussehen und machen ihn zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen, von modern und minimalistisch bis hin zu rustikal und unkonventionell. Die runde Form des Teppichs ist ideal, um einen gemütlichen und intimen Sitzbereich in einem größeren Wohnzimmer zu schaffen oder um einem kleineren Raum visuelle Finesse zu verleihen. Ein geflochtener runder Juteteppich eine stilvolle und natürliche Möglichkeit, einem Wohnzimmer Wärme und Textur zu verleihen. Seine langlebige und nachhaltige Konstruktion, kombiniert mit seinem warmen und erdigen Aussehen, machen es zu einem vielseitigen und zeitlosen Wohnaccessoire, an dem Sie jahrelang Freude haben werden.", - }, - ], - "key": "braided-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4720, - "width": 4924, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.1.jpeg", - }, - { - "dimensions": { - "height": 3373, - "width": 5060, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.3.jpeg", - }, - { - "dimensions": { - "height": 3685, - "width": 5527, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9999, - "currencyCode": "EUR", + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A braided round jute rug for the living room is a stylish and natural home decor accessory that can add warmth and texture to any space. The rug is made from durable and sustainable jute fibers, which are braided together to create a round shape. The braided construction of the rug creates a textured surface that is both soft and durable underfoot. The natural fibers of the jute give the rug a warm and earthy appearance, making it a perfect complement to a range of decor styles, from modern and minimalist to rustic and bohemian. The round shape of the rug is ideal for creating a cozy and intimate seating area in a larger living room or for adding visual interest to a smaller space. Overall, a braided round jute rug is a stylish and natural way to add warmth and texture to a living room. Its durable and sustainable construction, combined with its warm and earthy appearance, make it a versatile and timeless home decor accessory that can be enjoyed for years to come.", + }, + { + "locale": "en-US", + "value": "A braided round jute rug for the living room is a stylish and natural home decor accessory that can add warmth and texture to any space. The rug is made from durable and sustainable jute fibers, which are braided together to create a round shape. The braided construction of the rug creates a textured surface that is both soft and durable underfoot. The natural fibers of the jute give the rug a warm and earthy appearance, making it a perfect complement to a range of decor styles, from modern and minimalist to rustic and bohemian. The round shape of the rug is ideal for creating a cozy and intimate seating area in a larger living room or for adding visual interest to a smaller space. Overall, a braided round jute rug is a stylish and natural way to add warmth and texture to a living room. Its durable and sustainable construction, combined with its warm and earthy appearance, make it a versatile and timeless home decor accessory that can be enjoyed for years to come.", }, + { + "locale": "de-DE", + "value": "Dieser geflochtene, runde Juteteppich für das Wohnzimmer ist ein stilvolles und natürliches Wohnaccessoire, welches jedem Raum Wärme und Struktur verleiht. Der Teppich besteht aus strapazierfähigen und nachhaltigen Jutefasern, die zu einer runden Form zusammengeflochten sind. Das Flechtmuster des Teppichs erzeugt eine strukturierte Oberfläche, die sowohl weich als auch strapazierfähig ist. Die Naturfasern der Jute verleihen dem Teppich ein warmes und erdiges Aussehen und machen ihn zu einer perfekten Ergänzung für eine Reihe von Einrichtungsstilen, von modern und minimalistisch bis hin zu rustikal und unkonventionell. Die runde Form des Teppichs ist ideal, um einen gemütlichen und intimen Sitzbereich in einem größeren Wohnzimmer zu schaffen oder um einem kleineren Raum visuelle Finesse zu verleihen. Ein geflochtener runder Juteteppich eine stilvolle und natürliche Möglichkeit, einem Wohnzimmer Wärme und Textur zu verleihen. Seine langlebige und nachhaltige Konstruktion, kombiniert mit seinem warmen und erdigen Aussehen, machen es zu einem vielseitigen und zeitlosen Wohnaccessoire, an dem Sie jahrelang Freude haben werden.", + }, + ], + "key": "braided-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4720, + "width": 4924, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.1.jpeg", + }, + { + "dimensions": { + "height": 3373, + "width": 5060, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.3.jpeg", + }, + { + "dimensions": { + "height": 3685, + "width": 5527, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Braided_Rug-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BR-0983", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Braided Rug", + }, + { + "locale": "en-GB", + "value": "Braided Rug", + }, + { + "locale": "de-DE", + "value": "Geflochtener Teppich", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "braided-rug", + }, + { + "locale": "en-GB", + "value": "braided-rug", + }, + { + "locale": "de-DE", + "value": "geflochtener-teppich", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BR-0983", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Braided Rug", - }, - { - "locale": "en-GB", - "value": "Braided Rug", - }, - { - "locale": "de-DE", - "value": "Geflochtener Teppich", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "braided-rug", - }, - { - "locale": "en-GB", - "value": "braided-rug", - }, - { - "locale": "de-DE", - "value": "geflochtener-teppich", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/bruno-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/bruno-chair.spec.ts index 08bc349aa..eab6be79e 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/bruno-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/bruno-chair.spec.ts @@ -5,316 +5,316 @@ describe(`with brunoChair preset`, () => { it(`should return a brunoChair preset`, () => { const brunoChairPreset = brunoChair().build(); expect(brunoChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein moderner Stuhl aus Leinen und Holz zeichnet sich durch ein einfaches, aber stilvolles Design aus. Der Stuhl hat einen schlanken Holzrahmen, der in einem natürlichen Holzfinish gebeizt ist. Der Sitz und die Rückenlehne bestehen aus einem weichen Leinenstoff, der für Komfort gepolstert ist. Der Leinenstoff ist ein neutrales Beige. Die Rückenlehne des Stuhls ist leicht angewinkelt, was dem Benutzer zusätzlichen Komfort und Unterstützung bietet. Die Beine des Stuhls sind leicht konisch und haben schützende Fußpolster, um Schäden am Bodenbelag zu vermeiden. Insgesamt ist dieser moderne Leinen- und Holzstuhl eine vielseitige und elegante Ergänzung für jedes Wohnzimmer, Esszimmer oder Büro.", - "en": undefined, - "en-GB": "A modern linen and wood chair features a simple yet stylish design. The chair has a sleek wooden frame, which is stained in a natural wood finish. The seat and backrest are made of a soft linen fabric that is padded for comfort. The linen fabric is a neutral beige. The backrest of the chair is slightly angled, providing additional comfort and support for the user. The legs of the chair are slightly tapered and have protective foot pads to prevent damage to flooring. Overall, this modern linen and wood chair is a versatile and elegant addition to any living room, dining room, or office space.", - "en-US": "A modern linen and wood chair features a simple yet stylish design. The chair has a sleek wooden frame, which is stained in a natural wood finish. The seat and backrest are made of a soft linen fabric that is padded for comfort. The linen fabric is a neutral beige. The backrest of the chair is slightly angled, providing additional comfort and support for the user. The legs of the chair are slightly tapered and have protective foot pads to prevent damage to flooring. Overall, this modern linen and wood chair is a versatile and elegant addition to any living room, dining room, or office space.", - "fr": undefined, - }, - "key": "bruno-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Beinhaltet 1 Stuhl", - "en-GB": "- Includes 1 chair", - "en-US": "- Includes 1 chair", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein moderner Stuhl aus Leinen und Holz zeichnet sich durch ein einfaches, aber stilvolles Design aus. Der Stuhl hat einen schlanken Holzrahmen, der in einem natürlichen Holzfinish gebeizt ist. Der Sitz und die Rückenlehne bestehen aus einem weichen Leinenstoff, der für Komfort gepolstert ist. Der Leinenstoff ist ein neutrales Beige. Die Rückenlehne des Stuhls ist leicht angewinkelt, was dem Benutzer zusätzlichen Komfort und Unterstützung bietet. Die Beine des Stuhls sind leicht konisch und haben schützende Fußpolster, um Schäden am Bodenbelag zu vermeiden. Insgesamt ist dieser moderne Leinen- und Holzstuhl eine vielseitige und elegante Ergänzung für jedes Wohnzimmer, Esszimmer oder Büro.", + "en": undefined, + "en-GB": "A modern linen and wood chair features a simple yet stylish design. The chair has a sleek wooden frame, which is stained in a natural wood finish. The seat and backrest are made of a soft linen fabric that is padded for comfort. The linen fabric is a neutral beige. The backrest of the chair is slightly angled, providing additional comfort and support for the user. The legs of the chair are slightly tapered and have protective foot pads to prevent damage to flooring. Overall, this modern linen and wood chair is a versatile and elegant addition to any living room, dining room, or office space.", + "en-US": "A modern linen and wood chair features a simple yet stylish design. The chair has a sleek wooden frame, which is stained in a natural wood finish. The seat and backrest are made of a soft linen fabric that is padded for comfort. The linen fabric is a neutral beige. The backrest of the chair is slightly angled, providing additional comfort and support for the user. The legs of the chair are slightly tapered and have protective foot pads to prevent damage to flooring. Overall, this modern linen and wood chair is a versatile and elegant addition to any living room, dining room, or office space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Königs blau:#4169E1", - "en-GB": "Royal Blue:#4169E1", - "en-US": "Royal Blue:#4169E1", + "key": "bruno-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Beinhaltet 1 Stuhl", + "en-GB": "- Includes 1 chair", + "en-US": "- Includes 1 chair", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Königs blau:#4169E1", + "en-GB": "Royal Blue:#4169E1", + "en-US": "Royal Blue:#4169E1", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4315, + "w": 6473, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Bruno_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7999, + "currencyCode": "USD", + }, + }, + ], + "sku": "BARM-03", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sessel "Bruno"", + "en": undefined, + "en-GB": "Bruno Chair", + "en-US": "Bruno Chair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4315, - "w": 6473, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Bruno_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7999, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "bruno-stuhl", + "en": undefined, + "en-GB": "bruno-chair", + "en-US": "bruno-chair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BARM-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sessel "Bruno"", - "en": undefined, - "en-GB": "Bruno Chair", - "en-US": "Bruno Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "bruno-stuhl", - "en": undefined, - "en-GB": "bruno-chair", - "en-US": "bruno-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a brunoChair preset when built for graphql`, () => { const brunoChairPresetGraphql = brunoChair().buildGraphql(); expect(brunoChairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A modern linen and wood chair features a simple yet stylish design. The chair has a sleek wooden frame, which is stained in a natural wood finish. The seat and backrest are made of a soft linen fabric that is padded for comfort. The linen fabric is a neutral beige. The backrest of the chair is slightly angled, providing additional comfort and support for the user. The legs of the chair are slightly tapered and have protective foot pads to prevent damage to flooring. Overall, this modern linen and wood chair is a versatile and elegant addition to any living room, dining room, or office space.", - }, - { - "locale": "en-US", - "value": "A modern linen and wood chair features a simple yet stylish design. The chair has a sleek wooden frame, which is stained in a natural wood finish. The seat and backrest are made of a soft linen fabric that is padded for comfort. The linen fabric is a neutral beige. The backrest of the chair is slightly angled, providing additional comfort and support for the user. The legs of the chair are slightly tapered and have protective foot pads to prevent damage to flooring. Overall, this modern linen and wood chair is a versatile and elegant addition to any living room, dining room, or office space.", - }, - { - "locale": "de-DE", - "value": "Ein moderner Stuhl aus Leinen und Holz zeichnet sich durch ein einfaches, aber stilvolles Design aus. Der Stuhl hat einen schlanken Holzrahmen, der in einem natürlichen Holzfinish gebeizt ist. Der Sitz und die Rückenlehne bestehen aus einem weichen Leinenstoff, der für Komfort gepolstert ist. Der Leinenstoff ist ein neutrales Beige. Die Rückenlehne des Stuhls ist leicht angewinkelt, was dem Benutzer zusätzlichen Komfort und Unterstützung bietet. Die Beine des Stuhls sind leicht konisch und haben schützende Fußpolster, um Schäden am Bodenbelag zu vermeiden. Insgesamt ist dieser moderne Leinen- und Holzstuhl eine vielseitige und elegante Ergänzung für jedes Wohnzimmer, Esszimmer oder Büro.", - }, - ], - "key": "bruno-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 chair","de-DE":"- Beinhaltet 1 Stuhl","en-US":"- Includes 1 chair"}", - }, - { - "name": "color", - "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", - }, - ], - "images": [ { - "dimensions": { - "height": 4315, - "width": 6473, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Bruno_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7999, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A modern linen and wood chair features a simple yet stylish design. The chair has a sleek wooden frame, which is stained in a natural wood finish. The seat and backrest are made of a soft linen fabric that is padded for comfort. The linen fabric is a neutral beige. The backrest of the chair is slightly angled, providing additional comfort and support for the user. The legs of the chair are slightly tapered and have protective foot pads to prevent damage to flooring. Overall, this modern linen and wood chair is a versatile and elegant addition to any living room, dining room, or office space.", + }, + { + "locale": "en-US", + "value": "A modern linen and wood chair features a simple yet stylish design. The chair has a sleek wooden frame, which is stained in a natural wood finish. The seat and backrest are made of a soft linen fabric that is padded for comfort. The linen fabric is a neutral beige. The backrest of the chair is slightly angled, providing additional comfort and support for the user. The legs of the chair are slightly tapered and have protective foot pads to prevent damage to flooring. Overall, this modern linen and wood chair is a versatile and elegant addition to any living room, dining room, or office space.", + }, + { + "locale": "de-DE", + "value": "Ein moderner Stuhl aus Leinen und Holz zeichnet sich durch ein einfaches, aber stilvolles Design aus. Der Stuhl hat einen schlanken Holzrahmen, der in einem natürlichen Holzfinish gebeizt ist. Der Sitz und die Rückenlehne bestehen aus einem weichen Leinenstoff, der für Komfort gepolstert ist. Der Leinenstoff ist ein neutrales Beige. Die Rückenlehne des Stuhls ist leicht angewinkelt, was dem Benutzer zusätzlichen Komfort und Unterstützung bietet. Die Beine des Stuhls sind leicht konisch und haben schützende Fußpolster, um Schäden am Bodenbelag zu vermeiden. Insgesamt ist dieser moderne Leinen- und Holzstuhl eine vielseitige und elegante Ergänzung für jedes Wohnzimmer, Esszimmer oder Büro.", }, + ], + "key": "bruno-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 chair","de-DE":"- Beinhaltet 1 Stuhl","en-US":"- Includes 1 chair"}", + }, + { + "name": "color", + "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4315, + "width": 6473, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Bruno_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BARM-03", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Bruno Chair", + }, + { + "locale": "en-GB", + "value": "Bruno Chair", + }, + { + "locale": "de-DE", + "value": "Sessel "Bruno"", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "bruno-chair", + }, + { + "locale": "en-GB", + "value": "bruno-chair", + }, + { + "locale": "de-DE", + "value": "bruno-stuhl", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BARM-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Bruno Chair", - }, - { - "locale": "en-GB", - "value": "Bruno Chair", - }, - { - "locale": "de-DE", - "value": "Sessel "Bruno"", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "bruno-chair", - }, - { - "locale": "en-GB", - "value": "bruno-chair", - }, - { - "locale": "de-DE", - "value": "bruno-stuhl", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa.spec.ts index 00763d1e4..246fad74a 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/canela-three-seater-sofa.spec.ts @@ -6,336 +6,336 @@ describe(`with canelaThreeSeaterSofa preset`, () => { const canelaThreeSeaterSofaPreset = canelaThreeSeaterSofa().build(); expect(canelaThreeSeaterSofaPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Leder-Dreisitzer-Sofa ist ein Möbelstück, das entworfen wurde, um bequemen Platz für drei Personen zu bieten. Das Sofa ist aus hochwertigem Leder gefertigt, das für seine Langlebigkeit, Stärke und natürliche Schönheit bekannt ist. Das Ledermaterial ist mit einer Schutzbeschichtung behandelt, um es widerstandsfähiger gegen Abnutzung, Flecken und Spritzer zu machen. Das Sofa verfügt über einen stabilen Rahmen aus Holz mit einer Reihe von Federn und Kissen, die den sitzenden Personen Halt und Komfort bieten. Die Kissen sind mit Daunenfedern gefüllt. Das Ledersofa hat klare Linien und minimale dekorative Elemente für einen moderneren oder zeitgemäßeren Look. Ein Leder-Dreisitzer-Sofa ein vielseitiges und stilvolles Möbelstück, das bequeme Sitzgelegenheiten bietet und jedem Wohnraum einen Hauch von Eleganz verleiht.", - "en": undefined, - "en-GB": "A leather three-seater sofa is a piece of furniture designed to provide comfortable seating for three people. The sofa is made of high-quality leather, which is known for its durability, strength, and natural beauty. The leather material is treated with protective coatings to make it more resistant to wear and tear, stains, and spills. The sofa features a sturdy frame made of wood, with a series of springs and cushions providing support and comfort for the seated individuals. The cushions are filled with down feathers. The leather sofa has clean lines and minimal decorative elements for a more modern or contemporary look. Overall, a leather three-seater sofa is a versatile and stylish piece of furniture that can provide comfortable seating and add a touch of elegance to any living space.", - "en-US": "A leather three-seater sofa is a piece of furniture designed to provide comfortable seating for three people. The sofa is made of high-quality leather, which is known for its durability, strength, and natural beauty. The leather material is treated with protective coatings to make it more resistant to wear and tear, stains, and spills. The sofa features a sturdy frame made of wood, with a series of springs and cushions providing support and comfort for the seated individuals. The cushions are filled with down feathers. The leather sofa has clean lines and minimal decorative elements for a more modern or contemporary look. Overall, a leather three-seater sofa is a versatile and stylish piece of furniture that can provide comfortable seating and add a touch of elegance to any living space.", - "fr": undefined, - }, - "key": "canela-three-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Lederpolsterung -- 3-Sitzer", - "en-GB": "- Leather upholstery -- 3 seater", - "en-US": "- Leather upholstery -- 3 seater", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Leder-Dreisitzer-Sofa ist ein Möbelstück, das entworfen wurde, um bequemen Platz für drei Personen zu bieten. Das Sofa ist aus hochwertigem Leder gefertigt, das für seine Langlebigkeit, Stärke und natürliche Schönheit bekannt ist. Das Ledermaterial ist mit einer Schutzbeschichtung behandelt, um es widerstandsfähiger gegen Abnutzung, Flecken und Spritzer zu machen. Das Sofa verfügt über einen stabilen Rahmen aus Holz mit einer Reihe von Federn und Kissen, die den sitzenden Personen Halt und Komfort bieten. Die Kissen sind mit Daunenfedern gefüllt. Das Ledersofa hat klare Linien und minimale dekorative Elemente für einen moderneren oder zeitgemäßeren Look. Ein Leder-Dreisitzer-Sofa ein vielseitiges und stilvolles Möbelstück, das bequeme Sitzgelegenheiten bietet und jedem Wohnraum einen Hauch von Eleganz verleiht.", + "en": undefined, + "en-GB": "A leather three-seater sofa is a piece of furniture designed to provide comfortable seating for three people. The sofa is made of high-quality leather, which is known for its durability, strength, and natural beauty. The leather material is treated with protective coatings to make it more resistant to wear and tear, stains, and spills. The sofa features a sturdy frame made of wood, with a series of springs and cushions providing support and comfort for the seated individuals. The cushions are filled with down feathers. The leather sofa has clean lines and minimal decorative elements for a more modern or contemporary look. Overall, a leather three-seater sofa is a versatile and stylish piece of furniture that can provide comfortable seating and add a touch of elegance to any living space.", + "en-US": "A leather three-seater sofa is a piece of furniture designed to provide comfortable seating for three people. The sofa is made of high-quality leather, which is known for its durability, strength, and natural beauty. The leather material is treated with protective coatings to make it more resistant to wear and tear, stains, and spills. The sofa features a sturdy frame made of wood, with a series of springs and cushions providing support and comfort for the seated individuals. The cushions are filled with down feathers. The leather sofa has clean lines and minimal decorative elements for a more modern or contemporary look. Overall, a leather three-seater sofa is a versatile and stylish piece of furniture that can provide comfortable seating and add a touch of elegance to any living space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Peru:#CD853F", - "en-GB": "Peru:#CD853F", - "en-US": "Peru:#CD853F", + "key": "canela-three-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Lederpolsterung + - 3-Sitzer", + "en-GB": "- Leather upholstery + - 3 seater", + "en-US": "- Leather upholstery + - 3 seater", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Peru:#CD853F", + "en-GB": "Peru:#CD853F", + "en-US": "Peru:#CD853F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3353, + "w": 5029, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 780, + "w": 1170, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CTSS-098", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Canela 3-Sitzer-Sofa", + "en": undefined, + "en-GB": "Canela Three-Seater Sofa", + "en-US": "Canela Three-Seater Sofa", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3353, - "w": 5029, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 780, - "w": 1170, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "canela-3-sitzer-sofa", + "en": undefined, + "en-GB": "canela-three-seater-sofa", + "en-US": "canela-three-seater-sofa", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "EUR", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "USD", - }, - }, - ], - "sku": "CTSS-098", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Canela 3-Sitzer-Sofa", - "en": undefined, - "en-GB": "Canela Three-Seater Sofa", - "en-US": "Canela Three-Seater Sofa", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "canela-3-sitzer-sofa", - "en": undefined, - "en-GB": "canela-three-seater-sofa", - "en-US": "canela-three-seater-sofa", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a canelaThreeSeaterSofa preset when built for graphql`, () => { const canelaThreeSeaterSofaPresetGraphql = canelaThreeSeaterSofa().buildGraphql(); expect(canelaThreeSeaterSofaPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A leather three-seater sofa is a piece of furniture designed to provide comfortable seating for three people. The sofa is made of high-quality leather, which is known for its durability, strength, and natural beauty. The leather material is treated with protective coatings to make it more resistant to wear and tear, stains, and spills. The sofa features a sturdy frame made of wood, with a series of springs and cushions providing support and comfort for the seated individuals. The cushions are filled with down feathers. The leather sofa has clean lines and minimal decorative elements for a more modern or contemporary look. Overall, a leather three-seater sofa is a versatile and stylish piece of furniture that can provide comfortable seating and add a touch of elegance to any living space.", - }, - { - "locale": "en-US", - "value": "A leather three-seater sofa is a piece of furniture designed to provide comfortable seating for three people. The sofa is made of high-quality leather, which is known for its durability, strength, and natural beauty. The leather material is treated with protective coatings to make it more resistant to wear and tear, stains, and spills. The sofa features a sturdy frame made of wood, with a series of springs and cushions providing support and comfort for the seated individuals. The cushions are filled with down feathers. The leather sofa has clean lines and minimal decorative elements for a more modern or contemporary look. Overall, a leather three-seater sofa is a versatile and stylish piece of furniture that can provide comfortable seating and add a touch of elegance to any living space.", - }, - { - "locale": "de-DE", - "value": "Ein Leder-Dreisitzer-Sofa ist ein Möbelstück, das entworfen wurde, um bequemen Platz für drei Personen zu bieten. Das Sofa ist aus hochwertigem Leder gefertigt, das für seine Langlebigkeit, Stärke und natürliche Schönheit bekannt ist. Das Ledermaterial ist mit einer Schutzbeschichtung behandelt, um es widerstandsfähiger gegen Abnutzung, Flecken und Spritzer zu machen. Das Sofa verfügt über einen stabilen Rahmen aus Holz mit einer Reihe von Federn und Kissen, die den sitzenden Personen Halt und Komfort bieten. Die Kissen sind mit Daunenfedern gefüllt. Das Ledersofa hat klare Linien und minimale dekorative Elemente für einen moderneren oder zeitgemäßeren Look. Ein Leder-Dreisitzer-Sofa ein vielseitiges und stilvolles Möbelstück, das bequeme Sitzgelegenheiten bietet und jedem Wohnraum einen Hauch von Eleganz verleiht.", - }, - ], - "key": "canela-three-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Leather upholstery \\n- 3 seater","de-DE":"- Lederpolsterung\\n- 3-Sitzer","en-US":"- Leather upholstery \\n- 3 seater"}", - }, - { - "name": "color", - "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3353, - "width": 5029, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "height": 780, - "width": 1170, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A leather three-seater sofa is a piece of furniture designed to provide comfortable seating for three people. The sofa is made of high-quality leather, which is known for its durability, strength, and natural beauty. The leather material is treated with protective coatings to make it more resistant to wear and tear, stains, and spills. The sofa features a sturdy frame made of wood, with a series of springs and cushions providing support and comfort for the seated individuals. The cushions are filled with down feathers. The leather sofa has clean lines and minimal decorative elements for a more modern or contemporary look. Overall, a leather three-seater sofa is a versatile and stylish piece of furniture that can provide comfortable seating and add a touch of elegance to any living space.", + }, + { + "locale": "en-US", + "value": "A leather three-seater sofa is a piece of furniture designed to provide comfortable seating for three people. The sofa is made of high-quality leather, which is known for its durability, strength, and natural beauty. The leather material is treated with protective coatings to make it more resistant to wear and tear, stains, and spills. The sofa features a sturdy frame made of wood, with a series of springs and cushions providing support and comfort for the seated individuals. The cushions are filled with down feathers. The leather sofa has clean lines and minimal decorative elements for a more modern or contemporary look. Overall, a leather three-seater sofa is a versatile and stylish piece of furniture that can provide comfortable seating and add a touch of elegance to any living space.", }, + { + "locale": "de-DE", + "value": "Ein Leder-Dreisitzer-Sofa ist ein Möbelstück, das entworfen wurde, um bequemen Platz für drei Personen zu bieten. Das Sofa ist aus hochwertigem Leder gefertigt, das für seine Langlebigkeit, Stärke und natürliche Schönheit bekannt ist. Das Ledermaterial ist mit einer Schutzbeschichtung behandelt, um es widerstandsfähiger gegen Abnutzung, Flecken und Spritzer zu machen. Das Sofa verfügt über einen stabilen Rahmen aus Holz mit einer Reihe von Federn und Kissen, die den sitzenden Personen Halt und Komfort bieten. Die Kissen sind mit Daunenfedern gefüllt. Das Ledersofa hat klare Linien und minimale dekorative Elemente für einen moderneren oder zeitgemäßeren Look. Ein Leder-Dreisitzer-Sofa ein vielseitiges und stilvolles Möbelstück, das bequeme Sitzgelegenheiten bietet und jedem Wohnraum einen Hauch von Eleganz verleiht.", + }, + ], + "key": "canela-three-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Leather upholstery \\n- 3 seater","de-DE":"- Lederpolsterung\\n- 3-Sitzer","en-US":"- Leather upholstery \\n- 3 seater"}", + }, + { + "name": "color", + "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3353, + "width": 5029, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "height": 780, + "width": 1170, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Canela_Three_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CTSS-098", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Canela Three-Seater Sofa", + }, + { + "locale": "en-GB", + "value": "Canela Three-Seater Sofa", + }, + { + "locale": "de-DE", + "value": "Canela 3-Sitzer-Sofa", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "canela-three-seater-sofa", + }, + { + "locale": "en-GB", + "value": "canela-three-seater-sofa", + }, + { + "locale": "de-DE", + "value": "canela-3-sitzer-sofa", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CTSS-098", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Canela Three-Seater Sofa", - }, - { - "locale": "en-GB", - "value": "Canela Three-Seater Sofa", - }, - { - "locale": "de-DE", - "value": "Canela 3-Sitzer-Sofa", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "canela-three-seater-sofa", - }, - { - "locale": "en-GB", - "value": "canela-three-seater-sofa", - }, - { - "locale": "de-DE", - "value": "canela-3-sitzer-sofa", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/charcoal-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/charcoal-chair.spec.ts index 88346f892..734e5aaea 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/charcoal-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/charcoal-chair.spec.ts @@ -5,333 +5,333 @@ describe(`with charcoalChair preset`, () => { it(`should return a charcoalChair preset`, () => { const charcoalChairPreset = charcoalChair().build(); expect(charcoalChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Stuhl mit Lederbezug verfügt über einen stabilen Rahmen und Beine. Sitzfläche und Rückenlehne sind mit hochwertigem Leder bezogen, das je nach Ausführung glatt oder strukturiert sein kann. Das Leder wird straff über eine Polsterschicht gespannt, um der auf dem Stuhl sitzenden Person Komfort und Halt zu bieten. Der Stuhl hat eine hohe Rückenlehne, was ihn ideal für das Esszimmer oder ein Arbeitszimmer macht. Ein Stuhl mit Lederpolsterung ist elegant und modern im Design und bietet eine komfortable und stilvolle Sitzgelegenheit für jeden Raum.", - "en": undefined, - "en-GB": "This chair with leather upholstery features a sturdy frame and legs. The seat and backrest are covered in high-quality leather, which may be smooth or textured depending on the design. The leather is stretched taut over a layer of padding to provide comfort and support for the person sitting in the chair. The chair has a high backrest making it ideal for the dining room or a study room. Overall, a chair with leather upholstery is typically sleek and modern in design, providing a comfortable and stylish seating option for any room.", - "en-US": "This chair with leather upholstery features a sturdy frame and legs. The seat and backrest are covered in high-quality leather, which may be smooth or textured depending on the design. The leather is stretched taut over a layer of padding to provide comfort and support for the person sitting in the chair. The chair has a high backrest making it ideal for the dining room or a study room. Overall, a chair with leather upholstery is typically sleek and modern in design, providing a comfortable and stylish seating option for any room.", - "fr": undefined, - }, - "key": "charcoal-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Beinhaltet 1 Stuhl", - "en-GB": "- Includes 1 chair", - "en-US": "- Includes 1 chair", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Stuhl mit Lederbezug verfügt über einen stabilen Rahmen und Beine. Sitzfläche und Rückenlehne sind mit hochwertigem Leder bezogen, das je nach Ausführung glatt oder strukturiert sein kann. Das Leder wird straff über eine Polsterschicht gespannt, um der auf dem Stuhl sitzenden Person Komfort und Halt zu bieten. Der Stuhl hat eine hohe Rückenlehne, was ihn ideal für das Esszimmer oder ein Arbeitszimmer macht. Ein Stuhl mit Lederpolsterung ist elegant und modern im Design und bietet eine komfortable und stilvolle Sitzgelegenheit für jeden Raum.", + "en": undefined, + "en-GB": "This chair with leather upholstery features a sturdy frame and legs. The seat and backrest are covered in high-quality leather, which may be smooth or textured depending on the design. The leather is stretched taut over a layer of padding to provide comfort and support for the person sitting in the chair. The chair has a high backrest making it ideal for the dining room or a study room. Overall, a chair with leather upholstery is typically sleek and modern in design, providing a comfortable and stylish seating option for any room.", + "en-US": "This chair with leather upholstery features a sturdy frame and legs. The seat and backrest are covered in high-quality leather, which may be smooth or textured depending on the design. The leather is stretched taut over a layer of padding to provide comfort and support for the person sitting in the chair. The chair has a high backrest making it ideal for the dining room or a study room. Overall, a chair with leather upholstery is typically sleek and modern in design, providing a comfortable and stylish seating option for any room.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Dunkles Schiefer grau:#2F4F4F", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Dark Slate Gray:#2F4F4F", + "key": "charcoal-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Beinhaltet 1 Stuhl", + "en-GB": "- Includes 1 chair", + "en-US": "- Includes 1 chair", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Dunkles Schiefer grau:#2F4F4F", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Dark Slate Gray:#2F4F4F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5309, + "w": 3300, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.2.jpeg", + }, + { + "dimensions": { + "h": 5906, + "w": 5906, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 9900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCH-093", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Stuhl "Hokzkohle"", + "en": undefined, + "en-GB": "Charcoal Chair", + "en-US": "Charcoal Chair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5309, - "w": 3300, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.2.jpeg", - }, - { - "dimensions": { - "h": 5906, - "w": 5906, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "holzkohle-stuhl", + "en": undefined, + "en-GB": "charcoal-chair", + "en-US": "charcoal-chair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9900, - "currencyCode": "EUR", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 9900, - "currencyCode": "USD", - }, - }, - ], - "sku": "CCH-093", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Stuhl "Hokzkohle"", - "en": undefined, - "en-GB": "Charcoal Chair", - "en-US": "Charcoal Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "holzkohle-stuhl", - "en": undefined, - "en-GB": "charcoal-chair", - "en-US": "charcoal-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a charcoalChair preset when built for graphql`, () => { const charcoalChairPresetGraphql = charcoalChair().buildGraphql(); expect(charcoalChairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This chair with leather upholstery features a sturdy frame and legs. The seat and backrest are covered in high-quality leather, which may be smooth or textured depending on the design. The leather is stretched taut over a layer of padding to provide comfort and support for the person sitting in the chair. The chair has a high backrest making it ideal for the dining room or a study room. Overall, a chair with leather upholstery is typically sleek and modern in design, providing a comfortable and stylish seating option for any room.", - }, - { - "locale": "en-US", - "value": "This chair with leather upholstery features a sturdy frame and legs. The seat and backrest are covered in high-quality leather, which may be smooth or textured depending on the design. The leather is stretched taut over a layer of padding to provide comfort and support for the person sitting in the chair. The chair has a high backrest making it ideal for the dining room or a study room. Overall, a chair with leather upholstery is typically sleek and modern in design, providing a comfortable and stylish seating option for any room.", - }, - { - "locale": "de-DE", - "value": "Dieser Stuhl mit Lederbezug verfügt über einen stabilen Rahmen und Beine. Sitzfläche und Rückenlehne sind mit hochwertigem Leder bezogen, das je nach Ausführung glatt oder strukturiert sein kann. Das Leder wird straff über eine Polsterschicht gespannt, um der auf dem Stuhl sitzenden Person Komfort und Halt zu bieten. Der Stuhl hat eine hohe Rückenlehne, was ihn ideal für das Esszimmer oder ein Arbeitszimmer macht. Ein Stuhl mit Lederpolsterung ist elegant und modern im Design und bietet eine komfortable und stilvolle Sitzgelegenheit für jeden Raum.", - }, - ], - "key": "charcoal-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 chair","de-DE":"- Beinhaltet 1 Stuhl","en-US":"- Includes 1 chair"}", - }, - { - "name": "color", - "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F","en-US":"Dark Slate Gray:#2F4F4F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ { - "dimensions": { - "height": 5309, - "width": 3300, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.2.jpeg", - }, - { - "dimensions": { - "height": 5906, - "width": 5906, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This chair with leather upholstery features a sturdy frame and legs. The seat and backrest are covered in high-quality leather, which may be smooth or textured depending on the design. The leather is stretched taut over a layer of padding to provide comfort and support for the person sitting in the chair. The chair has a high backrest making it ideal for the dining room or a study room. Overall, a chair with leather upholstery is typically sleek and modern in design, providing a comfortable and stylish seating option for any room.", + }, + { + "locale": "en-US", + "value": "This chair with leather upholstery features a sturdy frame and legs. The seat and backrest are covered in high-quality leather, which may be smooth or textured depending on the design. The leather is stretched taut over a layer of padding to provide comfort and support for the person sitting in the chair. The chair has a high backrest making it ideal for the dining room or a study room. Overall, a chair with leather upholstery is typically sleek and modern in design, providing a comfortable and stylish seating option for any room.", }, + { + "locale": "de-DE", + "value": "Dieser Stuhl mit Lederbezug verfügt über einen stabilen Rahmen und Beine. Sitzfläche und Rückenlehne sind mit hochwertigem Leder bezogen, das je nach Ausführung glatt oder strukturiert sein kann. Das Leder wird straff über eine Polsterschicht gespannt, um der auf dem Stuhl sitzenden Person Komfort und Halt zu bieten. Der Stuhl hat eine hohe Rückenlehne, was ihn ideal für das Esszimmer oder ein Arbeitszimmer macht. Ein Stuhl mit Lederpolsterung ist elegant und modern im Design und bietet eine komfortable und stilvolle Sitzgelegenheit für jeden Raum.", + }, + ], + "key": "charcoal-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 chair","de-DE":"- Beinhaltet 1 Stuhl","en-US":"- Includes 1 chair"}", + }, + { + "name": "color", + "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F","en-US":"Dark Slate Gray:#2F4F4F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5309, + "width": 3300, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.2.jpeg", + }, + { + "dimensions": { + "height": 5906, + "width": 5906, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charcoal_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "9900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 9900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CCH-093", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Charcoal Chair", + }, + { + "locale": "en-GB", + "value": "Charcoal Chair", + }, + { + "locale": "de-DE", + "value": "Stuhl "Hokzkohle"", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 9900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "charcoal-chair", + }, + { + "locale": "en-GB", + "value": "charcoal-chair", + }, + { + "locale": "de-DE", + "value": "holzkohle-stuhl", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CCH-093", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Charcoal Chair", - }, - { - "locale": "en-GB", - "value": "Charcoal Chair", - }, - { - "locale": "de-DE", - "value": "Stuhl "Hokzkohle"", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "charcoal-chair", - }, - { - "locale": "en-GB", - "value": "charcoal-chair", - }, - { - "locale": "de-DE", - "value": "holzkohle-stuhl", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/charlie-armchair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/charlie-armchair.spec.ts index af7488e06..3e28c2359 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/charlie-armchair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/charlie-armchair.spec.ts @@ -5,317 +5,317 @@ describe(`with charlieArmchair preset`, () => { it(`should return a charlieArmchair preset`, () => { const charlieArmchairPreset = charlieArmchair().build(); expect(charlieArmchairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Sessel mit Kordbezug und Holzbeinen hat eine gemütliche und rustikale Ausstrahlung. Der Stuhl hat einen stabilen Holzrahmen und vier gerade, sich verjüngende Beine, die den Sitz und die Rückenlehne tragen. Die Kordpolsterung ist ein weicher und plüschiger Stoff mit einer unverwechselbaren gerippten Textur, die dem Stuhl visuelle Rafinesse und Tiefe verleiht. Der Kordstoff ist in einem warmem und erdigen Ton gehalten. Die Holzbeine sind natürlich gebeizt. Der Stuhl hat ein einfaches und dezentes Design, das zu einer Vielzahl von Einrichtungsstilen passt.", - "en": undefined, - "en-GB": "A corduroy chair with wooden legs has a cozy and rustic feel. The chair has a sturdy wooden frame and four straight, tapered legs that support the seat and backrest. The corduroy upholstery is soft and plush fabric with a distinctive ribbed texture that adds visual interest and depth to the chair. The color of the corduroy is a warm and earthy tone. The wooden legs are finished in a natural wood stain. The chair has a simple and understated design that complements a variety of interior decor styles.", - "en-US": "A corduroy chair with wooden legs has a cozy and rustic feel. The chair has a sturdy wooden frame and four straight, tapered legs that support the seat and backrest. The corduroy upholstery is soft and plush fabric with a distinctive ribbed texture that adds visual interest and depth to the chair. The color of the corduroy is a warm and earthy tone. The wooden legs are finished in a natural wood stain. The chair has a simple and understated design that complements a variety of interior decor styles.", - "fr": undefined, - }, - "key": "charlie-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Sessel mit Kordbezug und Holzbeinen hat eine gemütliche und rustikale Ausstrahlung. Der Stuhl hat einen stabilen Holzrahmen und vier gerade, sich verjüngende Beine, die den Sitz und die Rückenlehne tragen. Die Kordpolsterung ist ein weicher und plüschiger Stoff mit einer unverwechselbaren gerippten Textur, die dem Stuhl visuelle Rafinesse und Tiefe verleiht. Der Kordstoff ist in einem warmem und erdigen Ton gehalten. Die Holzbeine sind natürlich gebeizt. Der Stuhl hat ein einfaches und dezentes Design, das zu einer Vielzahl von Einrichtungsstilen passt.", + "en": undefined, + "en-GB": "A corduroy chair with wooden legs has a cozy and rustic feel. The chair has a sturdy wooden frame and four straight, tapered legs that support the seat and backrest. The corduroy upholstery is soft and plush fabric with a distinctive ribbed texture that adds visual interest and depth to the chair. The color of the corduroy is a warm and earthy tone. The wooden legs are finished in a natural wood stain. The chair has a simple and understated design that complements a variety of interior decor styles.", + "en-US": "A corduroy chair with wooden legs has a cozy and rustic feel. The chair has a sturdy wooden frame and four straight, tapered legs that support the seat and backrest. The corduroy upholstery is soft and plush fabric with a distinctive ribbed texture that adds visual interest and depth to the chair. The color of the corduroy is a warm and earthy tone. The wooden legs are finished in a natural wood stain. The chair has a simple and understated design that complements a variety of interior decor styles.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Peru:#CD853F", - "en-GB": "Peru:#CD853F", - "en-US": "Peru:#CD853F", + "key": "charlie-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Peru:#CD853F", + "en-GB": "Peru:#CD853F", + "en-US": "Peru:#CD853F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charlie_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 49900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 49900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 49900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CARM-023", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sessel "Charlie"", + "en": undefined, + "en-GB": "Charlie Armchair", + "en-US": "Charlie Armchair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charlie_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 49900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "charlie-sessel", + "en": undefined, + "en-GB": "charlie-armchair", + "en-US": "charlie-armchair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 49900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 49900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CARM-023", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sessel "Charlie"", - "en": undefined, - "en-GB": "Charlie Armchair", - "en-US": "Charlie Armchair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "charlie-sessel", - "en": undefined, - "en-GB": "charlie-armchair", - "en-US": "charlie-armchair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a charlieArmchair preset when built for graphql`, () => { const charlieArmchairPresetGraphql = charlieArmchair().buildGraphql(); expect(charlieArmchairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A corduroy chair with wooden legs has a cozy and rustic feel. The chair has a sturdy wooden frame and four straight, tapered legs that support the seat and backrest. The corduroy upholstery is soft and plush fabric with a distinctive ribbed texture that adds visual interest and depth to the chair. The color of the corduroy is a warm and earthy tone. The wooden legs are finished in a natural wood stain. The chair has a simple and understated design that complements a variety of interior decor styles.", - }, - { - "locale": "en-US", - "value": "A corduroy chair with wooden legs has a cozy and rustic feel. The chair has a sturdy wooden frame and four straight, tapered legs that support the seat and backrest. The corduroy upholstery is soft and plush fabric with a distinctive ribbed texture that adds visual interest and depth to the chair. The color of the corduroy is a warm and earthy tone. The wooden legs are finished in a natural wood stain. The chair has a simple and understated design that complements a variety of interior decor styles.", - }, - { - "locale": "de-DE", - "value": "Dieser Sessel mit Kordbezug und Holzbeinen hat eine gemütliche und rustikale Ausstrahlung. Der Stuhl hat einen stabilen Holzrahmen und vier gerade, sich verjüngende Beine, die den Sitz und die Rückenlehne tragen. Die Kordpolsterung ist ein weicher und plüschiger Stoff mit einer unverwechselbaren gerippten Textur, die dem Stuhl visuelle Rafinesse und Tiefe verleiht. Der Kordstoff ist in einem warmem und erdigen Ton gehalten. Die Holzbeine sind natürlich gebeizt. Der Stuhl hat ein einfaches und dezentes Design, das zu einer Vielzahl von Einrichtungsstilen passt.", - }, - ], - "key": "charlie-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", - }, - { - "name": "color", - "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charlie_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 49900, - "currencyCode": "EUR", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A corduroy chair with wooden legs has a cozy and rustic feel. The chair has a sturdy wooden frame and four straight, tapered legs that support the seat and backrest. The corduroy upholstery is soft and plush fabric with a distinctive ribbed texture that adds visual interest and depth to the chair. The color of the corduroy is a warm and earthy tone. The wooden legs are finished in a natural wood stain. The chair has a simple and understated design that complements a variety of interior decor styles.", + }, + { + "locale": "en-US", + "value": "A corduroy chair with wooden legs has a cozy and rustic feel. The chair has a sturdy wooden frame and four straight, tapered legs that support the seat and backrest. The corduroy upholstery is soft and plush fabric with a distinctive ribbed texture that adds visual interest and depth to the chair. The color of the corduroy is a warm and earthy tone. The wooden legs are finished in a natural wood stain. The chair has a simple and understated design that complements a variety of interior decor styles.", + }, + { + "locale": "de-DE", + "value": "Dieser Sessel mit Kordbezug und Holzbeinen hat eine gemütliche und rustikale Ausstrahlung. Der Stuhl hat einen stabilen Holzrahmen und vier gerade, sich verjüngende Beine, die den Sitz und die Rückenlehne tragen. Die Kordpolsterung ist ein weicher und plüschiger Stoff mit einer unverwechselbaren gerippten Textur, die dem Stuhl visuelle Rafinesse und Tiefe verleiht. Der Kordstoff ist in einem warmem und erdigen Ton gehalten. Die Holzbeine sind natürlich gebeizt. Der Stuhl hat ein einfaches und dezentes Design, das zu einer Vielzahl von Einrichtungsstilen passt.", }, + ], + "key": "charlie-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", + }, + { + "name": "color", + "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Charlie_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 49900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 49900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "49900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 49900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CARM-023", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 49900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Charlie Armchair", + }, + { + "locale": "en-GB", + "value": "Charlie Armchair", + }, + { + "locale": "de-DE", + "value": "Sessel "Charlie"", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 49900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "charlie-armchair", + }, + { + "locale": "en-GB", + "value": "charlie-armchair", + }, + { + "locale": "de-DE", + "value": "charlie-sessel", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CARM-023", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Charlie Armchair", - }, - { - "locale": "en-GB", - "value": "Charlie Armchair", - }, - { - "locale": "de-DE", - "value": "Sessel "Charlie"", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "charlie-armchair", - }, - { - "locale": "en-GB", - "value": "charlie-armchair", - }, - { - "locale": "de-DE", - "value": "charlie-sessel", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass.spec.ts index f6939b43b..41df8bb83 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/chianti-wine-glass.spec.ts @@ -5,317 +5,317 @@ describe(`with chiantiWineGlass preset`, () => { it(`should return a chiantiWineGlass preset`, () => { const chiantiWineGlassPreset = chiantiWineGlass().build(); expect(chiantiWineGlassPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das Chianti Weinglas wurde speziell entwickelt, um das Erlebnis beim Trinken von Rotwein zu verbessern. Es hat einen runden oder leicht konisch zulaufenden Körper, der größer ist als der eines Weißweinglases, wodurch der Wein atmen und sein volles Aroma und seinen vollen Geschmack entfalten kann. Das Rotweinglas ist unten breiter und verjüngt sich leicht nach oben, wodurch die Aromen des Weins konzentriert und zur Nase geleitet werden. Der Stiel des Glases ist lang und schlank. Dadurch kann das Glas gehalten werden, ohne den Wein zu erwärmen. Dieses Rotweinglas ist ein stilvolles und funktionales Glas, das speziell entwickelt wurde, um den Geschmack und das Aroma von Rotwein zu verbessern. Sein elegantes Design und die Liebe zum Detail machen es zu einer beliebten Wahl für Weinliebhaber und Gelegenheitstrinker gleichermaßen.", - "en": undefined, - "en-GB": "The Chianti Wine Glass is specifically designed to enhance the experience of drinking red wine. It has a round or slightly tapered bowl that is larger than that of a white wine glass, allowing the wine to breathe and develop its full aroma and flavor. The bowl of a red wine glass is wider at the base and tapers slightly towards the top, helping to concentrate the aromas of the wine and directing them towards the nose. The stem of the glass is typically long and slender, allowing the drinker to hold the glass without warming the wine with their body heat. Overall, a red wine glass is a stylish and functional piece of glassware that is specifically designed to enhance the flavor and aroma of red wine. Its elegant design and attention to detail make it a popular choice for wine enthusiasts and casual drinkers alike.", - "en-US": "The Chianti Wine Glass is specifically designed to enhance the experience of drinking red wine. It has a round or slightly tapered bowl that is larger than that of a white wine glass, allowing the wine to breathe and develop its full aroma and flavor. The bowl of a red wine glass is wider at the base and tapers slightly towards the top, helping to concentrate the aromas of the wine and directing them towards the nose. The stem of the glass is typically long and slender, allowing the drinker to hold the glass without warming the wine with their body heat. Overall, a red wine glass is a stylish and functional piece of glassware that is specifically designed to enhance the flavor and aroma of red wine. Its elegant design and attention to detail make it a popular choice for wine enthusiasts and casual drinkers alike.", - "fr": undefined, - }, - "key": "chianti-wine-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das Chianti Weinglas wurde speziell entwickelt, um das Erlebnis beim Trinken von Rotwein zu verbessern. Es hat einen runden oder leicht konisch zulaufenden Körper, der größer ist als der eines Weißweinglases, wodurch der Wein atmen und sein volles Aroma und seinen vollen Geschmack entfalten kann. Das Rotweinglas ist unten breiter und verjüngt sich leicht nach oben, wodurch die Aromen des Weins konzentriert und zur Nase geleitet werden. Der Stiel des Glases ist lang und schlank. Dadurch kann das Glas gehalten werden, ohne den Wein zu erwärmen. Dieses Rotweinglas ist ein stilvolles und funktionales Glas, das speziell entwickelt wurde, um den Geschmack und das Aroma von Rotwein zu verbessern. Sein elegantes Design und die Liebe zum Detail machen es zu einer beliebten Wahl für Weinliebhaber und Gelegenheitstrinker gleichermaßen.", + "en": undefined, + "en-GB": "The Chianti Wine Glass is specifically designed to enhance the experience of drinking red wine. It has a round or slightly tapered bowl that is larger than that of a white wine glass, allowing the wine to breathe and develop its full aroma and flavor. The bowl of a red wine glass is wider at the base and tapers slightly towards the top, helping to concentrate the aromas of the wine and directing them towards the nose. The stem of the glass is typically long and slender, allowing the drinker to hold the glass without warming the wine with their body heat. Overall, a red wine glass is a stylish and functional piece of glassware that is specifically designed to enhance the flavor and aroma of red wine. Its elegant design and attention to detail make it a popular choice for wine enthusiasts and casual drinkers alike.", + "en-US": "The Chianti Wine Glass is specifically designed to enhance the experience of drinking red wine. It has a round or slightly tapered bowl that is larger than that of a white wine glass, allowing the wine to breathe and develop its full aroma and flavor. The bowl of a red wine glass is wider at the base and tapers slightly towards the top, helping to concentrate the aromas of the wine and directing them towards the nose. The stem of the glass is typically long and slender, allowing the drinker to hold the glass without warming the wine with their body heat. Overall, a red wine glass is a stylish and functional piece of glassware that is specifically designed to enhance the flavor and aroma of red wine. Its elegant design and attention to detail make it a popular choice for wine enthusiasts and casual drinkers alike.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + "key": "chianti-wine-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3138, + "w": 2457, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Chianti_Wine_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CWG-01", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Chianti Weinglas", + "en": undefined, + "en-GB": "Chianti Wine Glass", + "en-US": "Chianti Wine Glass", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3138, - "w": 2457, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Chianti_Wine_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "chianti-weinglas", + "en": undefined, + "en-GB": "chianti-wine-glass", + "en-US": "chianti-wine-glass", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CWG-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Chianti Weinglas", - "en": undefined, - "en-GB": "Chianti Wine Glass", - "en-US": "Chianti Wine Glass", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "chianti-weinglas", - "en": undefined, - "en-GB": "chianti-wine-glass", - "en-US": "chianti-wine-glass", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a chiantiWineGlass preset when built for graphql`, () => { const chiantiWineGlassPresetGraphql = chiantiWineGlass().buildGraphql(); expect(chiantiWineGlassPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "The Chianti Wine Glass is specifically designed to enhance the experience of drinking red wine. It has a round or slightly tapered bowl that is larger than that of a white wine glass, allowing the wine to breathe and develop its full aroma and flavor. The bowl of a red wine glass is wider at the base and tapers slightly towards the top, helping to concentrate the aromas of the wine and directing them towards the nose. The stem of the glass is typically long and slender, allowing the drinker to hold the glass without warming the wine with their body heat. Overall, a red wine glass is a stylish and functional piece of glassware that is specifically designed to enhance the flavor and aroma of red wine. Its elegant design and attention to detail make it a popular choice for wine enthusiasts and casual drinkers alike.", - }, - { - "locale": "en-US", - "value": "The Chianti Wine Glass is specifically designed to enhance the experience of drinking red wine. It has a round or slightly tapered bowl that is larger than that of a white wine glass, allowing the wine to breathe and develop its full aroma and flavor. The bowl of a red wine glass is wider at the base and tapers slightly towards the top, helping to concentrate the aromas of the wine and directing them towards the nose. The stem of the glass is typically long and slender, allowing the drinker to hold the glass without warming the wine with their body heat. Overall, a red wine glass is a stylish and functional piece of glassware that is specifically designed to enhance the flavor and aroma of red wine. Its elegant design and attention to detail make it a popular choice for wine enthusiasts and casual drinkers alike.", - }, - { - "locale": "de-DE", - "value": "Das Chianti Weinglas wurde speziell entwickelt, um das Erlebnis beim Trinken von Rotwein zu verbessern. Es hat einen runden oder leicht konisch zulaufenden Körper, der größer ist als der eines Weißweinglases, wodurch der Wein atmen und sein volles Aroma und seinen vollen Geschmack entfalten kann. Das Rotweinglas ist unten breiter und verjüngt sich leicht nach oben, wodurch die Aromen des Weins konzentriert und zur Nase geleitet werden. Der Stiel des Glases ist lang und schlank. Dadurch kann das Glas gehalten werden, ohne den Wein zu erwärmen. Dieses Rotweinglas ist ein stilvolles und funktionales Glas, das speziell entwickelt wurde, um den Geschmack und das Aroma von Rotwein zu verbessern. Sein elegantes Design und die Liebe zum Detail machen es zu einer beliebten Wahl für Weinliebhaber und Gelegenheitstrinker gleichermaßen.", - }, - ], - "key": "chianti-wine-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3138, - "width": 2457, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Chianti_Wine_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "The Chianti Wine Glass is specifically designed to enhance the experience of drinking red wine. It has a round or slightly tapered bowl that is larger than that of a white wine glass, allowing the wine to breathe and develop its full aroma and flavor. The bowl of a red wine glass is wider at the base and tapers slightly towards the top, helping to concentrate the aromas of the wine and directing them towards the nose. The stem of the glass is typically long and slender, allowing the drinker to hold the glass without warming the wine with their body heat. Overall, a red wine glass is a stylish and functional piece of glassware that is specifically designed to enhance the flavor and aroma of red wine. Its elegant design and attention to detail make it a popular choice for wine enthusiasts and casual drinkers alike.", + }, + { + "locale": "en-US", + "value": "The Chianti Wine Glass is specifically designed to enhance the experience of drinking red wine. It has a round or slightly tapered bowl that is larger than that of a white wine glass, allowing the wine to breathe and develop its full aroma and flavor. The bowl of a red wine glass is wider at the base and tapers slightly towards the top, helping to concentrate the aromas of the wine and directing them towards the nose. The stem of the glass is typically long and slender, allowing the drinker to hold the glass without warming the wine with their body heat. Overall, a red wine glass is a stylish and functional piece of glassware that is specifically designed to enhance the flavor and aroma of red wine. Its elegant design and attention to detail make it a popular choice for wine enthusiasts and casual drinkers alike.", + }, + { + "locale": "de-DE", + "value": "Das Chianti Weinglas wurde speziell entwickelt, um das Erlebnis beim Trinken von Rotwein zu verbessern. Es hat einen runden oder leicht konisch zulaufenden Körper, der größer ist als der eines Weißweinglases, wodurch der Wein atmen und sein volles Aroma und seinen vollen Geschmack entfalten kann. Das Rotweinglas ist unten breiter und verjüngt sich leicht nach oben, wodurch die Aromen des Weins konzentriert und zur Nase geleitet werden. Der Stiel des Glases ist lang und schlank. Dadurch kann das Glas gehalten werden, ohne den Wein zu erwärmen. Dieses Rotweinglas ist ein stilvolles und funktionales Glas, das speziell entwickelt wurde, um den Geschmack und das Aroma von Rotwein zu verbessern. Sein elegantes Design und die Liebe zum Detail machen es zu einer beliebten Wahl für Weinliebhaber und Gelegenheitstrinker gleichermaßen.", }, + ], + "key": "chianti-wine-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3138, + "width": 2457, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Chianti_Wine_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CWG-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Chianti Wine Glass", + }, + { + "locale": "en-GB", + "value": "Chianti Wine Glass", + }, + { + "locale": "de-DE", + "value": "Chianti Weinglas", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "chianti-wine-glass", + }, + { + "locale": "en-GB", + "value": "chianti-wine-glass", + }, + { + "locale": "de-DE", + "value": "chianti-weinglas", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CWG-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Chianti Wine Glass", - }, - { - "locale": "en-GB", - "value": "Chianti Wine Glass", - }, - { - "locale": "de-DE", - "value": "Chianti Weinglas", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "chianti-wine-glass", - }, - { - "locale": "en-GB", - "value": "chianti-wine-glass", - }, - { - "locale": "de-DE", - "value": "chianti-weinglas", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug.spec.ts index 348798ca4..05764b5c8 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-beer-mug.spec.ts @@ -5,317 +5,317 @@ describe(`with classicBeerMug preset`, () => { it(`should return a classicBeerMug preset`, () => { const classicBeerMugPreset = classicBeerMug().build(); expect(classicBeerMugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser klassische Bierkrug hat einen robusten Griff, der das Halten erleichtert und verhindert, dass die Hand des Trinkers das Bier erwärmt. Als Material wird hochwertiges Glas eingesetzt. Durch dieses Design kann das Bier seinen vollen Geschmack und sein volles Aroma entfalten. Die robusten Wände des Krugs bilden eine Art Isolationsschicht und halten somit länger das Bier länger kalt. Der Becher fasst normalerweise zwischen 12 und 20 Unzen Bier. Der Becher ist leicht zu reinigen und zu pflegen. Es kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden.", - "en": undefined, - "en-GB": "This Classic Beer Mug has a thick and sturdy handle that makes it easy to hold and prevents the drinker's hand from warming the beer. The mug is made of glass. This design allows the beer to settle and develop its full flavor and aroma. The thick walls of the mug help to insulate the beer and keep it cold for longer. The mug typically holds between 12 and 20 ounces of beer. The mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming.", - "en-US": "This Classic Beer Mug has a thick and sturdy handle that makes it easy to hold and prevents the drinker's hand from warming the beer. The mug is made of glass. This design allows the beer to settle and develop its full flavor and aroma. The thick walls of the mug help to insulate the beer and keep it cold for longer. The mug typically holds between 12 and 20 ounces of beer. The mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming.", - "fr": undefined, - }, - "key": "classic-beer-mug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Tassen", - "en-GB": "- Set includes 6 mugs", - "en-US": "- Set includes 6 mugs", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser klassische Bierkrug hat einen robusten Griff, der das Halten erleichtert und verhindert, dass die Hand des Trinkers das Bier erwärmt. Als Material wird hochwertiges Glas eingesetzt. Durch dieses Design kann das Bier seinen vollen Geschmack und sein volles Aroma entfalten. Die robusten Wände des Krugs bilden eine Art Isolationsschicht und halten somit länger das Bier länger kalt. Der Becher fasst normalerweise zwischen 12 und 20 Unzen Bier. Der Becher ist leicht zu reinigen und zu pflegen. Es kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden.", + "en": undefined, + "en-GB": "This Classic Beer Mug has a thick and sturdy handle that makes it easy to hold and prevents the drinker's hand from warming the beer. The mug is made of glass. This design allows the beer to settle and develop its full flavor and aroma. The thick walls of the mug help to insulate the beer and keep it cold for longer. The mug typically holds between 12 and 20 ounces of beer. The mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming.", + "en-US": "This Classic Beer Mug has a thick and sturdy handle that makes it easy to hold and prevents the drinker's hand from warming the beer. The mug is made of glass. This design allows the beer to settle and develop its full flavor and aroma. The thick walls of the mug help to insulate the beer and keep it cold for longer. The mug typically holds between 12 and 20 ounces of beer. The mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + "key": "classic-beer-mug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Tassen", + "en-GB": "- Set includes 6 mugs", + "en-US": "- Set includes 6 mugs", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5409, + "w": 3606, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Beer_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CBM-03", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Klassisches Bierglas", + "en": undefined, + "en-GB": "Classic Beer Mug", + "en-US": "Classic Beer Mug", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5409, - "w": 3606, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Beer_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3599, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "klassischer-bierkrug", + "en": undefined, + "en-GB": "classic-beer-mug", + "en-US": "classic-beer-mug", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3599, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CBM-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Klassisches Bierglas", - "en": undefined, - "en-GB": "Classic Beer Mug", - "en-US": "Classic Beer Mug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "klassischer-bierkrug", - "en": undefined, - "en-GB": "classic-beer-mug", - "en-US": "classic-beer-mug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a classicBeerMug preset when built for graphql`, () => { const classicBeerMugPresetGraphql = classicBeerMug().buildGraphql(); expect(classicBeerMugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This Classic Beer Mug has a thick and sturdy handle that makes it easy to hold and prevents the drinker's hand from warming the beer. The mug is made of glass. This design allows the beer to settle and develop its full flavor and aroma. The thick walls of the mug help to insulate the beer and keep it cold for longer. The mug typically holds between 12 and 20 ounces of beer. The mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming.", - }, - { - "locale": "en-US", - "value": "This Classic Beer Mug has a thick and sturdy handle that makes it easy to hold and prevents the drinker's hand from warming the beer. The mug is made of glass. This design allows the beer to settle and develop its full flavor and aroma. The thick walls of the mug help to insulate the beer and keep it cold for longer. The mug typically holds between 12 and 20 ounces of beer. The mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming.", - }, - { - "locale": "de-DE", - "value": "Dieser klassische Bierkrug hat einen robusten Griff, der das Halten erleichtert und verhindert, dass die Hand des Trinkers das Bier erwärmt. Als Material wird hochwertiges Glas eingesetzt. Durch dieses Design kann das Bier seinen vollen Geschmack und sein volles Aroma entfalten. Die robusten Wände des Krugs bilden eine Art Isolationsschicht und halten somit länger das Bier länger kalt. Der Becher fasst normalerweise zwischen 12 und 20 Unzen Bier. Der Becher ist leicht zu reinigen und zu pflegen. Es kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden.", - }, - ], - "key": "classic-beer-mug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 mugs","de-DE":"- Das Set enthält 6 Tassen","en-US":"- Set includes 6 mugs"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ { - "dimensions": { - "height": 5409, - "width": 3606, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Beer_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3599, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This Classic Beer Mug has a thick and sturdy handle that makes it easy to hold and prevents the drinker's hand from warming the beer. The mug is made of glass. This design allows the beer to settle and develop its full flavor and aroma. The thick walls of the mug help to insulate the beer and keep it cold for longer. The mug typically holds between 12 and 20 ounces of beer. The mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming.", + }, + { + "locale": "en-US", + "value": "This Classic Beer Mug has a thick and sturdy handle that makes it easy to hold and prevents the drinker's hand from warming the beer. The mug is made of glass. This design allows the beer to settle and develop its full flavor and aroma. The thick walls of the mug help to insulate the beer and keep it cold for longer. The mug typically holds between 12 and 20 ounces of beer. The mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming.", + }, + { + "locale": "de-DE", + "value": "Dieser klassische Bierkrug hat einen robusten Griff, der das Halten erleichtert und verhindert, dass die Hand des Trinkers das Bier erwärmt. Als Material wird hochwertiges Glas eingesetzt. Durch dieses Design kann das Bier seinen vollen Geschmack und sein volles Aroma entfalten. Die robusten Wände des Krugs bilden eine Art Isolationsschicht und halten somit länger das Bier länger kalt. Der Becher fasst normalerweise zwischen 12 und 20 Unzen Bier. Der Becher ist leicht zu reinigen und zu pflegen. Es kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden.", }, + ], + "key": "classic-beer-mug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 mugs","de-DE":"- Das Set enthält 6 Tassen","en-US":"- Set includes 6 mugs"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5409, + "width": 3606, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Beer_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CBM-03", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3599, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Classic Beer Mug", + }, + { + "locale": "en-GB", + "value": "Classic Beer Mug", + }, + { + "locale": "de-DE", + "value": "Klassisches Bierglas", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3599, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "classic-beer-mug", + }, + { + "locale": "en-GB", + "value": "classic-beer-mug", + }, + { + "locale": "de-DE", + "value": "klassischer-bierkrug", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CBM-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Classic Beer Mug", - }, - { - "locale": "en-GB", - "value": "Classic Beer Mug", - }, - { - "locale": "de-DE", - "value": "Klassisches Bierglas", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "classic-beer-mug", - }, - { - "locale": "en-GB", - "value": "classic-beer-mug", - }, - { - "locale": "de-DE", - "value": "klassischer-bierkrug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses.spec.ts index 809e9f866..2d9614998 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-champagne-glasses.spec.ts @@ -6,379 +6,379 @@ describe(`with classicChampagneGlasses preset`, () => { const classicChampagneGlassesPreset = classicChampagneGlasses().build(); expect(classicChampagneGlassesPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Klassische Champagnerflöten sind hohe und schlanke Stielgläser, die speziell zum Servieren von Champagner oder anderen Schaumweinen entwickelt wurden. Sie haben einen schmalen und länglichen Kelch, der sich nach oben hin verjüngt, wodurch die Kohlensäure und das Aroma des Weins erhalten bleiben. Der Stiel ist lang und dünn und verhindert das Erwärmen des Champagners durch Körperwärme. Dies ist wichtig, da Champagner und andere Schaumweine normalerweise gekühlt serviert werden und ihre Spritzigkeit verlieren können, wenn sie zu warm werden. Die Basis des Glases ist breit und robust, was dem Glas Stabilität und Gleichgewicht verleiht. Das klassische Design der Champagnerflöte ist elegant und zeitlos, was sie zu einer beliebten Wahl für formelle Anlässe und Feiern macht. Die Gläser sind aus hochwertigem Kristall oder Glas gefertigt, was ihnen ein klares und funkelndes Aussehen verleiht. Einige Champagnerflöten können auch dekorative Ätzungen oder Muster auf dem Kelch oder Stiel aufweisen, was dem Design einen zusätzlichen Hauch von Eleganz verleiht. Insgesamt sind klassische Champagnerflöten eine stilvolle und elegante Art, Champagner und andere Schaumweine zu servieren. Ihr einzigartiges Design und hochwertige Materialien machen sie zu einer beliebten Wahl für besondere Anlässe wie Hochzeiten, Jubiläen oder Silvesterfeiern.", - "en": undefined, - "en-GB": "Classic champagne flutes are tall and slender stemware glasses that are designed specifically for serving champagne or other sparkling wines. They have a narrow and elongated bowl that tapers towards the top, which helps to preserve the carbonation and aroma of the wine. The stem of the flute is long and thin, which allows the drinker to hold the glass without warming the contents inside. This is important because champagne and other sparkling wines are typically served chilled and can lose their effervescence if they become too warm. The base of the flute is broad and sturdy, which provides stability and balance to the glass. The classic design of the champagne flute is elegant and timeless, making it a popular choice for formal occasions and celebrations. The glasses are made from high-quality crystal or glass, which gives them a clear and sparkling appearance. Some champagne flutes may also feature decorative etching or patterns on the bowl or stem, adding an extra touch of elegance to the design. Overall, classic champagne flutes are a stylish and elegant way to serve champagne and other sparkling wines. Their unique design and high-quality materials make them a popular choice for special occasions, such as weddings, anniversaries, or New Year's Eve celebrations.", - "en-US": "Classic champagne flutes are tall and slender stemware glasses that are designed specifically for serving champagne or other sparkling wines. They have a narrow and elongated bowl that tapers towards the top, which helps to preserve the carbonation and aroma of the wine. The stem of the flute is long and thin, which allows the drinker to hold the glass without warming the contents inside. This is important because champagne and other sparkling wines are typically served chilled and can lose their effervescence if they become too warm. The base of the flute is broad and sturdy, which provides stability and balance to the glass. The classic design of the champagne flute is elegant and timeless, making it a popular choice for formal occasions and celebrations. The glasses are made from high-quality crystal or glass, which gives them a clear and sparkling appearance. Some champagne flutes may also feature decorative etching or patterns on the bowl or stem, adding an extra touch of elegance to the design. Overall, classic champagne flutes are a stylish and elegant way to serve champagne and other sparkling wines. Their unique design and high-quality materials make them a popular choice for special occasions, such as weddings, anniversaries, or New Year's Eve celebrations.", - "fr": undefined, - }, - "key": "classic-champagne-glasses", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Set aus 5 Gläsern -- Hochwertiges Glas -- Zerbrechlich", - "en-GB": "- Set of 5 glasses -- Premium glass -- Fragile", - "en-US": "- Set of 5 glasses -- Premium glass -- Fragile", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4101, - "w": 5468, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.4.jpeg", - }, - { - "dimensions": { - "h": 4149, - "w": 2571, + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Klassische Champagnerflöten sind hohe und schlanke Stielgläser, die speziell zum Servieren von Champagner oder anderen Schaumweinen entwickelt wurden. Sie haben einen schmalen und länglichen Kelch, der sich nach oben hin verjüngt, wodurch die Kohlensäure und das Aroma des Weins erhalten bleiben. Der Stiel ist lang und dünn und verhindert das Erwärmen des Champagners durch Körperwärme. Dies ist wichtig, da Champagner und andere Schaumweine normalerweise gekühlt serviert werden und ihre Spritzigkeit verlieren können, wenn sie zu warm werden. Die Basis des Glases ist breit und robust, was dem Glas Stabilität und Gleichgewicht verleiht. Das klassische Design der Champagnerflöte ist elegant und zeitlos, was sie zu einer beliebten Wahl für formelle Anlässe und Feiern macht. Die Gläser sind aus hochwertigem Kristall oder Glas gefertigt, was ihnen ein klares und funkelndes Aussehen verleiht. Einige Champagnerflöten können auch dekorative Ätzungen oder Muster auf dem Kelch oder Stiel aufweisen, was dem Design einen zusätzlichen Hauch von Eleganz verleiht. Insgesamt sind klassische Champagnerflöten eine stilvolle und elegante Art, Champagner und andere Schaumweine zu servieren. Ihr einzigartiges Design und hochwertige Materialien machen sie zu einer beliebten Wahl für besondere Anlässe wie Hochzeiten, Jubiläen oder Silvesterfeiern.", + "en": undefined, + "en-GB": "Classic champagne flutes are tall and slender stemware glasses that are designed specifically for serving champagne or other sparkling wines. They have a narrow and elongated bowl that tapers towards the top, which helps to preserve the carbonation and aroma of the wine. The stem of the flute is long and thin, which allows the drinker to hold the glass without warming the contents inside. This is important because champagne and other sparkling wines are typically served chilled and can lose their effervescence if they become too warm. The base of the flute is broad and sturdy, which provides stability and balance to the glass. The classic design of the champagne flute is elegant and timeless, making it a popular choice for formal occasions and celebrations. The glasses are made from high-quality crystal or glass, which gives them a clear and sparkling appearance. Some champagne flutes may also feature decorative etching or patterns on the bowl or stem, adding an extra touch of elegance to the design. Overall, classic champagne flutes are a stylish and elegant way to serve champagne and other sparkling wines. Their unique design and high-quality materials make them a popular choice for special occasions, such as weddings, anniversaries, or New Year's Eve celebrations.", + "en-US": "Classic champagne flutes are tall and slender stemware glasses that are designed specifically for serving champagne or other sparkling wines. They have a narrow and elongated bowl that tapers towards the top, which helps to preserve the carbonation and aroma of the wine. The stem of the flute is long and thin, which allows the drinker to hold the glass without warming the contents inside. This is important because champagne and other sparkling wines are typically served chilled and can lose their effervescence if they become too warm. The base of the flute is broad and sturdy, which provides stability and balance to the glass. The classic design of the champagne flute is elegant and timeless, making it a popular choice for formal occasions and celebrations. The glasses are made from high-quality crystal or glass, which gives them a clear and sparkling appearance. Some champagne flutes may also feature decorative etching or patterns on the bowl or stem, adding an extra touch of elegance to the design. Overall, classic champagne flutes are a stylish and elegant way to serve champagne and other sparkling wines. Their unique design and high-quality materials make them a popular choice for special occasions, such as weddings, anniversaries, or New Year's Eve celebrations.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.1.jpeg", - }, - { - "dimensions": { - "h": 5464, - "w": 3643, + "key": "classic-champagne-glasses", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Set aus 5 Gläsern + - Hochwertiges Glas + - Zerbrechlich", + "en-GB": "- Set of 5 glasses + - Premium glass + - Fragile", + "en-US": "- Set of 5 glasses + - Premium glass + - Fragile", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4101, + "w": 5468, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.4.jpeg", + }, + { + "dimensions": { + "h": 4149, + "w": 2571, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.1.jpeg", + }, + { + "dimensions": { + "h": 5464, + "w": 3643, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.2.jpeg", + }, + { + "dimensions": { + "h": 2733, + "w": 1659, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCG-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.2.jpeg", - }, - { - "dimensions": { - "h": 2733, - "w": 1659, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Klassische Champagnergläser", + "en": undefined, + "en-GB": "Classic Champagne Glasses", + "en-US": "Classic Champagne Glasses", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "klassische-champagnerglser", + "en": undefined, + "en-GB": "classic-champagne-glasses", + "en-US": "classic-champagne-glasses", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CCG-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Klassische Champagnergläser", - "en": undefined, - "en-GB": "Classic Champagne Glasses", - "en-US": "Classic Champagne Glasses", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "klassische-champagnerglser", - "en": undefined, - "en-GB": "classic-champagne-glasses", - "en-US": "classic-champagne-glasses", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a classicChampagneGlasses preset when built for graphql`, () => { const classicChampagneGlassesPresetGraphql = classicChampagneGlasses().buildGraphql(); expect(classicChampagneGlassesPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "Classic champagne flutes are tall and slender stemware glasses that are designed specifically for serving champagne or other sparkling wines. They have a narrow and elongated bowl that tapers towards the top, which helps to preserve the carbonation and aroma of the wine. The stem of the flute is long and thin, which allows the drinker to hold the glass without warming the contents inside. This is important because champagne and other sparkling wines are typically served chilled and can lose their effervescence if they become too warm. The base of the flute is broad and sturdy, which provides stability and balance to the glass. The classic design of the champagne flute is elegant and timeless, making it a popular choice for formal occasions and celebrations. The glasses are made from high-quality crystal or glass, which gives them a clear and sparkling appearance. Some champagne flutes may also feature decorative etching or patterns on the bowl or stem, adding an extra touch of elegance to the design. Overall, classic champagne flutes are a stylish and elegant way to serve champagne and other sparkling wines. Their unique design and high-quality materials make them a popular choice for special occasions, such as weddings, anniversaries, or New Year's Eve celebrations.", - }, - { - "locale": "en-US", - "value": "Classic champagne flutes are tall and slender stemware glasses that are designed specifically for serving champagne or other sparkling wines. They have a narrow and elongated bowl that tapers towards the top, which helps to preserve the carbonation and aroma of the wine. The stem of the flute is long and thin, which allows the drinker to hold the glass without warming the contents inside. This is important because champagne and other sparkling wines are typically served chilled and can lose their effervescence if they become too warm. The base of the flute is broad and sturdy, which provides stability and balance to the glass. The classic design of the champagne flute is elegant and timeless, making it a popular choice for formal occasions and celebrations. The glasses are made from high-quality crystal or glass, which gives them a clear and sparkling appearance. Some champagne flutes may also feature decorative etching or patterns on the bowl or stem, adding an extra touch of elegance to the design. Overall, classic champagne flutes are a stylish and elegant way to serve champagne and other sparkling wines. Their unique design and high-quality materials make them a popular choice for special occasions, such as weddings, anniversaries, or New Year's Eve celebrations.", - }, - { - "locale": "de-DE", - "value": "Klassische Champagnerflöten sind hohe und schlanke Stielgläser, die speziell zum Servieren von Champagner oder anderen Schaumweinen entwickelt wurden. Sie haben einen schmalen und länglichen Kelch, der sich nach oben hin verjüngt, wodurch die Kohlensäure und das Aroma des Weins erhalten bleiben. Der Stiel ist lang und dünn und verhindert das Erwärmen des Champagners durch Körperwärme. Dies ist wichtig, da Champagner und andere Schaumweine normalerweise gekühlt serviert werden und ihre Spritzigkeit verlieren können, wenn sie zu warm werden. Die Basis des Glases ist breit und robust, was dem Glas Stabilität und Gleichgewicht verleiht. Das klassische Design der Champagnerflöte ist elegant und zeitlos, was sie zu einer beliebten Wahl für formelle Anlässe und Feiern macht. Die Gläser sind aus hochwertigem Kristall oder Glas gefertigt, was ihnen ein klares und funkelndes Aussehen verleiht. Einige Champagnerflöten können auch dekorative Ätzungen oder Muster auf dem Kelch oder Stiel aufweisen, was dem Design einen zusätzlichen Hauch von Eleganz verleiht. Insgesamt sind klassische Champagnerflöten eine stilvolle und elegante Art, Champagner und andere Schaumweine zu servieren. Ihr einzigartiges Design und hochwertige Materialien machen sie zu einer beliebten Wahl für besondere Anlässe wie Hochzeiten, Jubiläen oder Silvesterfeiern.", - }, - ], - "key": "classic-champagne-glasses", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Set of 5 glasses\\n- Premium glass\\n- Fragile","en-GB":"- Set of 5 glasses\\n- Premium glass\\n- Fragile","de-DE":"- Set aus 5 Gläsern\\n- Hochwertiges Glas\\n- Zerbrechlich"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4101, - "width": 5468, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.4.jpeg", - }, - { - "dimensions": { - "height": 4149, - "width": 2571, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.1.jpeg", - }, - { - "dimensions": { - "height": 5464, - "width": 3643, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.2.jpeg", - }, - { - "dimensions": { - "height": 2733, - "width": 1659, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "Classic champagne flutes are tall and slender stemware glasses that are designed specifically for serving champagne or other sparkling wines. They have a narrow and elongated bowl that tapers towards the top, which helps to preserve the carbonation and aroma of the wine. The stem of the flute is long and thin, which allows the drinker to hold the glass without warming the contents inside. This is important because champagne and other sparkling wines are typically served chilled and can lose their effervescence if they become too warm. The base of the flute is broad and sturdy, which provides stability and balance to the glass. The classic design of the champagne flute is elegant and timeless, making it a popular choice for formal occasions and celebrations. The glasses are made from high-quality crystal or glass, which gives them a clear and sparkling appearance. Some champagne flutes may also feature decorative etching or patterns on the bowl or stem, adding an extra touch of elegance to the design. Overall, classic champagne flutes are a stylish and elegant way to serve champagne and other sparkling wines. Their unique design and high-quality materials make them a popular choice for special occasions, such as weddings, anniversaries, or New Year's Eve celebrations.", + }, + { + "locale": "en-US", + "value": "Classic champagne flutes are tall and slender stemware glasses that are designed specifically for serving champagne or other sparkling wines. They have a narrow and elongated bowl that tapers towards the top, which helps to preserve the carbonation and aroma of the wine. The stem of the flute is long and thin, which allows the drinker to hold the glass without warming the contents inside. This is important because champagne and other sparkling wines are typically served chilled and can lose their effervescence if they become too warm. The base of the flute is broad and sturdy, which provides stability and balance to the glass. The classic design of the champagne flute is elegant and timeless, making it a popular choice for formal occasions and celebrations. The glasses are made from high-quality crystal or glass, which gives them a clear and sparkling appearance. Some champagne flutes may also feature decorative etching or patterns on the bowl or stem, adding an extra touch of elegance to the design. Overall, classic champagne flutes are a stylish and elegant way to serve champagne and other sparkling wines. Their unique design and high-quality materials make them a popular choice for special occasions, such as weddings, anniversaries, or New Year's Eve celebrations.", + }, + { + "locale": "de-DE", + "value": "Klassische Champagnerflöten sind hohe und schlanke Stielgläser, die speziell zum Servieren von Champagner oder anderen Schaumweinen entwickelt wurden. Sie haben einen schmalen und länglichen Kelch, der sich nach oben hin verjüngt, wodurch die Kohlensäure und das Aroma des Weins erhalten bleiben. Der Stiel ist lang und dünn und verhindert das Erwärmen des Champagners durch Körperwärme. Dies ist wichtig, da Champagner und andere Schaumweine normalerweise gekühlt serviert werden und ihre Spritzigkeit verlieren können, wenn sie zu warm werden. Die Basis des Glases ist breit und robust, was dem Glas Stabilität und Gleichgewicht verleiht. Das klassische Design der Champagnerflöte ist elegant und zeitlos, was sie zu einer beliebten Wahl für formelle Anlässe und Feiern macht. Die Gläser sind aus hochwertigem Kristall oder Glas gefertigt, was ihnen ein klares und funkelndes Aussehen verleiht. Einige Champagnerflöten können auch dekorative Ätzungen oder Muster auf dem Kelch oder Stiel aufweisen, was dem Design einen zusätzlichen Hauch von Eleganz verleiht. Insgesamt sind klassische Champagnerflöten eine stilvolle und elegante Art, Champagner und andere Schaumweine zu servieren. Ihr einzigartiges Design und hochwertige Materialien machen sie zu einer beliebten Wahl für besondere Anlässe wie Hochzeiten, Jubiläen oder Silvesterfeiern.", + }, + ], + "key": "classic-champagne-glasses", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Set of 5 glasses\\n- Premium glass\\n- Fragile","en-GB":"- Set of 5 glasses\\n- Premium glass\\n- Fragile","de-DE":"- Set aus 5 Gläsern\\n- Hochwertiges Glas\\n- Zerbrechlich"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4101, + "width": 5468, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.4.jpeg", + }, + { + "dimensions": { + "height": 4149, + "width": 2571, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.1.jpeg", + }, + { + "dimensions": { + "height": 5464, + "width": 3643, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.2.jpeg", + }, + { + "dimensions": { + "height": 2733, + "width": 1659, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Champagne_Glasses-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CCG-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Classic Champagne Glasses", }, + { + "locale": "en-GB", + "value": "Classic Champagne Glasses", + }, + { + "locale": "de-DE", + "value": "Klassische Champagnergläser", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "classic-champagne-glasses", + }, + { + "locale": "en-GB", + "value": "classic-champagne-glasses", + }, + { + "locale": "de-DE", + "value": "klassische-champagnerglser", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CCG-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Classic Champagne Glasses", - }, - { - "locale": "en-GB", - "value": "Classic Champagne Glasses", - }, - { - "locale": "de-DE", - "value": "Klassische Champagnergläser", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "classic-champagne-glasses", - }, - { - "locale": "en-GB", - "value": "classic-champagne-glasses", - }, - { - "locale": "de-DE", - "value": "klassische-champagnerglser", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup.spec.ts index c85b1ad15..32db58134 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-coffee-cup.spec.ts @@ -5,324 +5,324 @@ describe(`with classicCoffeeCup preset`, () => { it(`should return a classicCoffeeCup preset`, () => { const classicCoffeeCupPreset = classicCoffeeCup().build(); expect(classicCoffeeCupPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Die Classic Coffee Cup ist ein klassisches Trinkgefäß, das zum Servieren von Kaffee in formellen Umgebungen verwendet werden kann. Die Tasse besteht aus Keramik oder Porzellan und hat eine zylindrische Form mit einem Henkel an einer Seite. Es kann schlicht im Design sein und hat eine Kapazität von etwa 6 bis 8 Unzen. Die Untertasse ist ein kleiner Teller, der rund ist und dazu dient, die Kaffeetasse zu halten, wenn sie nicht verwendet wird. Es besteht aus dem gleichen Material wie die Tasse. Die Untertasse hat einen Rand oder Rand, der leicht erhöht ist, um ein Verschütten zu verhindern. Beim Servieren von Kaffee in einer Tasse mit Untertasse ist es üblich, auch einen kleinen Löffel zum Umrühren des Kaffees und zum Hinzufügen von Zucker oder Sahne bereitzustellen. Insgesamt ist eine Kaffeetasse mit Untertasse eine klassische und elegante Art, eine Tasse Kaffee zu genießen, und wird oft mit Raffinesse und Raffinesse in Verbindung gebracht.", - "en": undefined, - "en-GB": "The Classic Coffee Cup is a classic drinking vessel that can be used to serve coffee in formal settings. The cup is made of ceramic or porcelain and has a cylindrical shape with a handle on one side. It may be plain in design and has a capacity of around 6 to 8 ounces. The saucer is a small plate that is round and is designed to hold the coffee cup when it is not in use. It is made of the same material as the cup. The saucer has a rim or edge that is slightly raised to help prevent spills. When serving coffee in a cup with a saucer, it is common to also provide a small spoon for stirring the coffee and adding sugar or cream. Overall, a coffee cup with a saucer is a classic and elegant way to enjoy a cup of coffee, and is often associated with sophistication and refinement.", - "en-US": "The Classic Coffee Cup is a classic drinking vessel that can be used to serve coffee in formal settings. The cup is made of ceramic or porcelain and has a cylindrical shape with a handle on one side. It may be plain in design and has a capacity of around 6 to 8 ounces. The saucer is a small plate that is round and is designed to hold the coffee cup when it is not in use. It is made of the same material as the cup. The saucer has a rim or edge that is slightly raised to help prevent spills. When serving coffee in a cup with a saucer, it is common to also provide a small spoon for stirring the coffee and adding sugar or cream. Overall, a coffee cup with a saucer is a classic and elegant way to enjoy a cup of coffee, and is often associated with sophistication and refinement.", - "fr": undefined, - }, - "key": "classic-coffee-cup", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Inklusive passender Untertasse -- Das Set enthält 4 Tassen und Untertassen", - "en-GB": "- Includes a matching saucer -- Set includes 4 cups and saucers", - "en-US": "- Includes a matching saucer -- Set includes 4 cups and saucers", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "categories": [ + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Die Classic Coffee Cup ist ein klassisches Trinkgefäß, das zum Servieren von Kaffee in formellen Umgebungen verwendet werden kann. Die Tasse besteht aus Keramik oder Porzellan und hat eine zylindrische Form mit einem Henkel an einer Seite. Es kann schlicht im Design sein und hat eine Kapazität von etwa 6 bis 8 Unzen. Die Untertasse ist ein kleiner Teller, der rund ist und dazu dient, die Kaffeetasse zu halten, wenn sie nicht verwendet wird. Es besteht aus dem gleichen Material wie die Tasse. Die Untertasse hat einen Rand oder Rand, der leicht erhöht ist, um ein Verschütten zu verhindern. Beim Servieren von Kaffee in einer Tasse mit Untertasse ist es üblich, auch einen kleinen Löffel zum Umrühren des Kaffees und zum Hinzufügen von Zucker oder Sahne bereitzustellen. Insgesamt ist eine Kaffeetasse mit Untertasse eine klassische und elegante Art, eine Tasse Kaffee zu genießen, und wird oft mit Raffinesse und Raffinesse in Verbindung gebracht.", + "en": undefined, + "en-GB": "The Classic Coffee Cup is a classic drinking vessel that can be used to serve coffee in formal settings. The cup is made of ceramic or porcelain and has a cylindrical shape with a handle on one side. It may be plain in design and has a capacity of around 6 to 8 ounces. The saucer is a small plate that is round and is designed to hold the coffee cup when it is not in use. It is made of the same material as the cup. The saucer has a rim or edge that is slightly raised to help prevent spills. When serving coffee in a cup with a saucer, it is common to also provide a small spoon for stirring the coffee and adding sugar or cream. Overall, a coffee cup with a saucer is a classic and elegant way to enjoy a cup of coffee, and is often associated with sophistication and refinement.", + "en-US": "The Classic Coffee Cup is a classic drinking vessel that can be used to serve coffee in formal settings. The cup is made of ceramic or porcelain and has a cylindrical shape with a handle on one side. It may be plain in design and has a capacity of around 6 to 8 ounces. The saucer is a small plate that is round and is designed to hold the coffee cup when it is not in use. It is made of the same material as the cup. The saucer has a rim or edge that is slightly raised to help prevent spills. When serving coffee in a cup with a saucer, it is common to also provide a small spoon for stirring the coffee and adding sugar or cream. Overall, a coffee cup with a saucer is a classic and elegant way to enjoy a cup of coffee, and is often associated with sophistication and refinement.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 6000, + "key": "classic-coffee-cup", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Inklusive passender Untertasse + - Das Set enthält 4 Tassen und Untertassen", + "en-GB": "- Includes a matching saucer + - Set includes 4 cups and saucers", + "en-US": "- Includes a matching saucer + - Set includes 4 cups and saucers", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 4153, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 6999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 6999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 6999, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCC-09", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 4153, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Klassische Kaffeetasse", + "en": undefined, + "en-GB": "Classic Coffee Cup", + "en-US": "Classic Coffee Cup", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 6999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 6999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "klassische-kaffeetasse", + "en": undefined, + "en-GB": "classic-coffee-cup", + "en-US": "classic-coffee-cup", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 6999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CCC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Klassische Kaffeetasse", - "en": undefined, - "en-GB": "Classic Coffee Cup", - "en-US": "Classic Coffee Cup", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "klassische-kaffeetasse", - "en": undefined, - "en-GB": "classic-coffee-cup", - "en-US": "classic-coffee-cup", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a classicCoffeeCup preset when built for graphql`, () => { const classicCoffeeCupPresetGraphql = classicCoffeeCup().buildGraphql(); expect(classicCoffeeCupPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "The Classic Coffee Cup is a classic drinking vessel that can be used to serve coffee in formal settings. The cup is made of ceramic or porcelain and has a cylindrical shape with a handle on one side. It may be plain in design and has a capacity of around 6 to 8 ounces. The saucer is a small plate that is round and is designed to hold the coffee cup when it is not in use. It is made of the same material as the cup. The saucer has a rim or edge that is slightly raised to help prevent spills. When serving coffee in a cup with a saucer, it is common to also provide a small spoon for stirring the coffee and adding sugar or cream. Overall, a coffee cup with a saucer is a classic and elegant way to enjoy a cup of coffee, and is often associated with sophistication and refinement.", - }, - { - "locale": "en-US", - "value": "The Classic Coffee Cup is a classic drinking vessel that can be used to serve coffee in formal settings. The cup is made of ceramic or porcelain and has a cylindrical shape with a handle on one side. It may be plain in design and has a capacity of around 6 to 8 ounces. The saucer is a small plate that is round and is designed to hold the coffee cup when it is not in use. It is made of the same material as the cup. The saucer has a rim or edge that is slightly raised to help prevent spills. When serving coffee in a cup with a saucer, it is common to also provide a small spoon for stirring the coffee and adding sugar or cream. Overall, a coffee cup with a saucer is a classic and elegant way to enjoy a cup of coffee, and is often associated with sophistication and refinement.", - }, - { - "locale": "de-DE", - "value": "Die Classic Coffee Cup ist ein klassisches Trinkgefäß, das zum Servieren von Kaffee in formellen Umgebungen verwendet werden kann. Die Tasse besteht aus Keramik oder Porzellan und hat eine zylindrische Form mit einem Henkel an einer Seite. Es kann schlicht im Design sein und hat eine Kapazität von etwa 6 bis 8 Unzen. Die Untertasse ist ein kleiner Teller, der rund ist und dazu dient, die Kaffeetasse zu halten, wenn sie nicht verwendet wird. Es besteht aus dem gleichen Material wie die Tasse. Die Untertasse hat einen Rand oder Rand, der leicht erhöht ist, um ein Verschütten zu verhindern. Beim Servieren von Kaffee in einer Tasse mit Untertasse ist es üblich, auch einen kleinen Löffel zum Umrühren des Kaffees und zum Hinzufügen von Zucker oder Sahne bereitzustellen. Insgesamt ist eine Kaffeetasse mit Untertasse eine klassische und elegante Art, eine Tasse Kaffee zu genießen, und wird oft mit Raffinesse und Raffinesse in Verbindung gebracht.", - }, - ], - "key": "classic-coffee-cup", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes a matching saucer\\n- Set includes 4 cups and saucers","de-DE":"- Inklusive passender Untertasse\\n- Das Set enthält 4 Tassen und Untertassen","en-US":"- Includes a matching saucer\\n- Set includes 4 cups and saucers"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.1.jpeg", - }, { - "dimensions": { - "height": 3840, - "width": 4153, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 6999, - "currencyCode": "EUR", + "categories": [ + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "The Classic Coffee Cup is a classic drinking vessel that can be used to serve coffee in formal settings. The cup is made of ceramic or porcelain and has a cylindrical shape with a handle on one side. It may be plain in design and has a capacity of around 6 to 8 ounces. The saucer is a small plate that is round and is designed to hold the coffee cup when it is not in use. It is made of the same material as the cup. The saucer has a rim or edge that is slightly raised to help prevent spills. When serving coffee in a cup with a saucer, it is common to also provide a small spoon for stirring the coffee and adding sugar or cream. Overall, a coffee cup with a saucer is a classic and elegant way to enjoy a cup of coffee, and is often associated with sophistication and refinement.", + }, + { + "locale": "en-US", + "value": "The Classic Coffee Cup is a classic drinking vessel that can be used to serve coffee in formal settings. The cup is made of ceramic or porcelain and has a cylindrical shape with a handle on one side. It may be plain in design and has a capacity of around 6 to 8 ounces. The saucer is a small plate that is round and is designed to hold the coffee cup when it is not in use. It is made of the same material as the cup. The saucer has a rim or edge that is slightly raised to help prevent spills. When serving coffee in a cup with a saucer, it is common to also provide a small spoon for stirring the coffee and adding sugar or cream. Overall, a coffee cup with a saucer is a classic and elegant way to enjoy a cup of coffee, and is often associated with sophistication and refinement.", + }, + { + "locale": "de-DE", + "value": "Die Classic Coffee Cup ist ein klassisches Trinkgefäß, das zum Servieren von Kaffee in formellen Umgebungen verwendet werden kann. Die Tasse besteht aus Keramik oder Porzellan und hat eine zylindrische Form mit einem Henkel an einer Seite. Es kann schlicht im Design sein und hat eine Kapazität von etwa 6 bis 8 Unzen. Die Untertasse ist ein kleiner Teller, der rund ist und dazu dient, die Kaffeetasse zu halten, wenn sie nicht verwendet wird. Es besteht aus dem gleichen Material wie die Tasse. Die Untertasse hat einen Rand oder Rand, der leicht erhöht ist, um ein Verschütten zu verhindern. Beim Servieren von Kaffee in einer Tasse mit Untertasse ist es üblich, auch einen kleinen Löffel zum Umrühren des Kaffees und zum Hinzufügen von Zucker oder Sahne bereitzustellen. Insgesamt ist eine Kaffeetasse mit Untertasse eine klassische und elegante Art, eine Tasse Kaffee zu genießen, und wird oft mit Raffinesse und Raffinesse in Verbindung gebracht.", }, + ], + "key": "classic-coffee-cup", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes a matching saucer\\n- Set includes 4 cups and saucers","de-DE":"- Inklusive passender Untertasse\\n- Das Set enthält 4 Tassen und Untertassen","en-US":"- Includes a matching saucer\\n- Set includes 4 cups and saucers"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 4153, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Coffee_Cup-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 6999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 6999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "6999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 6999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CCC-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 6999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Classic Coffee Cup", + }, + { + "locale": "en-GB", + "value": "Classic Coffee Cup", + }, + { + "locale": "de-DE", + "value": "Klassische Kaffeetasse", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 6999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "classic-coffee-cup", + }, + { + "locale": "en-GB", + "value": "classic-coffee-cup", + }, + { + "locale": "de-DE", + "value": "klassische-kaffeetasse", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CCC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Classic Coffee Cup", - }, - { - "locale": "en-GB", - "value": "Classic Coffee Cup", - }, - { - "locale": "de-DE", - "value": "Klassische Kaffeetasse", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "classic-coffee-cup", - }, - { - "locale": "en-GB", - "value": "classic-coffee-cup", - }, - { - "locale": "de-DE", - "value": "klassische-kaffeetasse", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray.spec.ts index a1ce58410..f8b16aaef 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/classic-serving-tray.spec.ts @@ -6,329 +6,329 @@ describe(`with classicServingTray preset`, () => { const classicServingTrayPreset = classicServingTray().build(); expect(classicServingTrayPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses klassische Serviertablett ist ein vielseitiger und funktionaler Artikel. Das Tablett ist rechteckig, mit erhöhten Kanten und Griffen auf beiden Seiten, wodurch es leicht zu tragen und zu transportieren ist. Dieses klassische Serviertablett zeichnet sich durch ein einfaches und zeitloses Design mit klaren Linien und einer minimalistischen Ästhetik aus. Es kann für eine Vielzahl von Zwecken verwendet werden, z. B. zum Transport von Getränken und Häppchen, zum Servieren des Frühstücks am Bett oder zum Präsentieren von Dekorationsgegenständen. Zur Reinigung wird empfohlen, es mit einem milden Reinigungsmittel und einem weichen Tuch oder Schwamm von Hand zu waschen. Scharfe Reinigungsmittel oder Scheuermittel sollten vermieden werden, da sie die Oberfläche des Tabletts beschädigen können. Zusammengefasst handelt es sich um ein klassisches Serviertablett mit praktischen und stilvollen Elementen, welches jeder Umgebung einen Hauch von Raffinesse verleiht. Sein zeitloses Design und seine Vielseitigkeit machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen, Getränken und anderen Gegenständen.", - "en": undefined, - "en-GB": "This Classic Serving Tray is a versatile and functional item that can be used in a variety of settings. The tray is rectangular, with raised edges and handles on either side, making it easy to carry and transport. This Classic Serving Tray features a simple and timeless design, with clean lines and a minimalist aesthetic. It can be used for a variety of purposes, such as carrying drinks and appetizers, serving breakfast in bed, or displaying decorative items. To clean, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the surface of the tray. Overall, a classic serving tray is a practical and stylish item that adds a touch of sophistication to any setting. Its timeless design and versatility make it a popular choice for serving and displaying food, drinks, and other items.", - "en-US": "This Classic Serving Tray is a versatile and functional item that can be used in a variety of settings. The tray is rectangular, with raised edges and handles on either side, making it easy to carry and transport. This Classic Serving Tray features a simple and timeless design, with clean lines and a minimalist aesthetic. It can be used for a variety of purposes, such as carrying drinks and appetizers, serving breakfast in bed, or displaying decorative items. To clean, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the surface of the tray. Overall, a classic serving tray is a practical and stylish item that adds a touch of sophistication to any setting. Its timeless design and versatility make it a popular choice for serving and displaying food, drinks, and other items.", - "fr": undefined, - }, - "key": "classic-serving-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Aus lebensmittelechtem Kunststoff", - "en-GB": "- Made of food-grade plastic", - "en-US": "- Made of food-grade plastic", + "categories": [ + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses klassische Serviertablett ist ein vielseitiger und funktionaler Artikel. Das Tablett ist rechteckig, mit erhöhten Kanten und Griffen auf beiden Seiten, wodurch es leicht zu tragen und zu transportieren ist. Dieses klassische Serviertablett zeichnet sich durch ein einfaches und zeitloses Design mit klaren Linien und einer minimalistischen Ästhetik aus. Es kann für eine Vielzahl von Zwecken verwendet werden, z. B. zum Transport von Getränken und Häppchen, zum Servieren des Frühstücks am Bett oder zum Präsentieren von Dekorationsgegenständen. Zur Reinigung wird empfohlen, es mit einem milden Reinigungsmittel und einem weichen Tuch oder Schwamm von Hand zu waschen. Scharfe Reinigungsmittel oder Scheuermittel sollten vermieden werden, da sie die Oberfläche des Tabletts beschädigen können. Zusammengefasst handelt es sich um ein klassisches Serviertablett mit praktischen und stilvollen Elementen, welches jeder Umgebung einen Hauch von Raffinesse verleiht. Sein zeitloses Design und seine Vielseitigkeit machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen, Getränken und anderen Gegenständen.", + "en": undefined, + "en-GB": "This Classic Serving Tray is a versatile and functional item that can be used in a variety of settings. The tray is rectangular, with raised edges and handles on either side, making it easy to carry and transport. This Classic Serving Tray features a simple and timeless design, with clean lines and a minimalist aesthetic. It can be used for a variety of purposes, such as carrying drinks and appetizers, serving breakfast in bed, or displaying decorative items. To clean, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the surface of the tray. Overall, a classic serving tray is a practical and stylish item that adds a touch of sophistication to any setting. Its timeless design and versatility make it a popular choice for serving and displaying food, drinks, and other items.", + "en-US": "This Classic Serving Tray is a versatile and functional item that can be used in a variety of settings. The tray is rectangular, with raised edges and handles on either side, making it easy to carry and transport. This Classic Serving Tray features a simple and timeless design, with clean lines and a minimalist aesthetic. It can be used for a variety of purposes, such as carrying drinks and appetizers, serving breakfast in bed, or displaying decorative items. To clean, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the surface of the tray. Overall, a classic serving tray is a practical and stylish item that adds a touch of sophistication to any setting. Its timeless design and versatility make it a popular choice for serving and displaying food, drinks, and other items.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "key": "classic-serving-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Aus lebensmittelechtem Kunststoff", + "en-GB": "- Made of food-grade plastic", + "en-US": "- Made of food-grade plastic", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.1.jpeg", + }, + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CST-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Klassisches Serviertablett", + "en": undefined, + "en-GB": "Classic Serving Tray", + "en-US": "Classic Serving Tray", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.1.jpeg", - }, - { - "dimensions": { - "h": 4160, - "w": 6240, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "klassisches-serviertablett", + "en": undefined, + "en-GB": "classic-serving-tray", + "en-US": "classic-serving-tray", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CST-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Klassisches Serviertablett", - "en": undefined, - "en-GB": "Classic Serving Tray", - "en-US": "Classic Serving Tray", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "klassisches-serviertablett", - "en": undefined, - "en-GB": "classic-serving-tray", - "en-US": "classic-serving-tray", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a classicServingTray preset when built for graphql`, () => { const classicServingTrayPresetGraphql = classicServingTray().buildGraphql(); expect(classicServingTrayPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This Classic Serving Tray is a versatile and functional item that can be used in a variety of settings. The tray is rectangular, with raised edges and handles on either side, making it easy to carry and transport. This Classic Serving Tray features a simple and timeless design, with clean lines and a minimalist aesthetic. It can be used for a variety of purposes, such as carrying drinks and appetizers, serving breakfast in bed, or displaying decorative items. To clean, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the surface of the tray. Overall, a classic serving tray is a practical and stylish item that adds a touch of sophistication to any setting. Its timeless design and versatility make it a popular choice for serving and displaying food, drinks, and other items.", - }, - { - "locale": "en-US", - "value": "This Classic Serving Tray is a versatile and functional item that can be used in a variety of settings. The tray is rectangular, with raised edges and handles on either side, making it easy to carry and transport. This Classic Serving Tray features a simple and timeless design, with clean lines and a minimalist aesthetic. It can be used for a variety of purposes, such as carrying drinks and appetizers, serving breakfast in bed, or displaying decorative items. To clean, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the surface of the tray. Overall, a classic serving tray is a practical and stylish item that adds a touch of sophistication to any setting. Its timeless design and versatility make it a popular choice for serving and displaying food, drinks, and other items.", - }, - { - "locale": "de-DE", - "value": "Dieses klassische Serviertablett ist ein vielseitiger und funktionaler Artikel. Das Tablett ist rechteckig, mit erhöhten Kanten und Griffen auf beiden Seiten, wodurch es leicht zu tragen und zu transportieren ist. Dieses klassische Serviertablett zeichnet sich durch ein einfaches und zeitloses Design mit klaren Linien und einer minimalistischen Ästhetik aus. Es kann für eine Vielzahl von Zwecken verwendet werden, z. B. zum Transport von Getränken und Häppchen, zum Servieren des Frühstücks am Bett oder zum Präsentieren von Dekorationsgegenständen. Zur Reinigung wird empfohlen, es mit einem milden Reinigungsmittel und einem weichen Tuch oder Schwamm von Hand zu waschen. Scharfe Reinigungsmittel oder Scheuermittel sollten vermieden werden, da sie die Oberfläche des Tabletts beschädigen können. Zusammengefasst handelt es sich um ein klassisches Serviertablett mit praktischen und stilvollen Elementen, welches jeder Umgebung einen Hauch von Raffinesse verleiht. Sein zeitloses Design und seine Vielseitigkeit machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen, Getränken und anderen Gegenständen.", - }, - ], - "key": "classic-serving-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Made of food-grade plastic","de-DE":"- Aus lebensmittelechtem Kunststoff","en-US":"- Made of food-grade plastic"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.1.jpeg", - }, { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", + "categories": [ + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This Classic Serving Tray is a versatile and functional item that can be used in a variety of settings. The tray is rectangular, with raised edges and handles on either side, making it easy to carry and transport. This Classic Serving Tray features a simple and timeless design, with clean lines and a minimalist aesthetic. It can be used for a variety of purposes, such as carrying drinks and appetizers, serving breakfast in bed, or displaying decorative items. To clean, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the surface of the tray. Overall, a classic serving tray is a practical and stylish item that adds a touch of sophistication to any setting. Its timeless design and versatility make it a popular choice for serving and displaying food, drinks, and other items.", + }, + { + "locale": "en-US", + "value": "This Classic Serving Tray is a versatile and functional item that can be used in a variety of settings. The tray is rectangular, with raised edges and handles on either side, making it easy to carry and transport. This Classic Serving Tray features a simple and timeless design, with clean lines and a minimalist aesthetic. It can be used for a variety of purposes, such as carrying drinks and appetizers, serving breakfast in bed, or displaying decorative items. To clean, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the surface of the tray. Overall, a classic serving tray is a practical and stylish item that adds a touch of sophistication to any setting. Its timeless design and versatility make it a popular choice for serving and displaying food, drinks, and other items.", }, + { + "locale": "de-DE", + "value": "Dieses klassische Serviertablett ist ein vielseitiger und funktionaler Artikel. Das Tablett ist rechteckig, mit erhöhten Kanten und Griffen auf beiden Seiten, wodurch es leicht zu tragen und zu transportieren ist. Dieses klassische Serviertablett zeichnet sich durch ein einfaches und zeitloses Design mit klaren Linien und einer minimalistischen Ästhetik aus. Es kann für eine Vielzahl von Zwecken verwendet werden, z. B. zum Transport von Getränken und Häppchen, zum Servieren des Frühstücks am Bett oder zum Präsentieren von Dekorationsgegenständen. Zur Reinigung wird empfohlen, es mit einem milden Reinigungsmittel und einem weichen Tuch oder Schwamm von Hand zu waschen. Scharfe Reinigungsmittel oder Scheuermittel sollten vermieden werden, da sie die Oberfläche des Tabletts beschädigen können. Zusammengefasst handelt es sich um ein klassisches Serviertablett mit praktischen und stilvollen Elementen, welches jeder Umgebung einen Hauch von Raffinesse verleiht. Sein zeitloses Design und seine Vielseitigkeit machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen, Getränken und anderen Gegenständen.", + }, + ], + "key": "classic-serving-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Made of food-grade plastic","de-DE":"- Aus lebensmittelechtem Kunststoff","en-US":"- Made of food-grade plastic"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.1.jpeg", + }, + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Classic_Serving_Tray-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CST-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Classic Serving Tray", + }, + { + "locale": "en-GB", + "value": "Classic Serving Tray", + }, + { + "locale": "de-DE", + "value": "Klassisches Serviertablett", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "classic-serving-tray", + }, + { + "locale": "en-GB", + "value": "classic-serving-tray", + }, + { + "locale": "de-DE", + "value": "klassisches-serviertablett", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CST-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Classic Serving Tray", - }, - { - "locale": "en-GB", - "value": "Classic Serving Tray", - }, - { - "locale": "de-DE", - "value": "Klassisches Serviertablett", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "classic-serving-tray", - }, - { - "locale": "en-GB", - "value": "classic-serving-tray", - }, - { - "locale": "de-DE", - "value": "klassisches-serviertablett", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass.spec.ts index 09dcc2208..0cb03fa44 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/clink-champagne-glass.spec.ts @@ -6,317 +6,317 @@ describe(`with clinkChampagneGlass preset`, () => { const clinkChampagneGlassPreset = clinkChampagneGlass().build(); expect(clinkChampagneGlassPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein konisches Champagnerglas, auch als Champagnerflöte bekannt, ist ein Glas, das speziell entwickelt wurde, um das Erlebnis beim Trinken von Champagner oder Sekt zu verbessern. Das Glas hat einen hohen, schmalen Kelch, der sich nach oben hin verjüngt - schauen Sie zu wie sich die Bläschen in Ihrem Glas tanzen. Der hohe, schlanke Stiel des Glases verhindert das Aufwärmen des Getränks durch Körperwärme. Die Basis des Glases ist breit und flach und sorgt für Stabilität und Balance. Das Design des konisch zulaufenden Sektglases soll das Aroma und den Geschmack des Getränks verstärken. Der schmale Kelch konzentriert die Bläschen und das Aroma des Champagner. Dadurch können Sie den Geschmack des Champagners voll und ganz genießen. Das konische Sektglas wird typischerweise zum Servieren von Sekt oder anderen Schaumweinen verwendet, kann aber auch für andere kohlensäurehaltige Getränke oder Cocktails verwendet werden. Es ist leicht zu reinigen und zu pflegen und kann von Hand oder in der Spülmaschine gewaschen werden. Insgesamt ist das konische Champagnerglas ein stilvolles und elegantes Stielglas, das speziell entwickelt wurde, um das Erlebnis beim Trinken von Champagner oder Sekt zu verbessern. Sein einzigartiges Design und die Liebe zum Detail machen es zu einer beliebten Wahl für besondere Anlässe und Feiern.", - "en": undefined, - "en-GB": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", - "en-US": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", - "fr": undefined, - }, - "key": "clink-champagne-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein konisches Champagnerglas, auch als Champagnerflöte bekannt, ist ein Glas, das speziell entwickelt wurde, um das Erlebnis beim Trinken von Champagner oder Sekt zu verbessern. Das Glas hat einen hohen, schmalen Kelch, der sich nach oben hin verjüngt - schauen Sie zu wie sich die Bläschen in Ihrem Glas tanzen. Der hohe, schlanke Stiel des Glases verhindert das Aufwärmen des Getränks durch Körperwärme. Die Basis des Glases ist breit und flach und sorgt für Stabilität und Balance. Das Design des konisch zulaufenden Sektglases soll das Aroma und den Geschmack des Getränks verstärken. Der schmale Kelch konzentriert die Bläschen und das Aroma des Champagner. Dadurch können Sie den Geschmack des Champagners voll und ganz genießen. Das konische Sektglas wird typischerweise zum Servieren von Sekt oder anderen Schaumweinen verwendet, kann aber auch für andere kohlensäurehaltige Getränke oder Cocktails verwendet werden. Es ist leicht zu reinigen und zu pflegen und kann von Hand oder in der Spülmaschine gewaschen werden. Insgesamt ist das konische Champagnerglas ein stilvolles und elegantes Stielglas, das speziell entwickelt wurde, um das Erlebnis beim Trinken von Champagner oder Sekt zu verbessern. Sein einzigartiges Design und die Liebe zum Detail machen es zu einer beliebten Wahl für besondere Anlässe und Feiern.", + "en": undefined, + "en-GB": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", + "en-US": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + "key": "clink-champagne-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Clink_Champagne_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5499, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCG-02", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sektgläser zum Anstoßen", + "en": undefined, + "en-GB": "Clink Champagne Glass", + "en-US": "Clink Champagne Glass", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Clink_Champagne_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5499, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "sektglas-anstoen", + "en": undefined, + "en-GB": "clink-champagne-glass", + "en-US": "clink-champagne-glass", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5499, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CCG-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sektgläser zum Anstoßen", - "en": undefined, - "en-GB": "Clink Champagne Glass", - "en-US": "Clink Champagne Glass", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "sektglas-anstoen", - "en": undefined, - "en-GB": "clink-champagne-glass", - "en-US": "clink-champagne-glass", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a clinkChampagneGlass preset when built for graphql`, () => { const clinkChampagneGlassPresetGraphql = clinkChampagneGlass().buildGraphql(); expect(clinkChampagneGlassPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", - }, - { - "locale": "en-US", - "value": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", - }, - { - "locale": "de-DE", - "value": "Ein konisches Champagnerglas, auch als Champagnerflöte bekannt, ist ein Glas, das speziell entwickelt wurde, um das Erlebnis beim Trinken von Champagner oder Sekt zu verbessern. Das Glas hat einen hohen, schmalen Kelch, der sich nach oben hin verjüngt - schauen Sie zu wie sich die Bläschen in Ihrem Glas tanzen. Der hohe, schlanke Stiel des Glases verhindert das Aufwärmen des Getränks durch Körperwärme. Die Basis des Glases ist breit und flach und sorgt für Stabilität und Balance. Das Design des konisch zulaufenden Sektglases soll das Aroma und den Geschmack des Getränks verstärken. Der schmale Kelch konzentriert die Bläschen und das Aroma des Champagner. Dadurch können Sie den Geschmack des Champagners voll und ganz genießen. Das konische Sektglas wird typischerweise zum Servieren von Sekt oder anderen Schaumweinen verwendet, kann aber auch für andere kohlensäurehaltige Getränke oder Cocktails verwendet werden. Es ist leicht zu reinigen und zu pflegen und kann von Hand oder in der Spülmaschine gewaschen werden. Insgesamt ist das konische Champagnerglas ein stilvolles und elegantes Stielglas, das speziell entwickelt wurde, um das Erlebnis beim Trinken von Champagner oder Sekt zu verbessern. Sein einzigartiges Design und die Liebe zum Detail machen es zu einer beliebten Wahl für besondere Anlässe und Feiern.", - }, - ], - "key": "clink-champagne-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Clink_Champagne_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5499, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", + }, + { + "locale": "en-US", + "value": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", + }, + { + "locale": "de-DE", + "value": "Ein konisches Champagnerglas, auch als Champagnerflöte bekannt, ist ein Glas, das speziell entwickelt wurde, um das Erlebnis beim Trinken von Champagner oder Sekt zu verbessern. Das Glas hat einen hohen, schmalen Kelch, der sich nach oben hin verjüngt - schauen Sie zu wie sich die Bläschen in Ihrem Glas tanzen. Der hohe, schlanke Stiel des Glases verhindert das Aufwärmen des Getränks durch Körperwärme. Die Basis des Glases ist breit und flach und sorgt für Stabilität und Balance. Das Design des konisch zulaufenden Sektglases soll das Aroma und den Geschmack des Getränks verstärken. Der schmale Kelch konzentriert die Bläschen und das Aroma des Champagner. Dadurch können Sie den Geschmack des Champagners voll und ganz genießen. Das konische Sektglas wird typischerweise zum Servieren von Sekt oder anderen Schaumweinen verwendet, kann aber auch für andere kohlensäurehaltige Getränke oder Cocktails verwendet werden. Es ist leicht zu reinigen und zu pflegen und kann von Hand oder in der Spülmaschine gewaschen werden. Insgesamt ist das konische Champagnerglas ein stilvolles und elegantes Stielglas, das speziell entwickelt wurde, um das Erlebnis beim Trinken von Champagner oder Sekt zu verbessern. Sein einzigartiges Design und die Liebe zum Detail machen es zu einer beliebten Wahl für besondere Anlässe und Feiern.", }, + ], + "key": "clink-champagne-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Clink_Champagne_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CCG-02", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5499, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Clink Champagne Glass", + }, + { + "locale": "en-GB", + "value": "Clink Champagne Glass", + }, + { + "locale": "de-DE", + "value": "Sektgläser zum Anstoßen", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5499, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "clink-champagne-glass", + }, + { + "locale": "en-GB", + "value": "clink-champagne-glass", + }, + { + "locale": "de-DE", + "value": "sektglas-anstoen", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CCG-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Clink Champagne Glass", - }, - { - "locale": "en-GB", - "value": "Clink Champagne Glass", - }, - { - "locale": "de-DE", - "value": "Sektgläser zum Anstoßen", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "clink-champagne-glass", - }, - { - "locale": "en-GB", - "value": "clink-champagne-glass", - }, - { - "locale": "de-DE", - "value": "sektglas-anstoen", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed.spec.ts index 4e3f485a1..5598d5ba1 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cloud-queen-bed.spec.ts @@ -5,321 +5,321 @@ describe(`with cloudQueenBed preset`, () => { it(`should return a cloudQueenBed preset`, () => { const cloudQueenBedPreset = cloudQueenBed().build(); expect(cloudQueenBedPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "beds", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Queensize-Bett mit Stoffbezug - auch auf dem Kopfteil - ist ein komfortables und elegantes Schlafzimmermöbel. Der Bettrahmen ist rechteckig und groß genug, um eine Standardmatratze in Queen-Size-Größe aufzunehmen. Die Stoffpolsterung bedeckt den gesamten Rahmen und schafft eine glatte und bequeme Oberfläche zum Anlehnen. Das Kopfteil ist das Herzstück des Bettes, mit einer weichen und plüschigen Oberfläche, die einem Kissen ähnelt. Es hat eine rechteckige Form und ist oben am Bettrahmen befestigt und bietet eine bequeme Rückenlehne zum Lesen oder Fernsehen im Bett. Das Kopfteil kann mit dem gleichen Stoff wie der Bettrahmen oder in einer komplementären Farbe oder einem Muster bezogen werden. Insgesamt vereint dieses Bett Komfort und Stil und ist somit eine perfekte Ergänzung für jedes Schlafzimmer.", - "en": undefined, - "en-GB": "A queen-sized bed with fabric upholstery and a pillow-like headboard is a comfortable and elegant piece of bedroom furniture. The bed frame is rectangular and large enough to accommodate a standard queen-sized mattress. The fabric upholstery covers the entire frame, creating a smooth and comfortable surface to lean against. The headboard is the centerpiece of the bed, with a soft and plush surface that resembles a pillow. It is rectangular in shape and attached to the top of the bed frame, providing a comfortable backrest for reading or watching TV in bed. The headboard may be upholstered in the same fabric as the bed frame or in a complementary color or pattern. Overall, this bed combines comfort and style, making it a perfect addition to any bedroom.", - "en-US": "A queen-sized bed with fabric upholstery and a pillow-like headboard is a comfortable and elegant piece of bedroom furniture. The bed frame is rectangular and large enough to accommodate a standard queen-sized mattress. The fabric upholstery covers the entire frame, creating a smooth and comfortable surface to lean against. The headboard is the centerpiece of the bed, with a soft and plush surface that resembles a pillow. It is rectangular in shape and attached to the top of the bed frame, providing a comfortable backrest for reading or watching TV in bed. The headboard may be upholstered in the same fabric as the bed frame or in a complementary color or pattern. Overall, this bed combines comfort and style, making it a perfect addition to any bedroom.", - "fr": undefined, - }, - "key": "cloud-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Hell blau:#ADD8E6", - "en-GB": "Light Blue:#ADD8E6", - "en-US": "Light Blue:#ADD8E6", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Die Montage ist im Preis inbegriffen", - "en-GB": "- Assembly is included", - "en-US": "- Assembly is included", + "categories": [ + { + "key": "beds", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Queensize-Bett mit Stoffbezug - auch auf dem Kopfteil - ist ein komfortables und elegantes Schlafzimmermöbel. Der Bettrahmen ist rechteckig und groß genug, um eine Standardmatratze in Queen-Size-Größe aufzunehmen. Die Stoffpolsterung bedeckt den gesamten Rahmen und schafft eine glatte und bequeme Oberfläche zum Anlehnen. Das Kopfteil ist das Herzstück des Bettes, mit einer weichen und plüschigen Oberfläche, die einem Kissen ähnelt. Es hat eine rechteckige Form und ist oben am Bettrahmen befestigt und bietet eine bequeme Rückenlehne zum Lesen oder Fernsehen im Bett. Das Kopfteil kann mit dem gleichen Stoff wie der Bettrahmen oder in einer komplementären Farbe oder einem Muster bezogen werden. Insgesamt vereint dieses Bett Komfort und Stil und ist somit eine perfekte Ergänzung für jedes Schlafzimmer.", + "en": undefined, + "en-GB": "A queen-sized bed with fabric upholstery and a pillow-like headboard is a comfortable and elegant piece of bedroom furniture. The bed frame is rectangular and large enough to accommodate a standard queen-sized mattress. The fabric upholstery covers the entire frame, creating a smooth and comfortable surface to lean against. The headboard is the centerpiece of the bed, with a soft and plush surface that resembles a pillow. It is rectangular in shape and attached to the top of the bed frame, providing a comfortable backrest for reading or watching TV in bed. The headboard may be upholstered in the same fabric as the bed frame or in a complementary color or pattern. Overall, this bed combines comfort and style, making it a perfect addition to any bedroom.", + "en-US": "A queen-sized bed with fabric upholstery and a pillow-like headboard is a comfortable and elegant piece of bedroom furniture. The bed frame is rectangular and large enough to accommodate a standard queen-sized mattress. The fabric upholstery covers the entire frame, creating a smooth and comfortable surface to lean against. The headboard is the centerpiece of the bed, with a soft and plush surface that resembles a pillow. It is rectangular in shape and attached to the top of the bed frame, providing a comfortable backrest for reading or watching TV in bed. The headboard may be upholstered in the same fabric as the bed frame or in a complementary color or pattern. Overall, this bed combines comfort and style, making it a perfect addition to any bedroom.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3621, - "w": 5000, + "key": "cloud-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Hell blau:#ADD8E6", + "en-GB": "Light Blue:#ADD8E6", + "en-US": "Light Blue:#ADD8E6", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Die Montage ist im Preis inbegriffen", + "en-GB": "- Assembly is included", + "en-US": "- Assembly is included", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3621, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.1.jpeg", + }, + { + "dimensions": { + "h": 3621, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45999, + "currencyCode": "USD", + }, + }, + ], + "sku": "CQB-09", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.1.jpeg", - }, - { - "dimensions": { - "h": 3621, - "w": 5000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Queen-Bett "Cloud"", + "en": undefined, + "en-GB": "Cloud Queen Bed", + "en-US": "Cloud Queen Bed", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "cloud-queen-bett", + "en": undefined, + "en-GB": "cloud-queen-bed", + "en-US": "cloud-queen-bed", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CQB-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Queen-Bett "Cloud"", - "en": undefined, - "en-GB": "Cloud Queen Bed", - "en-US": "Cloud Queen Bed", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "cloud-queen-bett", - "en": undefined, - "en-GB": "cloud-queen-bed", - "en-US": "cloud-queen-bed", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a cloudQueenBed preset when built for graphql`, () => { const cloudQueenBedPresetGraphql = cloudQueenBed().buildGraphql(); expect(cloudQueenBedPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "beds", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A queen-sized bed with fabric upholstery and a pillow-like headboard is a comfortable and elegant piece of bedroom furniture. The bed frame is rectangular and large enough to accommodate a standard queen-sized mattress. The fabric upholstery covers the entire frame, creating a smooth and comfortable surface to lean against. The headboard is the centerpiece of the bed, with a soft and plush surface that resembles a pillow. It is rectangular in shape and attached to the top of the bed frame, providing a comfortable backrest for reading or watching TV in bed. The headboard may be upholstered in the same fabric as the bed frame or in a complementary color or pattern. Overall, this bed combines comfort and style, making it a perfect addition to any bedroom.", - }, - { - "locale": "en-US", - "value": "A queen-sized bed with fabric upholstery and a pillow-like headboard is a comfortable and elegant piece of bedroom furniture. The bed frame is rectangular and large enough to accommodate a standard queen-sized mattress. The fabric upholstery covers the entire frame, creating a smooth and comfortable surface to lean against. The headboard is the centerpiece of the bed, with a soft and plush surface that resembles a pillow. It is rectangular in shape and attached to the top of the bed frame, providing a comfortable backrest for reading or watching TV in bed. The headboard may be upholstered in the same fabric as the bed frame or in a complementary color or pattern. Overall, this bed combines comfort and style, making it a perfect addition to any bedroom.", - }, - { - "locale": "de-DE", - "value": "Ein Queensize-Bett mit Stoffbezug - auch auf dem Kopfteil - ist ein komfortables und elegantes Schlafzimmermöbel. Der Bettrahmen ist rechteckig und groß genug, um eine Standardmatratze in Queen-Size-Größe aufzunehmen. Die Stoffpolsterung bedeckt den gesamten Rahmen und schafft eine glatte und bequeme Oberfläche zum Anlehnen. Das Kopfteil ist das Herzstück des Bettes, mit einer weichen und plüschigen Oberfläche, die einem Kissen ähnelt. Es hat eine rechteckige Form und ist oben am Bettrahmen befestigt und bietet eine bequeme Rückenlehne zum Lesen oder Fernsehen im Bett. Das Kopfteil kann mit dem gleichen Stoff wie der Bettrahmen oder in einer komplementären Farbe oder einem Muster bezogen werden. Insgesamt vereint dieses Bett Komfort und Stil und ist somit eine perfekte Ergänzung für jedes Schlafzimmer.", - }, - ], - "key": "cloud-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Light Blue:#ADD8E6","de-DE":"Hell blau:#ADD8E6","en-US":"Light Blue:#ADD8E6"}", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Assembly is included","de-DE":"- Die Montage ist im Preis inbegriffen","en-US":"- Assembly is included"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3621, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.1.jpeg", - }, { - "dimensions": { - "height": 3621, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45999, - "currencyCode": "EUR", + "categories": [ + { + "key": "beds", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A queen-sized bed with fabric upholstery and a pillow-like headboard is a comfortable and elegant piece of bedroom furniture. The bed frame is rectangular and large enough to accommodate a standard queen-sized mattress. The fabric upholstery covers the entire frame, creating a smooth and comfortable surface to lean against. The headboard is the centerpiece of the bed, with a soft and plush surface that resembles a pillow. It is rectangular in shape and attached to the top of the bed frame, providing a comfortable backrest for reading or watching TV in bed. The headboard may be upholstered in the same fabric as the bed frame or in a complementary color or pattern. Overall, this bed combines comfort and style, making it a perfect addition to any bedroom.", + }, + { + "locale": "en-US", + "value": "A queen-sized bed with fabric upholstery and a pillow-like headboard is a comfortable and elegant piece of bedroom furniture. The bed frame is rectangular and large enough to accommodate a standard queen-sized mattress. The fabric upholstery covers the entire frame, creating a smooth and comfortable surface to lean against. The headboard is the centerpiece of the bed, with a soft and plush surface that resembles a pillow. It is rectangular in shape and attached to the top of the bed frame, providing a comfortable backrest for reading or watching TV in bed. The headboard may be upholstered in the same fabric as the bed frame or in a complementary color or pattern. Overall, this bed combines comfort and style, making it a perfect addition to any bedroom.", + }, + { + "locale": "de-DE", + "value": "Ein Queensize-Bett mit Stoffbezug - auch auf dem Kopfteil - ist ein komfortables und elegantes Schlafzimmermöbel. Der Bettrahmen ist rechteckig und groß genug, um eine Standardmatratze in Queen-Size-Größe aufzunehmen. Die Stoffpolsterung bedeckt den gesamten Rahmen und schafft eine glatte und bequeme Oberfläche zum Anlehnen. Das Kopfteil ist das Herzstück des Bettes, mit einer weichen und plüschigen Oberfläche, die einem Kissen ähnelt. Es hat eine rechteckige Form und ist oben am Bettrahmen befestigt und bietet eine bequeme Rückenlehne zum Lesen oder Fernsehen im Bett. Das Kopfteil kann mit dem gleichen Stoff wie der Bettrahmen oder in einer komplementären Farbe oder einem Muster bezogen werden. Insgesamt vereint dieses Bett Komfort und Stil und ist somit eine perfekte Ergänzung für jedes Schlafzimmer.", }, + ], + "key": "cloud-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Light Blue:#ADD8E6","de-DE":"Hell blau:#ADD8E6","en-US":"Light Blue:#ADD8E6"}", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Assembly is included","de-DE":"- Die Montage ist im Preis inbegriffen","en-US":"- Assembly is included"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3621, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.1.jpeg", + }, + { + "dimensions": { + "height": 3621, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cloud_Queen_Bed-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CQB-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Cloud Queen Bed", + }, + { + "locale": "en-GB", + "value": "Cloud Queen Bed", + }, + { + "locale": "de-DE", + "value": "Queen-Bett "Cloud"", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "cloud-queen-bed", + }, + { + "locale": "en-GB", + "value": "cloud-queen-bed", + }, + { + "locale": "de-DE", + "value": "cloud-queen-bett", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CQB-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Cloud Queen Bed", - }, - { - "locale": "en-GB", - "value": "Cloud Queen Bed", - }, - { - "locale": "de-DE", - "value": "Queen-Bett "Cloud"", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "cloud-queen-bed", - }, - { - "locale": "en-GB", - "value": "cloud-queen-bed", - }, - { - "locale": "de-DE", - "value": "cloud-queen-bett", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug.spec.ts index 5ce019ce2..a84cd8a37 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cobblestone-rug.spec.ts @@ -4,305 +4,305 @@ describe(`with cobblestoneRug preset`, () => { it('should return a sample cobblestoneRug product preset', () => { const cobblestoneRugPreset = cobblestoneRug().build(); expect(cobblestoneRugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Strukturteppich kann in einer Vielzahl von Räumen verwendet werden, von Wohnzimmern über Schlafzimmer bis hin zu Heimbüros. Er ist besonders beliebt in modernen und zeitgenössischen Einrichtungsstilen. Hier kann er ein mutiger und grafischer Hingucker sein. Insgesamt ist ein Teppich mit geometrischen Akzenten eine stilvolle und vielseitige Designwahl, die jedem Raum im Haus visuelles Interesse und Textur verleihen kann.", - "en": undefined, - "en-GB": "The Cobblestone Rug can be used in a variety of spaces, from living rooms to bedrooms to home offices. It is especially popular in modern and contemporary decor styles, where they can add a bold and graphic element to the space. Overall, a geometric accent rug is a stylish and versatile design choice that can add visual interest and texture to any room in the home.", - "en-US": "The Cobblestone Rug can be used in a variety of spaces, from living rooms to bedrooms to home offices. It is especially popular in modern and contemporary decor styles, where they can add a bold and graphic element to the space. Overall, a geometric accent rug is a stylish and versatile design choice that can add visual interest and texture to any room in the home.", - "fr": undefined, - }, - "key": "cobblestone-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- 5 Fuß x 3 Fuß", - "en-GB": "- 5ft x 3ft", - "en-US": "- 5ft x 3ft", + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Strukturteppich kann in einer Vielzahl von Räumen verwendet werden, von Wohnzimmern über Schlafzimmer bis hin zu Heimbüros. Er ist besonders beliebt in modernen und zeitgenössischen Einrichtungsstilen. Hier kann er ein mutiger und grafischer Hingucker sein. Insgesamt ist ein Teppich mit geometrischen Akzenten eine stilvolle und vielseitige Designwahl, die jedem Raum im Haus visuelles Interesse und Textur verleihen kann.", + "en": undefined, + "en-GB": "The Cobblestone Rug can be used in a variety of spaces, from living rooms to bedrooms to home offices. It is especially popular in modern and contemporary decor styles, where they can add a bold and graphic element to the space. Overall, a geometric accent rug is a stylish and versatile design choice that can add visual interest and texture to any room in the home.", + "en-US": "The Cobblestone Rug can be used in a variety of spaces, from living rooms to bedrooms to home offices. It is especially popular in modern and contemporary decor styles, where they can add a bold and graphic element to the space. Overall, a geometric accent rug is a stylish and versatile design choice that can add visual interest and texture to any room in the home.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", + "key": "cobblestone-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 5 Fuß x 3 Fuß", + "en-GB": "- 5ft x 3ft", + "en-US": "- 5ft x 3ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2820, + "w": 7006, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cobblestone_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "USD", + }, + }, + ], + "sku": "CR-098", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2820, - "w": 7006, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Strukturteppich "Kopfsteinpflaster"", + "en": undefined, + "en-GB": "Cobblestone Rug", + "en-US": "Cobblestone Rug", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cobblestone_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "kopfsteinpflaster", + "en": undefined, + "en-GB": "cobblestone-rug", + "en-US": "cobblestone-rug", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CR-098", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Strukturteppich "Kopfsteinpflaster"", - "en": undefined, - "en-GB": "Cobblestone Rug", - "en-US": "Cobblestone Rug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "kopfsteinpflaster", - "en": undefined, - "en-GB": "cobblestone-rug", - "en-US": "cobblestone-rug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it('should return a sample cobblestoneRug product preset when built for Graphql', () => { const cobblestoneRugPresetGraphql = cobblestoneRug().buildGraphql(); expect(cobblestoneRugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "de-DE", - "value": "Dieser Strukturteppich kann in einer Vielzahl von Räumen verwendet werden, von Wohnzimmern über Schlafzimmer bis hin zu Heimbüros. Er ist besonders beliebt in modernen und zeitgenössischen Einrichtungsstilen. Hier kann er ein mutiger und grafischer Hingucker sein. Insgesamt ist ein Teppich mit geometrischen Akzenten eine stilvolle und vielseitige Designwahl, die jedem Raum im Haus visuelles Interesse und Textur verleihen kann.", - }, - { - "locale": "en-GB", - "value": "The Cobblestone Rug can be used in a variety of spaces, from living rooms to bedrooms to home offices. It is especially popular in modern and contemporary decor styles, where they can add a bold and graphic element to the space. Overall, a geometric accent rug is a stylish and versatile design choice that can add visual interest and texture to any room in the home.", - }, - { - "locale": "en-US", - "value": "The Cobblestone Rug can be used in a variety of spaces, from living rooms to bedrooms to home offices. It is especially popular in modern and contemporary decor styles, where they can add a bold and graphic element to the space. Overall, a geometric accent rug is a stylish and versatile design choice that can add visual interest and texture to any room in the home.", - }, - ], - "key": "cobblestone-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 5ft x 3ft","de-DE":"- 5 Fuß x 3 Fuß","en-US":"- 5ft x 3ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2820, - "width": 7006, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cobblestone_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "EUR", + "categories": [ + { + "key": "rugs", + "typeId": "category", }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "de-DE", + "value": "Dieser Strukturteppich kann in einer Vielzahl von Räumen verwendet werden, von Wohnzimmern über Schlafzimmer bis hin zu Heimbüros. Er ist besonders beliebt in modernen und zeitgenössischen Einrichtungsstilen. Hier kann er ein mutiger und grafischer Hingucker sein. Insgesamt ist ein Teppich mit geometrischen Akzenten eine stilvolle und vielseitige Designwahl, die jedem Raum im Haus visuelles Interesse und Textur verleihen kann.", + }, + { + "locale": "en-GB", + "value": "The Cobblestone Rug can be used in a variety of spaces, from living rooms to bedrooms to home offices. It is especially popular in modern and contemporary decor styles, where they can add a bold and graphic element to the space. Overall, a geometric accent rug is a stylish and versatile design choice that can add visual interest and texture to any room in the home.", + }, + { + "locale": "en-US", + "value": "The Cobblestone Rug can be used in a variety of spaces, from living rooms to bedrooms to home offices. It is especially popular in modern and contemporary decor styles, where they can add a bold and graphic element to the space. Overall, a geometric accent rug is a stylish and versatile design choice that can add visual interest and texture to any room in the home.", + }, + ], + "key": "cobblestone-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 5ft x 3ft","de-DE":"- 5 Fuß x 3 Fuß","en-US":"- 5ft x 3ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2820, + "width": 7006, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cobblestone_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CR-098", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Cobblestone Rug", }, + { + "locale": "en-GB", + "value": "Cobblestone Rug", + }, + { + "locale": "de-DE", + "value": "Strukturteppich "Kopfsteinpflaster"", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "cobblestone-rug", + }, + { + "locale": "de-DE", + "value": "kopfsteinpflaster", + }, + { + "locale": "en-US", + "value": "cobblestone-rug", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CR-098", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Cobblestone Rug", - }, - { - "locale": "en-GB", - "value": "Cobblestone Rug", - }, - { - "locale": "de-DE", - "value": "Strukturteppich "Kopfsteinpflaster"", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "cobblestone-rug", - }, - { - "locale": "de-DE", - "value": "kopfsteinpflaster", - }, - { - "locale": "en-US", - "value": "cobblestone-rug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set.spec.ts index bd5372855..ee34d6665 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker-set.spec.ts @@ -4,147 +4,147 @@ describe(`with cocktailShakerSet preset`, () => { it('should return a sample cocktailShakerSet product preset', () => { const cocktailShakerSetPreset = cocktailShakerSet().build(); expect(cocktailShakerSetPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses Set für die Cocktailzubereitung umfasst einen Shaker, ein Sieb, einen Jigger und eine Zange, die alle aus vergoldetem Edelstahl bestehen. Der Shaker ist ein zweiteiliger Behälter mit einem Deckel, der fest sitzt, um ein Verschütten zu verhindern. Das Sieb passt über die Oberseite des Shakers, um feste Zutaten oder Eis aus dem Cocktail zu entfernen, wenn er in das Glas gegossen wird. Der Jigger ist ein kleiner Messbecher, der dabei hilft, die Zutaten präzise abzumessen. Das Gold-Finish verleiht dem Set ein luxuriöses, elegantes Aussehen, das sich perfekt für die Unterhaltung oder die Zubereitung besonderer Cocktails zu Hause eignet.", - "en": undefined, - "en-GB": "This cocktail making set includes a shaker, strainer, a jigger, and tongs, all of which are made of stainless steel with a gold-plated finish. The shaker is a two-piece container with a lid that fits tightly to prevent spillage. The strainer fits over the top of the shaker to remove any solid ingredients or ice from the cocktail as it's poured into the glass. The jigger is a small measuring cup that helps ensure precise measurements of ingredients. The gold finish gives the set a luxurious, elegant look that's perfect for entertaining or creating special cocktails at home.", - "en-US": "This cocktail making set includes a shaker, strainer, a jigger, and tongs, all of which are made of stainless steel with a gold-plated finish. The shaker is a two-piece container with a lid that fits tightly to prevent spillage. The strainer fits over the top of the shaker to remove any solid ingredients or ice from the cocktail as it's poured into the glass. The jigger is a small measuring cup that helps ensure precise measurements of ingredients. The gold finish gives the set a luxurious, elegant look that's perfect for entertaining or creating special cocktails at home.", - "fr": undefined, - }, - "key": "cocktail-shaker-set", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Handwäsche nur", - "en-GB": "- Stainless steel -- Hand wash only", - "en-US": "- Stainless steel -- Hand wash only", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses Set für die Cocktailzubereitung umfasst einen Shaker, ein Sieb, einen Jigger und eine Zange, die alle aus vergoldetem Edelstahl bestehen. Der Shaker ist ein zweiteiliger Behälter mit einem Deckel, der fest sitzt, um ein Verschütten zu verhindern. Das Sieb passt über die Oberseite des Shakers, um feste Zutaten oder Eis aus dem Cocktail zu entfernen, wenn er in das Glas gegossen wird. Der Jigger ist ein kleiner Messbecher, der dabei hilft, die Zutaten präzise abzumessen. Das Gold-Finish verleiht dem Set ein luxuriöses, elegantes Aussehen, das sich perfekt für die Unterhaltung oder die Zubereitung besonderer Cocktails zu Hause eignet.", + "en": undefined, + "en-GB": "This cocktail making set includes a shaker, strainer, a jigger, and tongs, all of which are made of stainless steel with a gold-plated finish. The shaker is a two-piece container with a lid that fits tightly to prevent spillage. The strainer fits over the top of the shaker to remove any solid ingredients or ice from the cocktail as it's poured into the glass. The jigger is a small measuring cup that helps ensure precise measurements of ingredients. The gold finish gives the set a luxurious, elegant look that's perfect for entertaining or creating special cocktails at home.", + "en-US": "This cocktail making set includes a shaker, strainer, a jigger, and tongs, all of which are made of stainless steel with a gold-plated finish. The shaker is a two-piece container with a lid that fits tightly to prevent spillage. The strainer fits over the top of the shaker to remove any solid ingredients or ice from the cocktail as it's poured into the glass. The jigger is a small measuring cup that helps ensure precise measurements of ingredients. The gold finish gives the set a luxurious, elegant look that's perfect for entertaining or creating special cocktails at home.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", + "key": "cocktail-shaker-set", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Handwäsche nur", + "en-GB": "- Stainless steel + - Hand wash only", + "en-US": "- Stainless steel + - Hand wash only", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5334, + "w": 4929, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker_Set-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + ], + "sku": "COC-0843", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5334, - "w": 4929, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Cocktail Shaker Set", + "en": undefined, + "en-GB": "Cocktail Shaker Set", + "en-US": "Cocktail Shaker Set", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker_Set-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "cocktail-shaker-set", + "en": undefined, + "en-GB": "cocktail-shaker-set", + "en-US": "cocktail-shaker-set", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "COC-0843", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Cocktail Shaker Set", - "en": undefined, - "en-GB": "Cocktail Shaker Set", - "en-US": "Cocktail Shaker Set", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "cocktail-shaker-set", - "en": undefined, - "en-GB": "cocktail-shaker-set", - "en-US": "cocktail-shaker-set", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker.spec.ts index d1f9d7f3a..aa29e0103 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-shaker.spec.ts @@ -4,158 +4,158 @@ describe(`with cocktailShaker preset`, () => { it('should return a sample cocktailShaker product preset', () => { const cocktailShakerPreset = cocktailShaker().build(); expect(cocktailShakerPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Cocktailshaker ist ein Werkzeug, das zum Mischen und Zubereiten von alkoholischen Getränken wie Cocktails verwendet wird. Es ist ein Metallbehälter mit einem Deckel, der dicht abschließt, um ein Verschütten zu verhindern. Der Behälter hat eine sich verjüngende Form mit einer breiteren Basis und einer schmaleren Oberseite. Dieses Design ermöglicht ein einfaches Mischen der Zutaten durch Schütteln. Der Deckel hat ein eingebautes Sieb, um die Flüssigkeit vom Eis und anderen festen Zutaten zu trennen. Material: Edelstahöl", - "en": undefined, - "en-GB": "A cocktail shaker is a tool used in mixing and preparing alcoholic beverages such as cocktails. It is a metal container with a lid that seals tightly to prevent spills. The container has a tapered shape, with a wider base and a narrower top. This design allows for easy mixing of ingredients by shaking them together. The lid has a built-in strainer to separate the liquid from the ice and other solid ingredients. The shaker is made of stainless steel.", - "en-US": "A cocktail shaker is a tool used in mixing and preparing alcoholic beverages such as cocktails. It is a metal container with a lid that seals tightly to prevent spills. The container has a tapered shape, with a wider base and a narrower top. This design allows for easy mixing of ingredients by shaking them together. The lid has a built-in strainer to separate the liquid from the ice and other solid ingredients. The shaker is made of stainless steel.", - "fr": undefined, - }, - "key": "cocktail-shaker", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Inklusive eingebautem Sieb -- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Includes built in strainer -- Stainless steel -- Dishwasher safe", - "en-US": "- Includes built in strainer -- Stainless steel -- Dishwasher safe", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Cocktailshaker ist ein Werkzeug, das zum Mischen und Zubereiten von alkoholischen Getränken wie Cocktails verwendet wird. Es ist ein Metallbehälter mit einem Deckel, der dicht abschließt, um ein Verschütten zu verhindern. Der Behälter hat eine sich verjüngende Form mit einer breiteren Basis und einer schmaleren Oberseite. Dieses Design ermöglicht ein einfaches Mischen der Zutaten durch Schütteln. Der Deckel hat ein eingebautes Sieb, um die Flüssigkeit vom Eis und anderen festen Zutaten zu trennen. Material: Edelstahöl", + "en": undefined, + "en-GB": "A cocktail shaker is a tool used in mixing and preparing alcoholic beverages such as cocktails. It is a metal container with a lid that seals tightly to prevent spills. The container has a tapered shape, with a wider base and a narrower top. This design allows for easy mixing of ingredients by shaking them together. The lid has a built-in strainer to separate the liquid from the ice and other solid ingredients. The shaker is made of stainless steel.", + "en-US": "A cocktail shaker is a tool used in mixing and preparing alcoholic beverages such as cocktails. It is a metal container with a lid that seals tightly to prevent spills. The container has a tapered shape, with a wider base and a narrower top. This design allows for easy mixing of ingredients by shaking them together. The lid has a built-in strainer to separate the liquid from the ice and other solid ingredients. The shaker is made of stainless steel.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "key": "cocktail-shaker", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Inklusive eingebautem Sieb + - Edelstahl + - Spülmaschinenfest", + "en-GB": "- Includes built in strainer + - Stainless steel + - Dishwasher safe", + "en-US": "- Includes built in strainer + - Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5500, + "w": 3850, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.1.jpeg", + }, + { + "dimensions": { + "h": 3750, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "USD", + }, + }, + ], + "sku": "COCT-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5500, - "w": 3850, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Cocktail Shaker", + "en": undefined, + "en-GB": "Cocktail Shaker", + "en-US": "Cocktail Shaker", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.1.jpeg", - }, - { - "dimensions": { - "h": 3750, - "w": 5000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Shaker-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "cocktail-shaker", + "en": undefined, + "en-GB": "cocktail-shaker", + "en-US": "cocktail-shaker", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "COCT-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Cocktail Shaker", - "en": undefined, - "en-GB": "Cocktail Shaker", - "en-US": "Cocktail Shaker", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "cocktail-shaker", - "en": undefined, - "en-GB": "cocktail-shaker", - "en-US": "cocktail-shaker", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon.spec.ts index 06368eb27..c8e849f88 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-stirring-spoon.spec.ts @@ -5,147 +5,147 @@ describe(`with cocktailStirringSpoon preset`, () => { const cocktailStirringSpoonPreset = cocktailStirringSpoon().build(); expect(cocktailStirringSpoonPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Cocktail-Rührlöffel ist ein schlankes Utensil aus Edelstahl, das zum Rühren und Mixen von Cocktails verwendet wird. Er ist etwa 8 cm lang und mit einem kleinen, flachen, scheibenförmigen Ende zum Vermischen von Zutaten und einem gedrehten oder spiralförmigen Griff zum einfachen Greifen versehen. Der gedrehte Griff dient nicht nur der Dekoration, sondern verhilft auch zu einem besseren Halt beim Mixen von Cocktails.", - "en": undefined, - "en-GB": "A cocktail stirring spoon is a long and slender utensil, made of stainless steel, used for stirring and mixing cocktails. It is usually around 8 inches long with a small, flat disc-shaped end for muddling ingredients and a twisted or spiraled handle for easy gripping. The twisted handle is not just for decoration, but also helps to create a better grip when mixing cocktails.", - "en-US": "A cocktail stirring spoon is a long and slender utensil, made of stainless steel, used for stirring and mixing cocktails. It is usually around 8 inches long with a small, flat disc-shaped end for muddling ingredients and a twisted or spiraled handle for easy gripping. The twisted handle is not just for decoration, but also helps to create a better grip when mixing cocktails.", - "fr": undefined, - }, - "key": "cocktail-stirring-spoon", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Stainless steel -- Dishwasher safe", - "en-US": "- Stainless steel -- Dishwasher safe", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Cocktail-Rührlöffel ist ein schlankes Utensil aus Edelstahl, das zum Rühren und Mixen von Cocktails verwendet wird. Er ist etwa 8 cm lang und mit einem kleinen, flachen, scheibenförmigen Ende zum Vermischen von Zutaten und einem gedrehten oder spiralförmigen Griff zum einfachen Greifen versehen. Der gedrehte Griff dient nicht nur der Dekoration, sondern verhilft auch zu einem besseren Halt beim Mixen von Cocktails.", + "en": undefined, + "en-GB": "A cocktail stirring spoon is a long and slender utensil, made of stainless steel, used for stirring and mixing cocktails. It is usually around 8 inches long with a small, flat disc-shaped end for muddling ingredients and a twisted or spiraled handle for easy gripping. The twisted handle is not just for decoration, but also helps to create a better grip when mixing cocktails.", + "en-US": "A cocktail stirring spoon is a long and slender utensil, made of stainless steel, used for stirring and mixing cocktails. It is usually around 8 inches long with a small, flat disc-shaped end for muddling ingredients and a twisted or spiraled handle for easy gripping. The twisted handle is not just for decoration, but also helps to create a better grip when mixing cocktails.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "key": "cocktail-stirring-spoon", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Spülmaschinenfest", + "en-GB": "- Stainless steel + - Dishwasher safe", + "en-US": "- Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4555, + "w": 5757, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Stirring_Spoon-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + ], + "sku": "SPOO-094", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4555, - "w": 5757, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Cocktail-Rührlöffel", + "en": undefined, + "en-GB": "Cocktail Stirring Spoon", + "en-US": "Cocktail Stirring Spoon", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Stirring_Spoon-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "cocktail-rhrlffel", + "en": undefined, + "en-GB": "cocktail-stirring-spoon", + "en-US": "cocktail-stirring-spoon", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SPOO-094", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Cocktail-Rührlöffel", - "en": undefined, - "en-GB": "Cocktail Stirring Spoon", - "en-US": "Cocktail Stirring Spoon", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "cocktail-rhrlffel", - "en": undefined, - "en-GB": "cocktail-stirring-spoon", - "en-US": "cocktail-stirring-spoon", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer.spec.ts index 2da6e1911..8825a1067 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocktail-strainer.spec.ts @@ -4,155 +4,155 @@ describe(`with cocktailStrainer preset`, () => { it('should return a sample cocktailStrainer product preset', () => { const cocktailStrainerPreset = cocktailStrainer().build(); expect(cocktailStrainerPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses Sieb für Cocktailshaker ist ein Barwerkzeug, das verwendet wird, um Eis und andere feste Zutaten aus Mixgetränken zu trennen, während der flüssige Teil des Cocktails in ein Servierglas gegossen wird. Das Sieb besteht aus Metall und passt über die Öffnung eines klassischen Cocktail-Shakers. Das Sieb wird an Ort und Stelle gehalten, indem man einen Finger über den kleinen, griffartigen Vorsprung auf einer Seite des Siebes legt, während man die Flüssigkeit durch die größere Öffnung auf der anderen Seite ausgießt. Das Sieb hilft dabei, kleine Eis- oder Fruchtstücke herauszufiltern, die in der Mischung zurückbleiben könnten, was zu einem smoothen und raffinierten Cocktail führt. Das Sieb hat auch eine Feder um den Rand, die hilft, es sicher über dem Shaker zu halten und so ein Verschütten oder Tropfen zu verhindern.", - "en": undefined, - "en-GB": "A strainer for cocktail shakers is a bar tool used to strain ice and other solid ingredients from mixed drinks, while pouring the liquid portion of the cocktail into a serving glass. It is made of metal, with a flat, perforated disc that fits over the mouth of the shaker. The strainer is held in place by placing a finger over the small, handle-like protrusion on one side of the disc, while pouring the liquid out through the larger opening on the other side. The perforated disc helps to filter out any small bits of ice or fruit that might be left in the mixture, resulting in a smooth and refined cocktail. The strainer also has a spring around the edge of the disc that helps to hold it securely in place over the shaker, preventing any spills or drips.", - "en-US": "A strainer for cocktail shakers is a bar tool used to strain ice and other solid ingredients from mixed drinks, while pouring the liquid portion of the cocktail into a serving glass. It is made of metal, with a flat, perforated disc that fits over the mouth of the shaker. The strainer is held in place by placing a finger over the small, handle-like protrusion on one side of the disc, while pouring the liquid out through the larger opening on the other side. The perforated disc helps to filter out any small bits of ice or fruit that might be left in the mixture, resulting in a smooth and refined cocktail. The strainer also has a spring around the edge of the disc that helps to hold it securely in place over the shaker, preventing any spills or drips.", - "fr": undefined, - }, - "key": "cocktail-strainer", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Stainless steel -- Dishwasher safe", - "en-US": "- Stainless steel -- Dishwasher safe", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses Sieb für Cocktailshaker ist ein Barwerkzeug, das verwendet wird, um Eis und andere feste Zutaten aus Mixgetränken zu trennen, während der flüssige Teil des Cocktails in ein Servierglas gegossen wird. Das Sieb besteht aus Metall und passt über die Öffnung eines klassischen Cocktail-Shakers. Das Sieb wird an Ort und Stelle gehalten, indem man einen Finger über den kleinen, griffartigen Vorsprung auf einer Seite des Siebes legt, während man die Flüssigkeit durch die größere Öffnung auf der anderen Seite ausgießt. Das Sieb hilft dabei, kleine Eis- oder Fruchtstücke herauszufiltern, die in der Mischung zurückbleiben könnten, was zu einem smoothen und raffinierten Cocktail führt. Das Sieb hat auch eine Feder um den Rand, die hilft, es sicher über dem Shaker zu halten und so ein Verschütten oder Tropfen zu verhindern.", + "en": undefined, + "en-GB": "A strainer for cocktail shakers is a bar tool used to strain ice and other solid ingredients from mixed drinks, while pouring the liquid portion of the cocktail into a serving glass. It is made of metal, with a flat, perforated disc that fits over the mouth of the shaker. The strainer is held in place by placing a finger over the small, handle-like protrusion on one side of the disc, while pouring the liquid out through the larger opening on the other side. The perforated disc helps to filter out any small bits of ice or fruit that might be left in the mixture, resulting in a smooth and refined cocktail. The strainer also has a spring around the edge of the disc that helps to hold it securely in place over the shaker, preventing any spills or drips.", + "en-US": "A strainer for cocktail shakers is a bar tool used to strain ice and other solid ingredients from mixed drinks, while pouring the liquid portion of the cocktail into a serving glass. It is made of metal, with a flat, perforated disc that fits over the mouth of the shaker. The strainer is held in place by placing a finger over the small, handle-like protrusion on one side of the disc, while pouring the liquid out through the larger opening on the other side. The perforated disc helps to filter out any small bits of ice or fruit that might be left in the mixture, resulting in a smooth and refined cocktail. The strainer also has a spring around the edge of the disc that helps to hold it securely in place over the shaker, preventing any spills or drips.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "key": "cocktail-strainer", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Spülmaschinenfest", + "en-GB": "- Stainless steel + - Dishwasher safe", + "en-US": "- Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3648, + "w": 5472, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.1.jpeg", + }, + { + "dimensions": { + "h": 5472, + "w": 3648, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "STRA-095", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3648, - "w": 5472, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Cocktailsieb", + "en": undefined, + "en-GB": "Cocktail Strainer", + "en-US": "Cocktail Strainer", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.1.jpeg", - }, - { - "dimensions": { - "h": 5472, - "w": 3648, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocktail_Strainer-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "cocktailsieb", + "en": undefined, + "en-GB": "cocktail-strainer", + "en-US": "cocktail-strainer", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "STRA-095", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Cocktailsieb", - "en": undefined, - "en-GB": "Cocktail Strainer", - "en-US": "Cocktail Strainer", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "cocktailsieb", - "en": undefined, - "en-GB": "cocktail-strainer", - "en-US": "cocktail-strainer", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover.spec.ts index 44afa84a6..08fb56035 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cocoa-pillow-cover.spec.ts @@ -4,143 +4,143 @@ describe(`with cocoaPillowCover preset`, () => { it('should return a sample cocoaPillowCover product preset', () => { const cocoaPillowCoverPreset = cocoaPillowCover().build(); expect(cocoaPillowCoverPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser quadratische Kissenbezug aus Leinen besteht aus einem natürlichen Leinenstoff, der für seine Haltbarkeit, Atmungsaktivität und seinen klassischen Look bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein quadratisches Kissen in Standardgröße passt, normalerweise etwa 30cm im Quadrat. Der Leinenstoff hat eine weiche und leicht strukturierte Oberfläche, die dem Kissen ein gemütliches und einladendes Gefühl verleiht. Die Kanten des Kissenbezugs sind mit einer Paspelierung versehen, was dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird verwendet, um einem Raum einen Hauch von Wärme und natürlicher Eleganz zu verleihen, egal ob er auf einem Bett, einem Sofa oder einem Sessel platziert wird. Er kann alleine verwendet oder mit anderen dekorativen Kissen in verschiedenen Formen und Farben kombiniert werden, um einen mehrschichtigen und zusammenhängenden Look zu schaffen. Dieser quadratische Kissenbezug aus Leinen ein vielseitiges und zeitloses Accessoire, das den Komfort und Stil jedes Raums im Haus verbessern kann.", - "en": undefined, - "en-GB": "A square linen pillowcase is a type of textile covering for a square-shaped pillow that is typically used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size square pillow, usually around 18 inches square. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are finished with a neat hem or piping, which adds a polished look to the overall design. The pillowcase is used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a square linen pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", - "en-US": "A square linen pillowcase is a type of textile covering for a square-shaped pillow that is typically used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size square pillow, usually around 18 inches square. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are finished with a neat hem or piping, which adds a polished look to the overall design. The pillowcase is used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a square linen pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", - "fr": undefined, - }, - "key": "cocoa-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", + "categories": [ + { + "key": "bedding", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser quadratische Kissenbezug aus Leinen besteht aus einem natürlichen Leinenstoff, der für seine Haltbarkeit, Atmungsaktivität und seinen klassischen Look bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein quadratisches Kissen in Standardgröße passt, normalerweise etwa 30cm im Quadrat. Der Leinenstoff hat eine weiche und leicht strukturierte Oberfläche, die dem Kissen ein gemütliches und einladendes Gefühl verleiht. Die Kanten des Kissenbezugs sind mit einer Paspelierung versehen, was dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird verwendet, um einem Raum einen Hauch von Wärme und natürlicher Eleganz zu verleihen, egal ob er auf einem Bett, einem Sofa oder einem Sessel platziert wird. Er kann alleine verwendet oder mit anderen dekorativen Kissen in verschiedenen Formen und Farben kombiniert werden, um einen mehrschichtigen und zusammenhängenden Look zu schaffen. Dieser quadratische Kissenbezug aus Leinen ein vielseitiges und zeitloses Accessoire, das den Komfort und Stil jedes Raums im Haus verbessern kann.", + "en": undefined, + "en-GB": "A square linen pillowcase is a type of textile covering for a square-shaped pillow that is typically used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size square pillow, usually around 18 inches square. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are finished with a neat hem or piping, which adds a polished look to the overall design. The pillowcase is used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a square linen pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", + "en-US": "A square linen pillowcase is a type of textile covering for a square-shaped pillow that is typically used to add visual interest and texture to a room. It is made from a natural linen fabric, which is known for its durability, breathability, and classic look. The pillowcase is designed to fit over a standard size square pillow, usually around 18 inches square. The linen fabric has a soft and slightly textured surface that adds a cozy and inviting feel to the pillow. The edges of the pillowcase are finished with a neat hem or piping, which adds a polished look to the overall design. The pillowcase is used to add a touch of warmth and natural elegance to a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different shapes and colors to create a layered and cohesive look. Overall, a square linen pillowcase is a versatile and timeless accent piece that can enhance the comfort and style of any room in the home.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "key": "cocoa-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocoa_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + ], + "sku": "BLPC-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Kissenbezug "Kakao"", + "en": undefined, + "en-GB": "Cocoa Pillow Cover", + "en-US": "Cocoa Pillow Cover", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cocoa_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "kakao-kissenbezug", + "en": undefined, + "en-GB": "cocoa-pillow-cover", + "en-US": "cocoa-pillow-cover", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BLPC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Kissenbezug "Kakao"", - "en": undefined, - "en-GB": "Cocoa Pillow Cover", - "en-US": "Cocoa Pillow Cover", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "kakao-kissenbezug", - "en": undefined, - "en-GB": "cocoa-pillow-cover", - "en-US": "cocoa-pillow-cover", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug.spec.ts index 7d5dadcfc..c1fdae940 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/comfort-coffee-mug.spec.ts @@ -4,150 +4,165 @@ describe(`with comfortCoffeeMug preset`, () => { it('should return a sample comfortCoffeeMug product preset', () => { const comfortCoffeeMugPreset = comfortCoffeeMug().build(); expect(comfortCoffeeMugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Unsere Komfort-Kaffeestasse ist aus Keramik gefertigt. Das Design der Tasse die für ein optimales Trinkerlebenis optimiert - unter anderem durch einen Griff auf einer Seite für bequemen Halt. Der Becher ist schlicht und sein zeitloses Design ist einfach und funktional. Die Komfort-Kaffeetasse ist leicht zu reinigen und zu pflegen. Sie kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Diese Komfort-Kaffeetasse ist ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Kaffeegenuss zu Hause oder am Arbeitsplatz eignet. Sein einfaches Design und seine Benutzerfreundlichkeit machen ihn zu einer beliebten Wahl für Kaffeeliebhaber.", - "en": undefined, - "en-GB": "The Comfort Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Comfort Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Comfort Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", - "en-US": "The Comfort Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Comfort Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Comfort Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", - "fr": undefined, - }, - "key": "comfort-coffee-mug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Tasse -- Spülmaschinen- und mikrowellengeeignet", - "en-GB": "- Includes 1 mug -- Dishwasher and microwave safe", - "en-US": "- Includes 1 mug -- Dishwasher and microwave safe", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Unsere Komfort-Kaffeestasse ist aus Keramik gefertigt. Das Design der Tasse die für ein optimales Trinkerlebenis optimiert - unter anderem durch einen Griff auf einer Seite für bequemen Halt. Der Becher ist schlicht und sein zeitloses Design ist einfach und funktional. Die Komfort-Kaffeetasse ist leicht zu reinigen und zu pflegen. Sie kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Diese Komfort-Kaffeetasse ist ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Kaffeegenuss zu Hause oder am Arbeitsplatz eignet. Sein einfaches Design und seine Benutzerfreundlichkeit machen ihn zu einer beliebten Wahl für Kaffeeliebhaber.", + "en": undefined, + "en-GB": "The Comfort Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Comfort Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Comfort Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", + "en-US": "The Comfort Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Comfort Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Comfort Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2256, - "w": 2340, + "key": "comfort-coffee-mug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Tasse + - Spülmaschinen- und mikrowellengeeignet", + "en-GB": "- Includes 1 mug + - Dishwasher and microwave safe", + "en-US": "- Includes 1 mug + - Dishwasher and microwave safe", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2256, + "w": 2340, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Comfort_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "149USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 149, + "currencyCode": "USD", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + ], + "sku": "CCM-089", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Comfort_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "EUR", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Komfort-Kaffeetasse", + "en": undefined, + "en-GB": "Comfort Coffee Mug", + "en-US": "Comfort Coffee Mug", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "GBP", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "komfort-kaffeetasse", + "en": undefined, + "en-GB": "comfort-coffee-mug", + "en-US": "comfort-coffee-mug", + "fr": undefined, }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CCM-089", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Komfort-Kaffeetasse", - "en": undefined, - "en-GB": "Comfort Coffee Mug", - "en-US": "Comfort Coffee Mug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "komfort-kaffeetasse", - "en": undefined, - "en-GB": "comfort-coffee-mug", - "en-US": "comfort-coffee-mug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet.spec.ts index 7ad4c554d..9a98c36d2 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cotton-silk-bedsheet.spec.ts @@ -5,917 +5,917 @@ describe(`with cottonSilkBedsheet preset`, () => { const cottonSilkBedsheetPreset = cottonSilkBedsheet().build(); expect(cottonSilkBedsheetPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Diese Bettwäsche aus Baumwollseide besteht aus einer Mischung aus Baumwoll- und Seidenfasern. Baumwolle ist für ihre Strapazierfähigkeit, Atmungsaktivität und Pflegeleichtigkeit bekannt. Seide hingegen ist bekannt für ihre Geschmeidigkeit, ihren strahlenden Glanz und ihr luxuriöses Gefühl. Durch die Kombination beider Fasersorten bieten wir ein Produkt an, das Haltbarkeit, Atmungsaktivität und Luxus in Einklang bringt. ", - "en": undefined, - "en-GB": "Cotton silk bed sheets are made from a blend of cotton and silk fibers. Cotton is known for its durability, breathability, and ease of care. Silk, on the other hand, is renowned for its smoothness, lustrous sheen, and luxurious feel. By combining the two, we offer a product that balances durability, breathability, and luxury. Cotton silk bed sheets often have a subtle sheen from the silk, making them look more luxurious. ", - "en-US": "Cotton silk bed sheets are made from a blend of cotton and silk fibers. Cotton is known for its durability, breathability, and ease of care. Silk, on the other hand, is renowned for its smoothness, lustrous sheen, and luxurious feel. By combining the two, we offer a product that balances durability, breathability, and luxury. Cotton silk bed sheets often have a subtle sheen from the silk, making them look more luxurious. ", - "fr": undefined, - }, - "key": "cotton-silk-bedsheet", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "new-arrival", - "value": false, - }, - { - "name": "size", - "value": { - "en-GB": "Queen", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4500, - "w": 7500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKW-093", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Bettwäsche aus Baumwollseide", - "en": undefined, - "en-GB": "Cotton Silk Bedsheet", - "en-US": "Cotton Silk Bedsheet", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "bettwsche-aus-baumwollseide", - "en": undefined, - "en-GB": "cotton-silk-bedsheet", - "en-US": "cotton-silk-bedsheet", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Twin", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4500, - "w": 7500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKW-0922", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "size", - "value": { - "en-GB": "King", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4500, - "w": 7500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + "categories": [ + { + "key": "bedding", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Diese Bettwäsche aus Baumwollseide besteht aus einer Mischung aus Baumwoll- und Seidenfasern. Baumwolle ist für ihre Strapazierfähigkeit, Atmungsaktivität und Pflegeleichtigkeit bekannt. Seide hingegen ist bekannt für ihre Geschmeidigkeit, ihren strahlenden Glanz und ihr luxuriöses Gefühl. Durch die Kombination beider Fasersorten bieten wir ein Produkt an, das Haltbarkeit, Atmungsaktivität und Luxus in Einklang bringt. ", + "en": undefined, + "en-GB": "Cotton silk bed sheets are made from a blend of cotton and silk fibers. Cotton is known for its durability, breathability, and ease of care. Silk, on the other hand, is renowned for its smoothness, lustrous sheen, and luxurious feel. By combining the two, we offer a product that balances durability, breathability, and luxury. Cotton silk bed sheets often have a subtle sheen from the silk, making them look more luxurious. ", + "en-US": "Cotton silk bed sheets are made from a blend of cotton and silk fibers. Cotton is known for its durability, breathability, and ease of care. Silk, on the other hand, is renowned for its smoothness, lustrous sheen, and luxurious feel. By combining the two, we offer a product that balances durability, breathability, and luxury. Cotton silk bed sheets often have a subtle sheen from the silk, making them look more luxurious. ", + "fr": undefined, + }, + "key": "cotton-silk-bedsheet", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "new-arrival", + "value": false, + }, + { + "name": "size", + "value": { + "en-GB": "Queen", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4500, + "w": 7500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKW-9822", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Twin", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3627, - "w": 5589, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.1.jpeg", - }, - { - "dimensions": { - "h": 3228, - "w": 5216, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKP-0934", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Queen", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3627, - "w": 5589, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.1.jpeg", - }, - { - "dimensions": { - "h": 3228, - "w": 5216, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKP-0932", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", - }, - }, - { - "name": "size", - "value": { - "en-GB": "King", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3627, - "w": 5589, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.1.jpeg", - }, - { - "dimensions": { - "h": 3228, - "w": 5216, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKP-083", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Twin", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3848, - "w": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-7.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKG-92", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Queen", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3848, - "w": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-8.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKG-023", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-GB": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - "en-US": "- Machine washable -- 600 thread count -- Includes 1 fitted sheet", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - { - "name": "size", - "value": { - "en-GB": "King", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3848, - "w": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-9.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1899, - "currencyCode": "USD", - }, - }, - ], - "sku": "CSKG-2345", - }, - ], -} -`); + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKW-093", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Bettwäsche aus Baumwollseide", + "en": undefined, + "en-GB": "Cotton Silk Bedsheet", + "en-US": "Cotton Silk Bedsheet", + "fr": undefined, + }, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "bettwsche-aus-baumwollseide", + "en": undefined, + "en-GB": "cotton-silk-bedsheet", + "en-US": "cotton-silk-bedsheet", + "fr": undefined, + }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Twin", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4500, + "w": 7500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKW-0922", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "size", + "value": { + "en-GB": "King", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4500, + "w": 7500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKW-9822", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Twin", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3627, + "w": 5589, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.1.jpeg", + }, + { + "dimensions": { + "h": 3228, + "w": 5216, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-4.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKP-0934", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Queen", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3627, + "w": 5589, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.1.jpeg", + }, + { + "dimensions": { + "h": 3228, + "w": 5216, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-5.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKP-0932", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "size", + "value": { + "en-GB": "King", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3627, + "w": 5589, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.1.jpeg", + }, + { + "dimensions": { + "h": 3228, + "w": 5216, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-6.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKP-083", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Twin", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3848, + "w": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-7.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKG-92", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Queen", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3848, + "w": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-8.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKG-023", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-GB": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + "en-US": "- Machine washable + - 600 thread count + - Includes 1 fitted sheet", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "size", + "value": { + "en-GB": "King", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3848, + "w": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Silk_Bedsheet-9.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1899, + "currencyCode": "USD", + }, + }, + ], + "sku": "CSKG-2345", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa.spec.ts index 09d36bce7..53fe87e27 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cotton-two-seater-sofa.spec.ts @@ -5,152 +5,152 @@ describe(`with cottonTwoSeaterSofa preset`, () => { const cottonTwoSeaterSofaPreset = cottonTwoSeaterSofa().build(); expect(cottonTwoSeaterSofaPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Unser 2-Sitzer-Baumwollsofa ist eine gemütliche und bequeme Sitzgelegenheit für jedes Zuhause. Aus weichem, hochwertigem Baumwollstoff gefertigt, ist dieses Sofa sanft zur Haut und pflegeleicht. Die beiden Sitzkissen sind weich und stützend und bieten ein komfortables Sitzerlebnis. Die Rückenlehne des Sofas ist gut gepolstert und bietet reichlich Rückenunterstützung, während die Armlehnen für ein bequemes und entspanntes Gefühl sanft abgerundet sind. Der Holzrahmen des Sofas ist robust und langlebig, sodass er viele Jahre hält. Mit einer neutralen Farbe fügt sich dieses Sofa nahtlos in jeden Einrichtungsstil ein, während das schlichte und elegante Design jedem Raum einen Hauch von Raffinesse verleiht.", - "en": undefined, - "en-GB": "The 2-seater cotton sofa is a cozy and comfortable seating option for any home. Made from soft, high-quality cotton fabric, this sofa is gentle on the skin and easy to maintain. The two seat cushions are plush and supportive, providing a comfortable seating experience. The sofa's backrest is well-padded, providing ample back support, while the armrests are gently rounded for a comfortable and relaxed feel. The wooden frame of the sofa is sturdy and durable, ensuring it will last for years to come. With a neutral color, this sofa can blend seamlessly into any interior design style, while the simple and elegant design adds a touch of sophistication to any room.", - "en-US": "The 2-seater cotton sofa is a cozy and comfortable seating option for any home. Made from soft, high-quality cotton fabric, this sofa is gentle on the skin and easy to maintain. The two seat cushions are plush and supportive, providing a comfortable seating experience. The sofa's backrest is well-padded, providing ample back support, while the armrests are gently rounded for a comfortable and relaxed feel. The wooden frame of the sofa is sturdy and durable, ensuring it will last for years to come. With a neutral color, this sofa can blend seamlessly into any interior design style, while the simple and elegant design adds a touch of sophistication to any room.", - "fr": undefined, - }, - "key": "cotton-two-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "categories": [ + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Unser 2-Sitzer-Baumwollsofa ist eine gemütliche und bequeme Sitzgelegenheit für jedes Zuhause. Aus weichem, hochwertigem Baumwollstoff gefertigt, ist dieses Sofa sanft zur Haut und pflegeleicht. Die beiden Sitzkissen sind weich und stützend und bieten ein komfortables Sitzerlebnis. Die Rückenlehne des Sofas ist gut gepolstert und bietet reichlich Rückenunterstützung, während die Armlehnen für ein bequemes und entspanntes Gefühl sanft abgerundet sind. Der Holzrahmen des Sofas ist robust und langlebig, sodass er viele Jahre hält. Mit einer neutralen Farbe fügt sich dieses Sofa nahtlos in jeden Einrichtungsstil ein, während das schlichte und elegante Design jedem Raum einen Hauch von Raffinesse verleiht.", + "en": undefined, + "en-GB": "The 2-seater cotton sofa is a cozy and comfortable seating option for any home. Made from soft, high-quality cotton fabric, this sofa is gentle on the skin and easy to maintain. The two seat cushions are plush and supportive, providing a comfortable seating experience. The sofa's backrest is well-padded, providing ample back support, while the armrests are gently rounded for a comfortable and relaxed feel. The wooden frame of the sofa is sturdy and durable, ensuring it will last for years to come. With a neutral color, this sofa can blend seamlessly into any interior design style, while the simple and elegant design adds a touch of sophistication to any room.", + "en-US": "The 2-seater cotton sofa is a cozy and comfortable seating option for any home. Made from soft, high-quality cotton fabric, this sofa is gentle on the skin and easy to maintain. The two seat cushions are plush and supportive, providing a comfortable seating experience. The sofa's backrest is well-padded, providing ample back support, while the armrests are gently rounded for a comfortable and relaxed feel. The wooden frame of the sofa is sturdy and durable, ensuring it will last for years to come. With a neutral color, this sofa can blend seamlessly into any interior design style, while the simple and elegant design adds a touch of sophistication to any room.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2969, - "w": 5035, + "key": "cotton-two-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2969, + "w": 5035, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 637, + "w": 1000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.3.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "54900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 54900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "54900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 54900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "54900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 54900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CTSS-0983", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 637, - "w": 1000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Zweisitzer-Sofa aus Baumwolle", + "en": undefined, + "en-GB": "Cotton Two-Seater Sofa", + "en-US": "Cotton Two-Seater Sofa", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.3.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cotton_Two_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 54900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "zweisitzer-sofa-aus-baumwolle", + "en": undefined, + "en-GB": "cotton-two-seater-sofa", + "en-US": "cotton-two-seater-sofa", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 54900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 54900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CTSS-0983", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Zweisitzer-Sofa aus Baumwolle", - "en": undefined, - "en-GB": "Cotton Two-Seater Sofa", - "en-US": "Cotton Two-Seater Sofa", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "zweisitzer-sofa-aus-baumwolle", - "en": undefined, - "en-GB": "cotton-two-seater-sofa", - "en-US": "cotton-two-seater-sofa", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass.spec.ts index 1bc14e6c8..763e4cfa5 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/crystal-drinking-glass.spec.ts @@ -5,144 +5,144 @@ describe(`with crystalDrinkingGlass preset`, () => { const crystalDrinkingGlassPreset = crystalDrinkingGlass().build(); expect(crystalDrinkingGlassPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses Kristall-Glas besteht aus hochwertigem, bleifreiem Kristallglas, das dünn und zart, aber dennoch stark und langlebig ist. Das hochwertige Kristallmaterial wertet das Trinkerlebnis auf und lässt die Getränke funkelnder und farbenfroher erscheinen. Das Glas ist zudem so designed, dass es auch das Aroma und den Geschmack des Getränks verbessert. Das Design des Glases soll die Zugabe von Eis, Soda oder anderen Mixern ermöglichen und dennoch viel Platz für das Getränk selbst lassen. Die weite Öffnung des Glases lässt das Aroma des Getränkes aufsteigen, während die geraden Seiten und die glatte Oberfläche das Trinken und Genießen erleichtern. Dieses Kristall-Glas ist leicht zu reinigen und zu pflegen. Es kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Insgesamt ist dieses Glas aus Kristall ein stilvolles und elegantes Glasgeschirr, das sich perfekt zum Servieren von großen Mixgetränken eignet. Sein zartes Kristallmaterial und sein kompliziertes Design machen es zu einer beliebten Wahl für besondere Anlässe und gehobene Speiseerlebnisse.", - "en": undefined, - "en-GB": "This Crystal Drinking Glass is made of high-quality, lead-free crystal glass that is thin and delicate, yet strong and durable. The crystal material of the highball glass enhances the appearance of the drink, making it appear more sparkling and colorful. It also enhances the aroma and flavor of the drink, allowing the drinker to fully appreciate the complexity of the ingredients. The design of the glass is intended to accommodate the addition of ice, soda, or other mixers, while still leaving plenty of room for the drink itself. The wide mouth of the glass allows the drinker to smell the aroma of the drink, while the straight sides and smooth surface make it easy to sip and enjoy. The crystal highball glass is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the crystal highball glass is a stylish and elegant piece of glassware that is perfect for serving tall, mixed drinks. Its delicate crystal material and intricate design make it a popular choice for special occasions and fine dining experiences.", - "en-US": "This Crystal Drinking Glass is made of high-quality, lead-free crystal glass that is thin and delicate, yet strong and durable. The crystal material of the highball glass enhances the appearance of the drink, making it appear more sparkling and colorful. It also enhances the aroma and flavor of the drink, allowing the drinker to fully appreciate the complexity of the ingredients. The design of the glass is intended to accommodate the addition of ice, soda, or other mixers, while still leaving plenty of room for the drink itself. The wide mouth of the glass allows the drinker to smell the aroma of the drink, while the straight sides and smooth surface make it easy to sip and enjoy. The crystal highball glass is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the crystal highball glass is a stylish and elegant piece of glassware that is perfect for serving tall, mixed drinks. Its delicate crystal material and intricate design make it a popular choice for special occasions and fine dining experiences.", - "fr": undefined, - }, - "key": "crystal-drinking-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses Kristall-Glas besteht aus hochwertigem, bleifreiem Kristallglas, das dünn und zart, aber dennoch stark und langlebig ist. Das hochwertige Kristallmaterial wertet das Trinkerlebnis auf und lässt die Getränke funkelnder und farbenfroher erscheinen. Das Glas ist zudem so designed, dass es auch das Aroma und den Geschmack des Getränks verbessert. Das Design des Glases soll die Zugabe von Eis, Soda oder anderen Mixern ermöglichen und dennoch viel Platz für das Getränk selbst lassen. Die weite Öffnung des Glases lässt das Aroma des Getränkes aufsteigen, während die geraden Seiten und die glatte Oberfläche das Trinken und Genießen erleichtern. Dieses Kristall-Glas ist leicht zu reinigen und zu pflegen. Es kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Insgesamt ist dieses Glas aus Kristall ein stilvolles und elegantes Glasgeschirr, das sich perfekt zum Servieren von großen Mixgetränken eignet. Sein zartes Kristallmaterial und sein kompliziertes Design machen es zu einer beliebten Wahl für besondere Anlässe und gehobene Speiseerlebnisse.", + "en": undefined, + "en-GB": "This Crystal Drinking Glass is made of high-quality, lead-free crystal glass that is thin and delicate, yet strong and durable. The crystal material of the highball glass enhances the appearance of the drink, making it appear more sparkling and colorful. It also enhances the aroma and flavor of the drink, allowing the drinker to fully appreciate the complexity of the ingredients. The design of the glass is intended to accommodate the addition of ice, soda, or other mixers, while still leaving plenty of room for the drink itself. The wide mouth of the glass allows the drinker to smell the aroma of the drink, while the straight sides and smooth surface make it easy to sip and enjoy. The crystal highball glass is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the crystal highball glass is a stylish and elegant piece of glassware that is perfect for serving tall, mixed drinks. Its delicate crystal material and intricate design make it a popular choice for special occasions and fine dining experiences.", + "en-US": "This Crystal Drinking Glass is made of high-quality, lead-free crystal glass that is thin and delicate, yet strong and durable. The crystal material of the highball glass enhances the appearance of the drink, making it appear more sparkling and colorful. It also enhances the aroma and flavor of the drink, allowing the drinker to fully appreciate the complexity of the ingredients. The design of the glass is intended to accommodate the addition of ice, soda, or other mixers, while still leaving plenty of room for the drink itself. The wide mouth of the glass allows the drinker to smell the aroma of the drink, while the straight sides and smooth surface make it easy to sip and enjoy. The crystal highball glass is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the crystal highball glass is a stylish and elegant piece of glassware that is perfect for serving tall, mixed drinks. Its delicate crystal material and intricate design make it a popular choice for special occasions and fine dining experiences.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + "key": "crystal-drinking-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Crystal_Drinking_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "USD", + }, + }, + ], + "sku": "CDG-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Kristall-Glas", + "en": undefined, + "en-GB": "Crystal Drinking Glass", + "en-US": "Crystal Drinking Glass", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Crystal_Drinking_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "kristall-trinkglas", + "en": undefined, + "en-GB": "crystal-drinking-glass", + "en-US": "crystal-drinking-glass", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CDG-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Kristall-Glas", - "en": undefined, - "en-GB": "Crystal Drinking Glass", - "en-US": "Crystal Drinking Glass", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "kristall-trinkglas", - "en": undefined, - "en-GB": "crystal-drinking-glass", - "en-US": "crystal-drinking-glass", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket.spec.ts index 0597a0e3c..35e68ac2d 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/cube-jute-basket.spec.ts @@ -4,153 +4,168 @@ describe(`with cubeJuteBasket preset`, () => { it('should return a sample cubeJuteBasket product preset', () => { const cubeJuteBasketPreset = cubeJuteBasket().build(); expect(cubeJuteBasketPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Würfelkorb aus Jute für das Wohnzimmer ist eine praktische und stilvolle Aufbewahrungslösung, die dem Raum Wärme und Struktur verleiht. Der Korb besteht aus natürlichen Jutefasern, die eng miteinander verwoben sind, um eine robuste und langlebige Struktur zu schaffen. Die Würfelform des Korbs eignet sich perfekt zur Aufbewahrung einer Vielzahl von Gegenständen wie Decken, Zeitschriften, Fernbedienungen oder sogar kleinen Pflanzen. Die offene Oberseite des Korbs ermöglicht einen einfachen Zugriff auf den Inhalt, während die Seiten eine sichere Barriere bieten, um alles ordentlich zu verstauen. Die neutrale Farbe der Jutefasern ergänzt eine Vielzahl von Einrichtungsstilen, von böhmisch über küstennah bis rustikal. Der Korb kann auf den Boden oder in ein Regal gestellt werden und lässt sich dank seiner kompakten Größe bei Bedarf leicht bewegen.", - "en": undefined, - "en-GB": "A cube jute basket for the living room is a practical and stylish storage solution that adds warmth and texture to the space. The basket is made from natural jute fibers, which are tightly woven together to create a sturdy and durable structure. The cube shape of the basket is perfect for storing a variety of items, such as blankets, magazines, remote controls, or even small plants. The open top of the basket allows for easy access to its contents, while the sides provide a secure barrier to keep everything neatly contained. The neutral color of the jute fibers complements a variety of decor styles, from bohemian to coastal to rustic. The basket can be placed on the floor or on a shelf, and its compact size makes it easy to move around as needed.", - "en-US": "A cube jute basket for the living room is a practical and stylish storage solution that adds warmth and texture to the space. The basket is made from natural jute fibers, which are tightly woven together to create a sturdy and durable structure. The cube shape of the basket is perfect for storing a variety of items, such as blankets, magazines, remote controls, or even small plants. The open top of the basket allows for easy access to its contents, while the sides provide a secure barrier to keep everything neatly contained. The neutral color of the jute fibers complements a variety of decor styles, from bohemian to coastal to rustic. The basket can be placed on the floor or on a shelf, and its compact size makes it easy to move around as needed.", - "fr": undefined, - }, - "key": "cube-jute-basket", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Jute -- Vormontiert -- 1 Fuß x 1 Fuß x 1 Fuß", - "en-GB": "- Jute -- Preassembled -- 1ft x 1ft x 1ft", - "en-US": "- Jute -- Preassembled -- 1ft x 1ft x 1ft", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Würfelkorb aus Jute für das Wohnzimmer ist eine praktische und stilvolle Aufbewahrungslösung, die dem Raum Wärme und Struktur verleiht. Der Korb besteht aus natürlichen Jutefasern, die eng miteinander verwoben sind, um eine robuste und langlebige Struktur zu schaffen. Die Würfelform des Korbs eignet sich perfekt zur Aufbewahrung einer Vielzahl von Gegenständen wie Decken, Zeitschriften, Fernbedienungen oder sogar kleinen Pflanzen. Die offene Oberseite des Korbs ermöglicht einen einfachen Zugriff auf den Inhalt, während die Seiten eine sichere Barriere bieten, um alles ordentlich zu verstauen. Die neutrale Farbe der Jutefasern ergänzt eine Vielzahl von Einrichtungsstilen, von böhmisch über küstennah bis rustikal. Der Korb kann auf den Boden oder in ein Regal gestellt werden und lässt sich dank seiner kompakten Größe bei Bedarf leicht bewegen.", + "en": undefined, + "en-GB": "A cube jute basket for the living room is a practical and stylish storage solution that adds warmth and texture to the space. The basket is made from natural jute fibers, which are tightly woven together to create a sturdy and durable structure. The cube shape of the basket is perfect for storing a variety of items, such as blankets, magazines, remote controls, or even small plants. The open top of the basket allows for easy access to its contents, while the sides provide a secure barrier to keep everything neatly contained. The neutral color of the jute fibers complements a variety of decor styles, from bohemian to coastal to rustic. The basket can be placed on the floor or on a shelf, and its compact size makes it easy to move around as needed.", + "en-US": "A cube jute basket for the living room is a practical and stylish storage solution that adds warmth and texture to the space. The basket is made from natural jute fibers, which are tightly woven together to create a sturdy and durable structure. The cube shape of the basket is perfect for storing a variety of items, such as blankets, magazines, remote controls, or even small plants. The open top of the basket allows for easy access to its contents, while the sides provide a secure barrier to keep everything neatly contained. The neutral color of the jute fibers complements a variety of decor styles, from bohemian to coastal to rustic. The basket can be placed on the floor or on a shelf, and its compact size makes it easy to move around as needed.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3564, - "w": 4684, + "key": "cube-jute-basket", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Jute + - Vormontiert + - 1 Fuß x 1 Fuß x 1 Fuß", + "en-GB": "- Jute + - Preassembled + - 1ft x 1ft x 1ft", + "en-US": "- Jute + - Preassembled + - 1ft x 1ft x 1ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3564, + "w": 4684, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cube_Jute_Basket-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1199USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1199, + "currencyCode": "USD", + }, + }, + ], + "sku": "CJB-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Cube_Jute_Basket-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Würfelkorb aus Jute", + "en": undefined, + "en-GB": "Cube Jute Basket", + "en-US": "Cube Jute Basket", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "wrfel-jutekorb", + "en": undefined, + "en-GB": "cube-jute-basket", + "en-US": "cube-jute-basket", + "fr": undefined, }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CJB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Würfelkorb aus Jute", - "en": undefined, - "en-GB": "Cube Jute Basket", - "en-US": "Cube Jute Basket", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "wrfel-jutekorb", - "en": undefined, - "en-GB": "cube-jute-basket", - "en-US": "cube-jute-basket", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass.spec.ts index bf7f569c2..3ff4db983 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/double-sided-shot-glass.spec.ts @@ -5,147 +5,147 @@ describe(`with doubleSidedShotGlass preset`, () => { const doubleSidedShotGlassPreset = doubleSidedShotGlass().build(); expect(doubleSidedShotGlassPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses Stahlschnapsglas besteht aus Stahl und hat zwei Enden, eines zum Messen eines Standardschnapses und das andere zum Messen eines größeren Doppelschnapses. Die Enden sind wie kleine Tassen mit abgerundeten Kanten zum einfachen Ausgießen geformt. Die Stahlkonstruktion macht es langlebig und verschleißfest und bietet gleichzeitig ein elegantes und modernes Erscheinungsbild.", - "en": undefined, - "en-GB": "This steel shot glass is made of steel and has two ends, one for measuring a standard shot, and the other for measuring a larger double shot. The ends are shaped like small cups with rounded edges for easy pouring. The steel construction makes it durable and resistant to wear and tear, while also providing a sleek and modern appearance.", - "en-US": "This steel shot glass is made of steel and has two ends, one for measuring a standard shot, and the other for measuring a larger double shot. The ends are shaped like small cups with rounded edges for easy pouring. The steel construction makes it durable and resistant to wear and tear, while also providing a sleek and modern appearance.", - "fr": undefined, - }, - "key": "double-sided-shot-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Stainless steel -- Dishwasher safe", - "en-US": "- Stainless steel -- Dishwasher safe", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses Stahlschnapsglas besteht aus Stahl und hat zwei Enden, eines zum Messen eines Standardschnapses und das andere zum Messen eines größeren Doppelschnapses. Die Enden sind wie kleine Tassen mit abgerundeten Kanten zum einfachen Ausgießen geformt. Die Stahlkonstruktion macht es langlebig und verschleißfest und bietet gleichzeitig ein elegantes und modernes Erscheinungsbild.", + "en": undefined, + "en-GB": "This steel shot glass is made of steel and has two ends, one for measuring a standard shot, and the other for measuring a larger double shot. The ends are shaped like small cups with rounded edges for easy pouring. The steel construction makes it durable and resistant to wear and tear, while also providing a sleek and modern appearance.", + "en-US": "This steel shot glass is made of steel and has two ends, one for measuring a standard shot, and the other for measuring a larger double shot. The ends are shaped like small cups with rounded edges for easy pouring. The steel construction makes it durable and resistant to wear and tear, while also providing a sleek and modern appearance.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "key": "double-sided-shot-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Spülmaschinenfest", + "en-GB": "- Stainless steel + - Dishwasher safe", + "en-US": "- Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5472, + "w": 3648, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Sided_Shot_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "SHOT-095", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5472, - "w": 3648, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Doppelseitiges Schnapsglas", + "en": undefined, + "en-GB": "Double-sided Shot Glass", + "en-US": "Double-sided Shot Glass", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Sided_Shot_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "doppelseitiges-schnapsglas", + "en": undefined, + "en-GB": "double-sided-shot-glass", + "en-US": "double-sided-shot-glass", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SHOT-095", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Doppelseitiges Schnapsglas", - "en": undefined, - "en-GB": "Double-sided Shot Glass", - "en-US": "Double-sided Shot Glass", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "doppelseitiges-schnapsglas", - "en": undefined, - "en-GB": "double-sided-shot-glass", - "en-US": "double-sided-shot-glass", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass.spec.ts index bb2425619..98fe144c9 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/double-walled-espresso-glass.spec.ts @@ -5,160 +5,152 @@ describe(`with doubleWalledEspressoGlass preset`, () => { const doubleWalledEspressoGlassPreset = doubleWalledEspressoGlass().build(); expect(doubleWalledEspressoGlassPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Eine doppelwandige Espressotasse aus Glas ist speziell zum Servieren von Espresso entwickelt worden. Sie besteht aus Glas und ist doppelwandig aufgebaut, was bedeutet, dass es zwei Glasschichten gibt, die durch einen kleinen Spalt getrennt sind. Das doppelwandige Design der Espressotasse aus Glas bietet mehrere Vorteile. Erstens hilft es, den Espresso zu isolieren, wodurch er länger heiß bleibt. Zweitens sorgt die doppelwandige Konstruktion dafür, dass sich die Außenseite der Tasse kühl anfühlt, wodurch sie auch bei sehr heißem Espresso angenehm in der Hand liegt. Die Tasse hat ein Fassungsvermögen von etwa 2-3 cl, was die perfekte Größe für einen Schuss Espresso ist. Das Glas ist außerdem transparent, sodass Sie die satte, dunkle Farbe des Espressos sehen können, wenn er eingeschenkt und getrunken wird. Die doppelwandige Espressotasse aus Glas wird oft mit einer passenden Untertasse kombiniert, die der Tasse einen stabilen Stand bietet und auch Platz für einen kleinen Löffel oder Keks bietet. Insgesamt ist die doppelwandige Espressotasse aus Glas eine stilvolle und funktionale Möglichkeit, die reichen und komplexen Aromen eines Espressos zu genießen.", - "en": undefined, - "en-GB": "A double-walled glass espresso cup is a type of drinking vessel that is specifically designed for serving espresso. It is made of glass and features a double-walled construction, which means that there are two layers of glass that are separated by a small gap. The double-walled design of the glass espresso cup provides several benefits. First, it helps to insulate the espresso, which keeps it hot for longer periods of time. Second, the double-walled construction keeps the outside of the cup cool to the touch, which makes it comfortable to hold even when the espresso inside is very hot. The cup is typically small in size, with a capacity of around 2-3 ounces, which is the perfect size for a shot of espresso. The glass is also transparent, which allows you to see the rich, dark color of the espresso as it is poured and consumed. The double-walled glass espresso cup is often paired with a matching saucer, which provides a stable base for the cup and also provides a place to set a small spoon or biscuit. Overall, the double-walled glass espresso cup is a stylish and functional way to enjoy the rich and complex flavors of a shot of espresso.", - "en-US": "A double-walled glass espresso cup is a type of drinking vessel that is specifically designed for serving espresso. It is made of glass and features a double-walled construction, which means that there are two layers of glass that are separated by a small gap. The double-walled design of the glass espresso cup provides several benefits. First, it helps to insulate the espresso, which keeps it hot for longer periods of time. Second, the double-walled construction keeps the outside of the cup cool to the touch, which makes it comfortable to hold even when the espresso inside is very hot. The cup is typically small in size, with a capacity of around 2-3 ounces, which is the perfect size for a shot of espresso. The glass is also transparent, which allows you to see the rich, dark color of the espresso as it is poured and consumed. The double-walled glass espresso cup is often paired with a matching saucer, which provides a stable base for the cup and also provides a place to set a small spoon or biscuit. Overall, the double-walled glass espresso cup is a stylish and functional way to enjoy the rich and complex flavors of a shot of espresso.", - "fr": undefined, - }, - "key": "double-walled-espresso-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 4 Gläser", - "en-GB": "- Set includes 4 glasses", - "en-US": "- Set includes 4 glasses", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Eine doppelwandige Espressotasse aus Glas ist speziell zum Servieren von Espresso entwickelt worden. Sie besteht aus Glas und ist doppelwandig aufgebaut, was bedeutet, dass es zwei Glasschichten gibt, die durch einen kleinen Spalt getrennt sind. Das doppelwandige Design der Espressotasse aus Glas bietet mehrere Vorteile. Erstens hilft es, den Espresso zu isolieren, wodurch er länger heiß bleibt. Zweitens sorgt die doppelwandige Konstruktion dafür, dass sich die Außenseite der Tasse kühl anfühlt, wodurch sie auch bei sehr heißem Espresso angenehm in der Hand liegt. Die Tasse hat ein Fassungsvermögen von etwa 2-3 cl, was die perfekte Größe für einen Schuss Espresso ist. Das Glas ist außerdem transparent, sodass Sie die satte, dunkle Farbe des Espressos sehen können, wenn er eingeschenkt und getrunken wird. Die doppelwandige Espressotasse aus Glas wird oft mit einer passenden Untertasse kombiniert, die der Tasse einen stabilen Stand bietet und auch Platz für einen kleinen Löffel oder Keks bietet. Insgesamt ist die doppelwandige Espressotasse aus Glas eine stilvolle und funktionale Möglichkeit, die reichen und komplexen Aromen eines Espressos zu genießen.", + "en": undefined, + "en-GB": "A double-walled glass espresso cup is a type of drinking vessel that is specifically designed for serving espresso. It is made of glass and features a double-walled construction, which means that there are two layers of glass that are separated by a small gap. The double-walled design of the glass espresso cup provides several benefits. First, it helps to insulate the espresso, which keeps it hot for longer periods of time. Second, the double-walled construction keeps the outside of the cup cool to the touch, which makes it comfortable to hold even when the espresso inside is very hot. The cup is typically small in size, with a capacity of around 2-3 ounces, which is the perfect size for a shot of espresso. The glass is also transparent, which allows you to see the rich, dark color of the espresso as it is poured and consumed. The double-walled glass espresso cup is often paired with a matching saucer, which provides a stable base for the cup and also provides a place to set a small spoon or biscuit. Overall, the double-walled glass espresso cup is a stylish and functional way to enjoy the rich and complex flavors of a shot of espresso.", + "en-US": "A double-walled glass espresso cup is a type of drinking vessel that is specifically designed for serving espresso. It is made of glass and features a double-walled construction, which means that there are two layers of glass that are separated by a small gap. The double-walled design of the glass espresso cup provides several benefits. First, it helps to insulate the espresso, which keeps it hot for longer periods of time. Second, the double-walled construction keeps the outside of the cup cool to the touch, which makes it comfortable to hold even when the espresso inside is very hot. The cup is typically small in size, with a capacity of around 2-3 ounces, which is the perfect size for a shot of espresso. The glass is also transparent, which allows you to see the rich, dark color of the espresso as it is poured and consumed. The double-walled glass espresso cup is often paired with a matching saucer, which provides a stable base for the cup and also provides a place to set a small spoon or biscuit. Overall, the double-walled glass espresso cup is a stylish and functional way to enjoy the rich and complex flavors of a shot of espresso.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + "key": "double-walled-espresso-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 4 Gläser", + "en-GB": "- Set includes 4 glasses", + "en-US": "- Set includes 4 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3098, + "w": 3371, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4299, + "currencyCode": "USD", + }, + }, + ], + "sku": "DWEG-09", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Doppelwandiges Espressotasse aus Glas", + "en": undefined, + "en-GB": "Double-walled Espresso Glass", + "en-US": "Double-walled Espresso Glass", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3098, - "w": 3371, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.1.jpeg", - }, - { - "dimensions": { - "h": 1481, - "w": 987, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "doppelwandiges-espressoglas", + "en": undefined, + "en-GB": "double-walled-espresso-glass", + "en-US": "double-walled-espresso-glass", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Double_Walled_Espresso_Glass-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "DWEG-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Doppelwandiges Espressotasse aus Glas", - "en": undefined, - "en-GB": "Double-walled Espresso Glass", - "en-US": "Double-walled Espresso Glass", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "doppelwandiges-espressoglas", - "en": undefined, - "en-GB": "double-walled-espresso-glass", - "en-US": "double-walled-espresso-glass", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed.spec.ts index 8c6a1110b..a6e91097c 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ecru-double-bed.spec.ts @@ -4,147 +4,147 @@ describe(`with ecruDoubleBed preset`, () => { it('should return a sample ecruDoubleBed product preset', () => { const ecruDoubleBedPreset = ecruDoubleBed().build(); expect(ecruDoubleBedPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses Doppelbett mit gepolstertem Kopfteil ist ein einzigartiges und vielseitiges Möbelstück, das den Komfort eines Bettes mit der Funktionalität eines Sofas verbindet. Der Bettrahmen ist rechteckig und groß genug, um eine Standard-Doppelmatratze aufzunehmen. Das Kopfteil hat die Form eines Sofas, das oben am Bettrahmen befestigt ist. Das Kopfteil des Sofas bietet eine bequeme Rückenlehne zum Sitzen im Bett, um zu lesen, fernzusehen oder an einem Laptop zu arbeiten. Das Kopfteil des Sofas ist mit einem weichen und strapazierfähigen Stoff bezogen und bietet eine bequeme Sitzfläche. Insgesamt ist ein Queensize-Bett mit Sofa-Kopfteil ein praktisches und stilvolles Möbelstück, das jedem Schlafzimmer sowohl Komfort als auch Funktionalität verleiht.", - "en": undefined, - "en-GB": "A double-sized bed with a sofa headboard is a unique and versatile piece of furniture that combines the comfort of a bed with the functionality of a sofa. The bed frame is rectangular and large enough to accommodate a standard double mattress. The headboard is in the form of a sofa, which is attached to the top of the bed frame. The sofa headboard provides a comfortable backrest for sitting up in bed to read, watch TV, or work on a laptop. The sofa headboard is upholstered in a soft and durable fabric, providing a comfortable seating surface. Overall, a queen bed with a sofa headboard is a practical and stylish piece of furniture that can add both comfort and functionality to any bedroom.", - "en-US": "A double-sized bed with a sofa headboard is a unique and versatile piece of furniture that combines the comfort of a bed with the functionality of a sofa. The bed frame is rectangular and large enough to accommodate a standard double mattress. The headboard is in the form of a sofa, which is attached to the top of the bed frame. The sofa headboard provides a comfortable backrest for sitting up in bed to read, watch TV, or work on a laptop. The sofa headboard is upholstered in a soft and durable fabric, providing a comfortable seating surface. Overall, a queen bed with a sofa headboard is a practical and stylish piece of furniture that can add both comfort and functionality to any bedroom.", - "fr": undefined, - }, - "key": "ecru-double-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Mit gepolstertem Kopfteil -- Montage inklusive", - "en-GB": "- Comes with pillow-top headboard -- Assembly included", - "en-US": "- Comes with pillow-top headboard -- Assembly included", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses Doppelbett mit gepolstertem Kopfteil ist ein einzigartiges und vielseitiges Möbelstück, das den Komfort eines Bettes mit der Funktionalität eines Sofas verbindet. Der Bettrahmen ist rechteckig und groß genug, um eine Standard-Doppelmatratze aufzunehmen. Das Kopfteil hat die Form eines Sofas, das oben am Bettrahmen befestigt ist. Das Kopfteil des Sofas bietet eine bequeme Rückenlehne zum Sitzen im Bett, um zu lesen, fernzusehen oder an einem Laptop zu arbeiten. Das Kopfteil des Sofas ist mit einem weichen und strapazierfähigen Stoff bezogen und bietet eine bequeme Sitzfläche. Insgesamt ist ein Queensize-Bett mit Sofa-Kopfteil ein praktisches und stilvolles Möbelstück, das jedem Schlafzimmer sowohl Komfort als auch Funktionalität verleiht.", + "en": undefined, + "en-GB": "A double-sized bed with a sofa headboard is a unique and versatile piece of furniture that combines the comfort of a bed with the functionality of a sofa. The bed frame is rectangular and large enough to accommodate a standard double mattress. The headboard is in the form of a sofa, which is attached to the top of the bed frame. The sofa headboard provides a comfortable backrest for sitting up in bed to read, watch TV, or work on a laptop. The sofa headboard is upholstered in a soft and durable fabric, providing a comfortable seating surface. Overall, a queen bed with a sofa headboard is a practical and stylish piece of furniture that can add both comfort and functionality to any bedroom.", + "en-US": "A double-sized bed with a sofa headboard is a unique and versatile piece of furniture that combines the comfort of a bed with the functionality of a sofa. The bed frame is rectangular and large enough to accommodate a standard double mattress. The headboard is in the form of a sofa, which is attached to the top of the bed frame. The sofa headboard provides a comfortable backrest for sitting up in bed to read, watch TV, or work on a laptop. The sofa headboard is upholstered in a soft and durable fabric, providing a comfortable seating surface. Overall, a queen bed with a sofa headboard is a practical and stylish piece of furniture that can add both comfort and functionality to any bedroom.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Gainsboro:#dcdcdc", - "en-GB": "Gainsboro:#dcdcdc", - "en-US": "Gainsboro:#dcdcdc", + "key": "ecru-double-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Mit gepolstertem Kopfteil + - Montage inklusive", + "en-GB": "- Comes with pillow-top headboard + - Assembly included", + "en-US": "- Comes with pillow-top headboard + - Assembly included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Gainsboro:#dcdcdc", + "en-GB": "Gainsboro:#dcdcdc", + "en-US": "Gainsboro:#dcdcdc", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2000, + "w": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ecru_Double_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "89900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 89900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "89900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 89900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "89900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 89900, + "currencyCode": "USD", + }, + }, + ], + "sku": "SQB-034", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2000, - "w": 2000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Doppelbett "Ecru"", + "en": undefined, + "en-GB": "Ecru Double Bed", + "en-US": "Ecru Double Bed", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ecru_Double_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 89900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 89900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "ecru-doppelbett", + "en": undefined, + "en-GB": "ecru-double-bed", + "en-US": "ecru-double-bed", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 89900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SQB-034", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Doppelbett "Ecru"", - "en": undefined, - "en-GB": "Ecru Double Bed", - "en-US": "Ecru Double Bed", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "ecru-doppelbett", - "en": undefined, - "en-GB": "ecru-double-bed", - "en-US": "ecru-double-bed", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/edgar-armchair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/edgar-armchair.spec.ts index c54641d14..d9299702c 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/edgar-armchair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/edgar-armchair.spec.ts @@ -4,156 +4,156 @@ describe(`with edgarArmchair preset`, () => { it('should return a sample edgarArmchair product preset', () => { const edgarArmchairPreset = edgarArmchair().build(); expect(edgarArmchairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Sessel im abstrakten modernen Stil mit Metallbeinen ist ein einzigartiges Möbelstück, das jedem Raum einen Hauch von Raffinesse verleiht. Der Stuhl ist mit klaren Linien und einem schlanken Profil gestaltet und verfügt über einen niedrigen, breiten Sitz und eine hohe Rückenlehne, die sich sanft um die Seiten des Stuhls krümmt. Der Sitz und die Rückenlehne sind mit einem strukturierten, strapazierfähigen Stoff bezogen, der dem klassischen Sesseldesign eine zeitgemäße Note verleiht. Die Metallbeine sind dünn und konisch zulaufend und bilden eine filigrane und dennoch stabile Basis für den Stuhl. Insgesamt ist dieser Sessel eine perfekte Mischung aus Stil und Komfort, was ihn zu einer großartigen Ergänzung für jeden modernen Wohnraum macht.", - "en": undefined, - "en-GB": "An abstract modern style armchair with metal legs is a unique piece of furniture that would add a touch of sophistication to any room. The chair is designed with clean lines and a sleek profile, featuring a low, wide seat and a tall backrest that curves gently around the sides of the chair. The seat and backrest are upholstered in a textured, durable fabric, which adds a contemporary edge to the classic armchair design. The metal legs are thin and tapered, providing a delicate yet sturdy base for the chair. Overall, this armchair is a perfect blend of style and comfort, making it a great addition to any modern living space.", - "en-US": "An abstract modern style armchair with metal legs is a unique piece of furniture that would add a touch of sophistication to any room. The chair is designed with clean lines and a sleek profile, featuring a low, wide seat and a tall backrest that curves gently around the sides of the chair. The seat and backrest are upholstered in a textured, durable fabric, which adds a contemporary edge to the classic armchair design. The metal legs are thin and tapered, providing a delicate yet sturdy base for the chair. Overall, this armchair is a perfect blend of style and comfort, making it a great addition to any modern living space.", - "fr": undefined, - }, - "key": "edgar-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Montage bei Lieferung", - "en-GB": "- Assembly on delivery", - "en-US": "- Assembly on delivery", + "categories": [ + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Sessel im abstrakten modernen Stil mit Metallbeinen ist ein einzigartiges Möbelstück, das jedem Raum einen Hauch von Raffinesse verleiht. Der Stuhl ist mit klaren Linien und einem schlanken Profil gestaltet und verfügt über einen niedrigen, breiten Sitz und eine hohe Rückenlehne, die sich sanft um die Seiten des Stuhls krümmt. Der Sitz und die Rückenlehne sind mit einem strukturierten, strapazierfähigen Stoff bezogen, der dem klassischen Sesseldesign eine zeitgemäße Note verleiht. Die Metallbeine sind dünn und konisch zulaufend und bilden eine filigrane und dennoch stabile Basis für den Stuhl. Insgesamt ist dieser Sessel eine perfekte Mischung aus Stil und Komfort, was ihn zu einer großartigen Ergänzung für jeden modernen Wohnraum macht.", + "en": undefined, + "en-GB": "An abstract modern style armchair with metal legs is a unique piece of furniture that would add a touch of sophistication to any room. The chair is designed with clean lines and a sleek profile, featuring a low, wide seat and a tall backrest that curves gently around the sides of the chair. The seat and backrest are upholstered in a textured, durable fabric, which adds a contemporary edge to the classic armchair design. The metal legs are thin and tapered, providing a delicate yet sturdy base for the chair. Overall, this armchair is a perfect blend of style and comfort, making it a great addition to any modern living space.", + "en-US": "An abstract modern style armchair with metal legs is a unique piece of furniture that would add a touch of sophistication to any room. The chair is designed with clean lines and a sleek profile, featuring a low, wide seat and a tall backrest that curves gently around the sides of the chair. The seat and backrest are upholstered in a textured, durable fabric, which adds a contemporary edge to the classic armchair design. The metal legs are thin and tapered, providing a delicate yet sturdy base for the chair. Overall, this armchair is a perfect blend of style and comfort, making it a great addition to any modern living space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Helles Oliv:#BAB86C", - "en-GB": "Light Olive:#BAB86C", - "en-US": "Light Olive:#BAB86C", + "key": "edgar-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage bei Lieferung", + "en-GB": "- Assembly on delivery", + "en-US": "- Assembly on delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Helles Oliv:#BAB86C", + "en-GB": "Light Olive:#BAB86C", + "en-US": "Light Olive:#BAB86C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Edgar_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "EARM-04", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sessel "Edgar"", + "en": undefined, + "en-GB": "Edgar Armchair", + "en-US": "Edgar Armchair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 5000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Edgar_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "edgar-sessel", + "en": undefined, + "en-GB": "edgar-armchair", + "en-US": "edgar-armchair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "EARM-04", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sessel "Edgar"", - "en": undefined, - "en-GB": "Edgar Armchair", - "en-US": "Edgar Armchair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "edgar-sessel", - "en": undefined, - "en-GB": "edgar-armchair", - "en-US": "edgar-armchair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ella-square-plate.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ella-square-plate.spec.ts index c9589fb9f..a929f91c5 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ella-square-plate.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ella-square-plate.spec.ts @@ -4,163 +4,178 @@ describe(`with ellaSquarePlate preset`, () => { it('should return a sample ellaSquarePlate product preset', () => { const ellaSquarePlatePreset = ellaSquarePlate().build(); expect(ellaSquarePlatePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser quadratische Teller "Ella" ist ideal zum Servieren oder Präsentieren von Speisen, von Vorspeisen und Hauptgerichten bis hin zu Desserts und Snacks. Er kann sowohl für formelle als auch für ungezwungene Anlässe verwendet werden, und seine Einfachheit und Vielseitigkeit machen ihn zu einer beliebten Wahl für viele verschiedene Arten von Küchen. Insgesamt ist ein quadratischer Keramikteller eine funktionale und stilvolle Wahl zum Servieren von Mahlzeiten und kann jedem Speiseerlebnis einen Hauch von Eleganz verleihen.", - "en": undefined, - "en-GB": "This Ella square ceramic plate is a flat, four-sided dish ideal for serving or displaying food. A flat square serving plate is ideal for serving a variety of foods, from appetizers and main courses to desserts and snacks. It can be used for both formal and casual occasions, and its simplicity and versatility make it a popular choice for many different types of cuisines. Overall, a square ceramic plate is a functional and stylish choice for serving meals and can add a touch of elegance to any dining experience.", - "en-US": "This Ella square ceramic plate is a flat, four-sided dish ideal for serving or displaying food. A flat square serving plate is ideal for serving a variety of foods, from appetizers and main courses to desserts and snacks. It can be used for both formal and casual occasions, and its simplicity and versatility make it a popular choice for many different types of cuisines. Overall, a square ceramic plate is a functional and stylish choice for serving meals and can add a touch of elegance to any dining experience.", - "fr": undefined, - }, - "key": "ella-square-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", + "categories": [ + { + "key": "plates", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser quadratische Teller "Ella" ist ideal zum Servieren oder Präsentieren von Speisen, von Vorspeisen und Hauptgerichten bis hin zu Desserts und Snacks. Er kann sowohl für formelle als auch für ungezwungene Anlässe verwendet werden, und seine Einfachheit und Vielseitigkeit machen ihn zu einer beliebten Wahl für viele verschiedene Arten von Küchen. Insgesamt ist ein quadratischer Keramikteller eine funktionale und stilvolle Wahl zum Servieren von Mahlzeiten und kann jedem Speiseerlebnis einen Hauch von Eleganz verleihen.", + "en": undefined, + "en-GB": "This Ella square ceramic plate is a flat, four-sided dish ideal for serving or displaying food. A flat square serving plate is ideal for serving a variety of foods, from appetizers and main courses to desserts and snacks. It can be used for both formal and casual occasions, and its simplicity and versatility make it a popular choice for many different types of cuisines. Overall, a square ceramic plate is a functional and stylish choice for serving meals and can add a touch of elegance to any dining experience.", + "en-US": "This Ella square ceramic plate is a flat, four-sided dish ideal for serving or displaying food. A flat square serving plate is ideal for serving a variety of foods, from appetizers and main courses to desserts and snacks. It can be used for both formal and casual occasions, and its simplicity and versatility make it a popular choice for many different types of cuisines. Overall, a square ceramic plate is a functional and stylish choice for serving meals and can add a touch of elegance to any dining experience.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3412, - "w": 5692, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.1.jpeg", - }, - { - "dimensions": { - "h": 4912, - "w": 7360, + "key": "ella-square-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3412, + "w": 5692, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.1.jpeg", + }, + { + "dimensions": { + "h": 4912, + "w": 7360, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1599, + "currencyCode": "USD", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + ], + "sku": "ESP-1", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ella_Square_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "EUR", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Quadratischer Teller "Ella"", + "en": undefined, + "en-GB": "Ella Square Plate", + "en-US": "Ella Square Plate", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "GBP", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "ella-quadratische-platte", + "en": undefined, + "en-GB": "ella-square-plate", + "en-US": "ella-square-plate", + "fr": undefined, }, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1599, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ESP-1", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Quadratischer Teller "Ella"", - "en": undefined, - "en-GB": "Ella Square Plate", - "en-US": "Ella Square Plate", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "ella-quadratische-platte", - "en": undefined, - "en-GB": "ella-square-plate", - "en-US": "ella-square-plate", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair.spec.ts index 71a99f724..21cc34ff1 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/emerald-velvet-chair.spec.ts @@ -5,152 +5,152 @@ describe(`with emeraldVelvetChair preset`, () => { const emeraldVelvetChairPreset = emeraldVelvetChair().build(); expect(emeraldVelvetChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Samtstuhl mit Messinggestell ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die smaragdgrüne Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Weiblichkeit. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus Samt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Stuhl verfügt über eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Der Stuhl ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", - "en": undefined, - "en-GB": "A velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The emerald color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - "en-US": "A velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The emerald color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - "fr": undefined, - }, - "key": "emerald-velvet-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Samtstuhl mit Messinggestell ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die smaragdgrüne Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Weiblichkeit. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus Samt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Stuhl verfügt über eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Der Stuhl ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", + "en": undefined, + "en-GB": "A velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The emerald color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + "en-US": "A velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The emerald color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Grün:#008000", - "en-GB": "Green:#008000", - "en-US": "Green:#008000", + "key": "emerald-velvet-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grün:#008000", + "en-GB": "Green:#008000", + "en-US": "Green:#008000", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Burlywood:#deb887", + "en-GB": "Burlywood:#deb887", + "en-US": "Burlywood:#deb887", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4800, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Emerald_Velvet_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "VARM-09", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Burlywood:#deb887", - "en-GB": "Burlywood:#deb887", - "en-US": "Burlywood:#deb887", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Smaragdgrüner Samt-Stuhl", + "en": undefined, + "en-GB": "Emerald Velvet Chair", + "en-US": "Emerald Velvet Chair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4800, - "w": 6000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Emerald_Velvet_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "smaragdgrner-samtstuhl", + "en": undefined, + "en-GB": "emerald-velvet-chair", + "en-US": "emerald-velvet-chair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "VARM-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Smaragdgrüner Samt-Stuhl", - "en": undefined, - "en-GB": "Emerald Velvet Chair", - "en-US": "Emerald Velvet Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "smaragdgrner-samtstuhl", - "en": undefined, - "en-GB": "emerald-velvet-chair", - "en-US": "emerald-velvet-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/entryway-closet.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/entryway-closet.spec.ts index 53e8f9444..f2115ea20 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/entryway-closet.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/entryway-closet.spec.ts @@ -4,168 +4,168 @@ describe(`with entrywayCloset preset`, () => { it('should return a sample entrywayCloset product preset', () => { const entrywayClosetPreset = entrywayCloset().build(); expect(entrywayClosetPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Einbauschrank mit Spiegeln und Leuchten wird in der Nähe des Eingangs eines Hauses oder einer Wohnung platziert. Der Schrank verfügt über Ganzkörperspiegel, um Ihnen zu ermöglichen Ihr Aussehen zu überprüfen, bevor sie das Haus verlassen. Der Schrank verfügt über eine Beleuchtung, die dazu beitragen kann, den Raum aufzuhellen und das Auffinden von aufbewahrten Gegenständen zu erleichtern. Das Gesamtdesign des Schranks ist von Natur aus minimalistisch, mit klaren Linien und einem einfachen Farbschema, das sich nahtlos in das umgebende Dekor einfügen soll. Zusätzlich zu Spiegeln und Beleuchtung kann der Schrank Haken oder Regale zum Aufbewahren von Jacken, Hüten, Schuhen und anderen Accessoires aufweisen.", - "en": undefined, - "en-GB": "An entryway closet with mirrors and lights is a built-in closet that is situated near the entrance of a house or apartment. The closet features full-length mirrors, which are designed to allow people to check their appearance before leaving the house. The closet has lighting installed, which can help to brighten the space and make it easier to find and grab items stored within. The overall design of the closet is minimalist in nature, with clean lines and a simple color scheme that is meant to blend seamlessly with the surrounding decor. In addition to mirrors and lighting, the closet may feature hooks or shelves for storing jackets, hats, shoes, and other accessories.", - "en-US": "An entryway closet with mirrors and lights is a built-in closet that is situated near the entrance of a house or apartment. The closet features full-length mirrors, which are designed to allow people to check their appearance before leaving the house. The closet has lighting installed, which can help to brighten the space and make it easier to find and grab items stored within. The overall design of the closet is minimalist in nature, with clean lines and a simple color scheme that is meant to blend seamlessly with the surrounding decor. In addition to mirrors and lighting, the closet may feature hooks or shelves for storing jackets, hats, shoes, and other accessories.", - "fr": undefined, - }, - "key": "entryway-closet", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Einbauschrank mit Spiegeln und Leuchten wird in der Nähe des Eingangs eines Hauses oder einer Wohnung platziert. Der Schrank verfügt über Ganzkörperspiegel, um Ihnen zu ermöglichen Ihr Aussehen zu überprüfen, bevor sie das Haus verlassen. Der Schrank verfügt über eine Beleuchtung, die dazu beitragen kann, den Raum aufzuhellen und das Auffinden von aufbewahrten Gegenständen zu erleichtern. Das Gesamtdesign des Schranks ist von Natur aus minimalistisch, mit klaren Linien und einem einfachen Farbschema, das sich nahtlos in das umgebende Dekor einfügen soll. Zusätzlich zu Spiegeln und Beleuchtung kann der Schrank Haken oder Regale zum Aufbewahren von Jacken, Hüten, Schuhen und anderen Accessoires aufweisen.", + "en": undefined, + "en-GB": "An entryway closet with mirrors and lights is a built-in closet that is situated near the entrance of a house or apartment. The closet features full-length mirrors, which are designed to allow people to check their appearance before leaving the house. The closet has lighting installed, which can help to brighten the space and make it easier to find and grab items stored within. The overall design of the closet is minimalist in nature, with clean lines and a simple color scheme that is meant to blend seamlessly with the surrounding decor. In addition to mirrors and lighting, the closet may feature hooks or shelves for storing jackets, hats, shoes, and other accessories.", + "en-US": "An entryway closet with mirrors and lights is a built-in closet that is situated near the entrance of a house or apartment. The closet features full-length mirrors, which are designed to allow people to check their appearance before leaving the house. The closet has lighting installed, which can help to brighten the space and make it easier to find and grab items stored within. The overall design of the closet is minimalist in nature, with clean lines and a simple color scheme that is meant to blend seamlessly with the surrounding decor. In addition to mirrors and lighting, the closet may feature hooks or shelves for storing jackets, hats, shoes, and other accessories.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Burlywood:#deb887", - "en-GB": "Burlywood:#deb887", - "en-US": "Burlywood:#deb887", + "key": "entryway-closet", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Burlywood:#deb887", + "en-GB": "Burlywood:#deb887", + "en-US": "Burlywood:#deb887", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4125, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.1.jpeg", + }, + { + "dimensions": { + "h": 4512, + "w": 4700, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.2.jpeg", + }, + { + "dimensions": { + "h": 4125, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + ], + "sku": "EWC-07", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4125, - "w": 5500, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Einbauschrank", + "en": undefined, + "en-GB": "Entryway Closet", + "en-US": "Entryway Closet", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.1.jpeg", - }, - { - "dimensions": { - "h": 4512, - "w": 4700, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.2.jpeg", - }, - { - "dimensions": { - "h": 4125, - "w": 5500, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "eingangsschrank", + "en": undefined, + "en-GB": "entryway-closet", + "en-US": "entryway-closet", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Entryway_Closet-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "EWC-07", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Einbauschrank", - "en": undefined, - "en-GB": "Entryway Closet", - "en-US": "Entryway Closet", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "eingangsschrank", - "en": undefined, - "en-GB": "entryway-closet", - "en-US": "entryway-closet", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/evergreen-candle.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/evergreen-candle.spec.ts index f4ec39e2f..4875f3ee6 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/evergreen-candle.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/evergreen-candle.spec.ts @@ -4,152 +4,152 @@ describe(`with evergreenCandle preset`, () => { it('should return a sample evergreenCandle product preset', () => { const evergreenCandlePreset = evergreenCandle().build(); expect(evergreenCandlePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Kerzenhalter hat ein schlichtes, rustikales Design mit einer hohen, schlanken Form, die an einen Baumstamm erinnert. Er kann auch mit kleinen immergrünen Zweigen, Beeren und Tannenzapfen dekoriert werden, um ein natürlicheres und organischeres Aussehen zu schaffen. Wenn die Kerze angezündet wird, wirft sie einen warmen und gemütlichen Schein und schafft eine festliche und einladende Atmosphäre in jedem Raum. Der immergrüne Duft des Kerzenhalters kann auch durch die Wärme der Kerze verstärkt werden und erfüllt den Raum mit dem natürlichen Duft von Kiefer und Holz. Insgesamt ist ein immergrüner Kerzenhalter während der Weihnachtszeit eine charmante und rustikale Ergänzung für jedes Zuhause. Seine natürlichen Materialien und Erdtöne können dazu beitragen, eine warme und einladende Atmosphäre zu schaffen, während sein einfaches, aber elegantes Design jedem Raum einen Hauch von Natur verleiht.", - "en": undefined, - "en-GB": "The candlestick features a simple, rustic design with a tall, slender shape that is reminiscent of a tree trunk. It may also be decorated with small evergreen branches, berries, and pinecones to create a more natural and organic look. When the candle is lit, it will cast a warm and cozy glow, creating a festive and inviting atmosphere in any room. The evergreen scent of the candlestick may also be enhanced by the heat of the candle, filling the room with the natural fragrance of pine and wood. Overall, an evergreen candle stick is a charming and rustic addition to any home during the holiday season. Its natural materials and earthy tones can help to create a warm and inviting atmosphere, while its simple yet elegant design can add a touch of nature to any room.", - "en-US": "The candlestick features a simple, rustic design with a tall, slender shape that is reminiscent of a tree trunk. It may also be decorated with small evergreen branches, berries, and pinecones to create a more natural and organic look. When the candle is lit, it will cast a warm and cozy glow, creating a festive and inviting atmosphere in any room. The evergreen scent of the candlestick may also be enhanced by the heat of the candle, filling the room with the natural fragrance of pine and wood. Overall, an evergreen candle stick is a charming and rustic addition to any home during the holiday season. Its natural materials and earthy tones can help to create a warm and inviting atmosphere, while its simple yet elegant design can add a touch of nature to any room.", - "fr": undefined, - }, - "key": "evergreen-candle", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Helles Oliv:#BAB86C", - "en-GB": "Light Olive:#BAB86C", - "en-US": "Light Olive:#BAB86C", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Kerzenhalter hat ein schlichtes, rustikales Design mit einer hohen, schlanken Form, die an einen Baumstamm erinnert. Er kann auch mit kleinen immergrünen Zweigen, Beeren und Tannenzapfen dekoriert werden, um ein natürlicheres und organischeres Aussehen zu schaffen. Wenn die Kerze angezündet wird, wirft sie einen warmen und gemütlichen Schein und schafft eine festliche und einladende Atmosphäre in jedem Raum. Der immergrüne Duft des Kerzenhalters kann auch durch die Wärme der Kerze verstärkt werden und erfüllt den Raum mit dem natürlichen Duft von Kiefer und Holz. Insgesamt ist ein immergrüner Kerzenhalter während der Weihnachtszeit eine charmante und rustikale Ergänzung für jedes Zuhause. Seine natürlichen Materialien und Erdtöne können dazu beitragen, eine warme und einladende Atmosphäre zu schaffen, während sein einfaches, aber elegantes Design jedem Raum einen Hauch von Natur verleiht.", + "en": undefined, + "en-GB": "The candlestick features a simple, rustic design with a tall, slender shape that is reminiscent of a tree trunk. It may also be decorated with small evergreen branches, berries, and pinecones to create a more natural and organic look. When the candle is lit, it will cast a warm and cozy glow, creating a festive and inviting atmosphere in any room. The evergreen scent of the candlestick may also be enhanced by the heat of the candle, filling the room with the natural fragrance of pine and wood. Overall, an evergreen candle stick is a charming and rustic addition to any home during the holiday season. Its natural materials and earthy tones can help to create a warm and inviting atmosphere, while its simple yet elegant design can add a touch of nature to any room.", + "en-US": "The candlestick features a simple, rustic design with a tall, slender shape that is reminiscent of a tree trunk. It may also be decorated with small evergreen branches, berries, and pinecones to create a more natural and organic look. When the candle is lit, it will cast a warm and cozy glow, creating a festive and inviting atmosphere in any room. The evergreen scent of the candlestick may also be enhanced by the heat of the candle, filling the room with the natural fragrance of pine and wood. Overall, an evergreen candle stick is a charming and rustic addition to any home during the holiday season. Its natural materials and earthy tones can help to create a warm and inviting atmosphere, while its simple yet elegant design can add a touch of nature to any room.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2160, - "w": 3840, + "key": "evergreen-candle", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Helles Oliv:#BAB86C", + "en-GB": "Light Olive:#BAB86C", + "en-US": "Light Olive:#BAB86C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2160, + "w": 3840, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.1.jpeg", + }, + { + "dimensions": { + "h": 2160, + "w": 3840, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.3.jpeg", + }, + { + "dimensions": { + "h": 6720, + "w": 4480, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "EC-0993", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.1.jpeg", - }, - { - "dimensions": { - "h": 2160, - "w": 3840, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Kerze "Evergreen"", + "en": undefined, + "en-GB": "Evergreen Candle", + "en-US": "Evergreen Candle", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.3.jpeg", - }, - { - "dimensions": { - "h": 6720, - "w": 4480, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Evergreen_Candle-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "immergrne-kerze", + "en": undefined, + "en-GB": "evergreen-candle", + "en-US": "evergreen-candle", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "EC-0993", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Kerze "Evergreen"", - "en": undefined, - "en-GB": "Evergreen Candle", - "en-US": "Evergreen Candle", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "immergrne-kerze", - "en": undefined, - "en-GB": "evergreen-candle", - "en-US": "evergreen-candle", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/fawn-armchair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/fawn-armchair.spec.ts index 9036684fc..a5408c252 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/fawn-armchair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/fawn-armchair.spec.ts @@ -4,152 +4,152 @@ describe(`with fawnArmchair preset`, () => { it('should return a sample fawnArmchair product preset', () => { const fawnArmchairPreset = fawnArmchair().build(); expect(fawnArmchairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Lederstuhl mit Ebenholzbeinen im Art-Deco-Stil hat ein schlankes, stromlinienförmiges Design, das Raffinesse und Eleganz ausstrahlt. Der Stuhl hat einen bequem gepolsterten Sitz und eine Rückenlehne. Die Lederpolsterung vermittelt ein weiches und luxuriöses Gefühl. Die Beine aus Ebenholz sind lang und konisch zulaufend, mit einer glatten Oberfläche, die den modernen Stil des Stuhls betont. Der Stuhl weist auch markante Art-Deco-Elemente wie eckige Formen, kräftige Linien und geometrische Muster auf. Dieser Stuhl ist ein markantes Möbelstück, das jedem Raum sowohl Stil als auch Komfort verleiht.", - "en": undefined, - "en-GB": "An art deco leather chair with ebony legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with the leather upholstery providing a soft and luxurious feel. The ebony legs are long and tapered, with a smooth finish that accentuates the chair's modern style. The chair also features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair would be a striking piece of furniture that adds both style and comfort to any room.", - "en-US": "An art deco leather chair with ebony legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with the leather upholstery providing a soft and luxurious feel. The ebony legs are long and tapered, with a smooth finish that accentuates the chair's modern style. The chair also features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair would be a striking piece of furniture that adds both style and comfort to any room.", - "fr": undefined, - }, - "key": "fawn-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Leder erfordert besondere Pflege", - "en-GB": "- Leather requires special care", - "en-US": "- Leather requires special care", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Lederstuhl mit Ebenholzbeinen im Art-Deco-Stil hat ein schlankes, stromlinienförmiges Design, das Raffinesse und Eleganz ausstrahlt. Der Stuhl hat einen bequem gepolsterten Sitz und eine Rückenlehne. Die Lederpolsterung vermittelt ein weiches und luxuriöses Gefühl. Die Beine aus Ebenholz sind lang und konisch zulaufend, mit einer glatten Oberfläche, die den modernen Stil des Stuhls betont. Der Stuhl weist auch markante Art-Deco-Elemente wie eckige Formen, kräftige Linien und geometrische Muster auf. Dieser Stuhl ist ein markantes Möbelstück, das jedem Raum sowohl Stil als auch Komfort verleiht.", + "en": undefined, + "en-GB": "An art deco leather chair with ebony legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with the leather upholstery providing a soft and luxurious feel. The ebony legs are long and tapered, with a smooth finish that accentuates the chair's modern style. The chair also features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair would be a striking piece of furniture that adds both style and comfort to any room.", + "en-US": "An art deco leather chair with ebony legs has a sleek, streamlined design that exudes sophistication and elegance. The chair has a comfortable padded seat and backrest, with the leather upholstery providing a soft and luxurious feel. The ebony legs are long and tapered, with a smooth finish that accentuates the chair's modern style. The chair also features distinctive art deco elements such as angular shapes, bold lines, and geometric patterns. Overall, this chair would be a striking piece of furniture that adds both style and comfort to any room.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "key": "fawn-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Leder erfordert besondere Pflege", + "en-GB": "- Leather requires special care", + "en-US": "- Leather requires special care", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Fawn_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + ], + "sku": "FARM-05", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sessel "Fawn"", + "en": undefined, + "en-GB": "Fawn Armchair", + "en-US": "Fawn Armchair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3200, - "w": 2400, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Fawn_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "fawn-sessel", + "en": undefined, + "en-GB": "fawn-armchair", + "en-US": "fawn-armchair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "FARM-05", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sessel "Fawn"", - "en": undefined, - "en-GB": "Fawn Armchair", - "en-US": "Fawn Armchair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "fawn-sessel", - "en": undefined, - "en-GB": "fawn-armchair", - "en-US": "fawn-armchair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case.spec.ts index a3b84874b..54f8cf90e 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/geometric-pillow-case.spec.ts @@ -6,710 +6,710 @@ describe(`with geometricPillowCase preset`, () => { const geometricPillowCasePreset = geometricPillowCase().build(); expect(geometricPillowCasePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-decor", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "bedding", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein geometrischer Kissenbezug für Zierkissen ist ein stilvolles und modernes Wohnaccessoire, das jedem Raum einen Hauch von visuellem Interesse verleihen kann. Der Kissenbezug besteht normalerweise aus einem weichen und strapazierfähigen Material wie Baumwolle, Leinen oder Polyester und weist ein kräftiges geometrisches Muster auf, das ein Gefühl von Tiefe und Dimension erzeugt. Das geometrische Muster auf dem Kissenbezug wird normalerweise mit einer Vielzahl von Formen wie Dreiecken, Quadraten oder Sechsecken erstellt, die in einem sich wiederholenden Muster angeordnet sind. Der Kissenbezug verfügt über einen Reißverschluss, so dass er bei Bedarf einfach abgenommen und gewaschen werden kann. Der geometrische Kissenbezug ist ein vielseitiges und stilvolles Accessoire, das verwendet werden kann, um eine Vielzahl von Einrichtungsstilen zu betonen, von modern und minimalistisch bis hin zu unkonventionell und vielseitig. Er ist perfekt, um andere gemusterte Dekorelemente in einem vielseitigen Raum zu ergänzen. Insgesamt ist ein geometrischer Kissenbezug für Zierkissen ein stilvolles und vielseitiges Accessoire, das dazu beitragen kann, in jedem Raum ein zusammenhängendes und optisch interessantes Dekor zu schaffen. Das mutige und moderne Design, kombiniert mit weichen und langlebigen Materialien, machen ihn zu einem unverzichtbaren Accessoire für jedes Zuhause.", - "en": undefined, - "en-GB": "A geometric pillowcase for throw pillows is a stylish and modern home decor accessory that can add a pop of visual interest to any room. The pillowcase is typically made from a soft and durable material, such as cotton, linen, or polyester, and features a bold geometric pattern that creates a sense of depth and dimension. The geometric pattern on the pillowcase is typically created using a variety of shapes, such as triangles, squares, or hexagons, arranged in a repeating pattern. The pillowcase features a zipper closure, making it easy to remove and wash as needed. The geometric pillowcase is a versatile and stylish accessory that can be used to accent a variety of decor styles, from modern and minimalist to bohemian and eclectic. It is perfect for complementing other patterned decor elements in a more eclectic space. Overall, a geometric pillowcase for throw pillows is a stylish and versatile accessory that can help to create a cohesive and visually interesting decor scheme in any room. Its bold and modern design, combined with its soft and durable materials, make it a must-have accessory for any home.", - "en-US": "A geometric pillowcase for throw pillows is a stylish and modern home decor accessory that can add a pop of visual interest to any room. The pillowcase is typically made from a soft and durable material, such as cotton, linen, or polyester, and features a bold geometric pattern that creates a sense of depth and dimension. The geometric pattern on the pillowcase is typically created using a variety of shapes, such as triangles, squares, or hexagons, arranged in a repeating pattern. The pillowcase features a zipper closure, making it easy to remove and wash as needed. The geometric pillowcase is a versatile and stylish accessory that can be used to accent a variety of decor styles, from modern and minimalist to bohemian and eclectic. It is perfect for complementing other patterned decor elements in a more eclectic space. Overall, a geometric pillowcase for throw pillows is a stylish and versatile accessory that can help to create a cohesive and visually interesting decor scheme in any room. Its bold and modern design, combined with its soft and durable materials, make it a must-have accessory for any home.", - "fr": undefined, - }, - "key": "geometric-pillow-case", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-GB": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-US": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable -", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.1.jpeg", - }, - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - ], - "sku": "GPC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Geometrischer Kissenbezug", - "en": undefined, - "en-GB": "Geometric Pillow Case", - "en-US": "Geometric Pillow Case", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "geometrischer-kissenbezug", - "en": undefined, - "en-GB": "geometric-pillow-case", - "en-US": "geometric-pillow-case", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Hell rosa:#FFB6C1", - "en-GB": "Light Pink:#FFB6C1", - "en-US": "Light Pink:#FFB6C1", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-GB": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-US": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable -", + "categories": [ + { + "key": "home-decor", + "typeId": "category", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.1.jpeg", - }, - { - "dimensions": { - "h": 5000, - "w": 5000, + { + "key": "new-arrivals", + "typeId": "category", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", + { + "key": "bedding", + "typeId": "category", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", - }, - }, - ], - "sku": "GPC-02", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-GB": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable", - "en-US": "- Velvet fabric -- Cotton lining -- Pillow case comes with zip for easy removal -- Pillow not included -- Washable -", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.1.jpeg", - }, - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein geometrischer Kissenbezug für Zierkissen ist ein stilvolles und modernes Wohnaccessoire, das jedem Raum einen Hauch von visuellem Interesse verleihen kann. Der Kissenbezug besteht normalerweise aus einem weichen und strapazierfähigen Material wie Baumwolle, Leinen oder Polyester und weist ein kräftiges geometrisches Muster auf, das ein Gefühl von Tiefe und Dimension erzeugt. Das geometrische Muster auf dem Kissenbezug wird normalerweise mit einer Vielzahl von Formen wie Dreiecken, Quadraten oder Sechsecken erstellt, die in einem sich wiederholenden Muster angeordnet sind. Der Kissenbezug verfügt über einen Reißverschluss, so dass er bei Bedarf einfach abgenommen und gewaschen werden kann. Der geometrische Kissenbezug ist ein vielseitiges und stilvolles Accessoire, das verwendet werden kann, um eine Vielzahl von Einrichtungsstilen zu betonen, von modern und minimalistisch bis hin zu unkonventionell und vielseitig. Er ist perfekt, um andere gemusterte Dekorelemente in einem vielseitigen Raum zu ergänzen. Insgesamt ist ein geometrischer Kissenbezug für Zierkissen ein stilvolles und vielseitiges Accessoire, das dazu beitragen kann, in jedem Raum ein zusammenhängendes und optisch interessantes Dekor zu schaffen. Das mutige und moderne Design, kombiniert mit weichen und langlebigen Materialien, machen ihn zu einem unverzichtbaren Accessoire für jedes Zuhause.", + "en": undefined, + "en-GB": "A geometric pillowcase for throw pillows is a stylish and modern home decor accessory that can add a pop of visual interest to any room. The pillowcase is typically made from a soft and durable material, such as cotton, linen, or polyester, and features a bold geometric pattern that creates a sense of depth and dimension. The geometric pattern on the pillowcase is typically created using a variety of shapes, such as triangles, squares, or hexagons, arranged in a repeating pattern. The pillowcase features a zipper closure, making it easy to remove and wash as needed. The geometric pillowcase is a versatile and stylish accessory that can be used to accent a variety of decor styles, from modern and minimalist to bohemian and eclectic. It is perfect for complementing other patterned decor elements in a more eclectic space. Overall, a geometric pillowcase for throw pillows is a stylish and versatile accessory that can help to create a cohesive and visually interesting decor scheme in any room. Its bold and modern design, combined with its soft and durable materials, make it a must-have accessory for any home.", + "en-US": "A geometric pillowcase for throw pillows is a stylish and modern home decor accessory that can add a pop of visual interest to any room. The pillowcase is typically made from a soft and durable material, such as cotton, linen, or polyester, and features a bold geometric pattern that creates a sense of depth and dimension. The geometric pattern on the pillowcase is typically created using a variety of shapes, such as triangles, squares, or hexagons, arranged in a repeating pattern. The pillowcase features a zipper closure, making it easy to remove and wash as needed. The geometric pillowcase is a versatile and stylish accessory that can be used to accent a variety of decor styles, from modern and minimalist to bohemian and eclectic. It is perfect for complementing other patterned decor elements in a more eclectic space. Overall, a geometric pillowcase for throw pillows is a stylish and versatile accessory that can help to create a cohesive and visually interesting decor scheme in any room. Its bold and modern design, combined with its soft and durable materials, make it a must-have accessory for any home.", + "fr": undefined, + }, + "key": "geometric-pillow-case", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-GB": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-US": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable + ", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.1.jpeg", + }, + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.2.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "GPC-01", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Geometrischer Kissenbezug", + "en": undefined, + "en-GB": "Geometric Pillow Case", + "en-US": "Geometric Pillow Case", + "fr": undefined, + }, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "geometrischer-kissenbezug", + "en": undefined, + "en-GB": "geometric-pillow-case", + "en-US": "geometric-pillow-case", + "fr": undefined, + }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Hell rosa:#FFB6C1", + "en-GB": "Light Pink:#FFB6C1", + "en-US": "Light Pink:#FFB6C1", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-GB": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-US": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable + ", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.1.jpeg", + }, + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "GPC-02", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-GB": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable", + "en-US": "- Velvet fabric + - Cotton lining + - Pillow case comes with zip for easy removal + - Pillow not included + - Washable + ", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.1.jpeg", + }, + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "GPC-03", }, - }, - ], - "sku": "GPC-03", - }, - ], -} -`); + ], + } + `); }); it(`should return a geometricPillowCase preset when built for graphql`, () => { const geometricPillowCasePresetGraphql = geometricPillowCase().buildGraphql(); expect(geometricPillowCasePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-decor", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "bedding", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A geometric pillowcase for throw pillows is a stylish and modern home decor accessory that can add a pop of visual interest to any room. The pillowcase is typically made from a soft and durable material, such as cotton, linen, or polyester, and features a bold geometric pattern that creates a sense of depth and dimension. The geometric pattern on the pillowcase is typically created using a variety of shapes, such as triangles, squares, or hexagons, arranged in a repeating pattern. The pillowcase features a zipper closure, making it easy to remove and wash as needed. The geometric pillowcase is a versatile and stylish accessory that can be used to accent a variety of decor styles, from modern and minimalist to bohemian and eclectic. It is perfect for complementing other patterned decor elements in a more eclectic space. Overall, a geometric pillowcase for throw pillows is a stylish and versatile accessory that can help to create a cohesive and visually interesting decor scheme in any room. Its bold and modern design, combined with its soft and durable materials, make it a must-have accessory for any home.", - }, - { - "locale": "en-US", - "value": "A geometric pillowcase for throw pillows is a stylish and modern home decor accessory that can add a pop of visual interest to any room. The pillowcase is typically made from a soft and durable material, such as cotton, linen, or polyester, and features a bold geometric pattern that creates a sense of depth and dimension. The geometric pattern on the pillowcase is typically created using a variety of shapes, such as triangles, squares, or hexagons, arranged in a repeating pattern. The pillowcase features a zipper closure, making it easy to remove and wash as needed. The geometric pillowcase is a versatile and stylish accessory that can be used to accent a variety of decor styles, from modern and minimalist to bohemian and eclectic. It is perfect for complementing other patterned decor elements in a more eclectic space. Overall, a geometric pillowcase for throw pillows is a stylish and versatile accessory that can help to create a cohesive and visually interesting decor scheme in any room. Its bold and modern design, combined with its soft and durable materials, make it a must-have accessory for any home.", - }, - { - "locale": "de-DE", - "value": "Ein geometrischer Kissenbezug für Zierkissen ist ein stilvolles und modernes Wohnaccessoire, das jedem Raum einen Hauch von visuellem Interesse verleihen kann. Der Kissenbezug besteht normalerweise aus einem weichen und strapazierfähigen Material wie Baumwolle, Leinen oder Polyester und weist ein kräftiges geometrisches Muster auf, das ein Gefühl von Tiefe und Dimension erzeugt. Das geometrische Muster auf dem Kissenbezug wird normalerweise mit einer Vielzahl von Formen wie Dreiecken, Quadraten oder Sechsecken erstellt, die in einem sich wiederholenden Muster angeordnet sind. Der Kissenbezug verfügt über einen Reißverschluss, so dass er bei Bedarf einfach abgenommen und gewaschen werden kann. Der geometrische Kissenbezug ist ein vielseitiges und stilvolles Accessoire, das verwendet werden kann, um eine Vielzahl von Einrichtungsstilen zu betonen, von modern und minimalistisch bis hin zu unkonventionell und vielseitig. Er ist perfekt, um andere gemusterte Dekorelemente in einem vielseitigen Raum zu ergänzen. Insgesamt ist ein geometrischer Kissenbezug für Zierkissen ein stilvolles und vielseitiges Accessoire, das dazu beitragen kann, in jedem Raum ein zusammenhängendes und optisch interessantes Dekor zu schaffen. Das mutige und moderne Design, kombiniert mit weichen und langlebigen Materialien, machen ihn zu einem unverzichtbaren Accessoire für jedes Zuhause.", - }, - ], - "key": "geometric-pillow-case", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.1.jpeg", - }, - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", + "categories": [ + { + "key": "home-decor", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", + { + "key": "new-arrivals", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", + { + "key": "bedding", + "typeId": "category", }, - }, - }, - ], - "sku": "GPC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Geometric Pillow Case", - }, - { - "locale": "en-GB", - "value": "Geometric Pillow Case", - }, - { - "locale": "de-DE", - "value": "Geometrischer Kissenbezug", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "geometric-pillow-case", - }, - { - "locale": "en-GB", - "value": "geometric-pillow-case", - }, - { - "locale": "de-DE", - "value": "geometrischer-kissenbezug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Light Pink:#FFB6C1","en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A geometric pillowcase for throw pillows is a stylish and modern home decor accessory that can add a pop of visual interest to any room. The pillowcase is typically made from a soft and durable material, such as cotton, linen, or polyester, and features a bold geometric pattern that creates a sense of depth and dimension. The geometric pattern on the pillowcase is typically created using a variety of shapes, such as triangles, squares, or hexagons, arranged in a repeating pattern. The pillowcase features a zipper closure, making it easy to remove and wash as needed. The geometric pillowcase is a versatile and stylish accessory that can be used to accent a variety of decor styles, from modern and minimalist to bohemian and eclectic. It is perfect for complementing other patterned decor elements in a more eclectic space. Overall, a geometric pillowcase for throw pillows is a stylish and versatile accessory that can help to create a cohesive and visually interesting decor scheme in any room. Its bold and modern design, combined with its soft and durable materials, make it a must-have accessory for any home.", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.1.jpeg", - }, - { - "dimensions": { - "height": 5000, - "width": 5000, + { + "locale": "en-US", + "value": "A geometric pillowcase for throw pillows is a stylish and modern home decor accessory that can add a pop of visual interest to any room. The pillowcase is typically made from a soft and durable material, such as cotton, linen, or polyester, and features a bold geometric pattern that creates a sense of depth and dimension. The geometric pattern on the pillowcase is typically created using a variety of shapes, such as triangles, squares, or hexagons, arranged in a repeating pattern. The pillowcase features a zipper closure, making it easy to remove and wash as needed. The geometric pillowcase is a versatile and stylish accessory that can be used to accent a variety of decor styles, from modern and minimalist to bohemian and eclectic. It is perfect for complementing other patterned decor elements in a more eclectic space. Overall, a geometric pillowcase for throw pillows is a stylish and versatile accessory that can help to create a cohesive and visually interesting decor scheme in any room. Its bold and modern design, combined with its soft and durable materials, make it a must-have accessory for any home.", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", - }, + { + "locale": "de-DE", + "value": "Ein geometrischer Kissenbezug für Zierkissen ist ein stilvolles und modernes Wohnaccessoire, das jedem Raum einen Hauch von visuellem Interesse verleihen kann. Der Kissenbezug besteht normalerweise aus einem weichen und strapazierfähigen Material wie Baumwolle, Leinen oder Polyester und weist ein kräftiges geometrisches Muster auf, das ein Gefühl von Tiefe und Dimension erzeugt. Das geometrische Muster auf dem Kissenbezug wird normalerweise mit einer Vielzahl von Formen wie Dreiecken, Quadraten oder Sechsecken erstellt, die in einem sich wiederholenden Muster angeordnet sind. Der Kissenbezug verfügt über einen Reißverschluss, so dass er bei Bedarf einfach abgenommen und gewaschen werden kann. Der geometrische Kissenbezug ist ein vielseitiges und stilvolles Accessoire, das verwendet werden kann, um eine Vielzahl von Einrichtungsstilen zu betonen, von modern und minimalistisch bis hin zu unkonventionell und vielseitig. Er ist perfekt, um andere gemusterte Dekorelemente in einem vielseitigen Raum zu ergänzen. Insgesamt ist ein geometrischer Kissenbezug für Zierkissen ein stilvolles und vielseitiges Accessoire, das dazu beitragen kann, in jedem Raum ein zusammenhängendes und optisch interessantes Dekor zu schaffen. Das mutige und moderne Design, kombiniert mit weichen und langlebigen Materialien, machen ihn zu einem unverzichtbaren Accessoire für jedes Zuhause.", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", + ], + "key": "geometric-pillow-case", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + { + "name": "productspec", + "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.1.jpeg", + }, + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-1.2.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, }, + ], + "sku": "GPC-01", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Geometric Pillow Case", }, - }, - ], - "sku": "GPC-02", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, + { + "locale": "en-GB", + "value": "Geometric Pillow Case", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.1.jpeg", - }, - { - "dimensions": { - "height": 5000, - "width": 5000, + { + "locale": "de-DE", + "value": "Geometrischer Kissenbezug", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", - }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "geometric-pillow-case", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", - }, + { + "locale": "en-GB", + "value": "geometric-pillow-case", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", - }, + { + "locale": "de-DE", + "value": "geometrischer-kissenbezug", }, - }, - ], - "sku": "GPC-03", - }, - ], -} -`); + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Light Pink:#FFB6C1","en-GB":"Light Pink:#FFB6C1","de-DE":"Hell rosa:#FFB6C1"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.1.jpeg", + }, + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GPC-02", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable\\n","en-GB":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable","de-DE":"- Velvet fabric\\n- Cotton lining\\n- Pillow case comes with zip for easy removal\\n- Pillow not included\\n- Washable"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.1.jpeg", + }, + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Geometric_Pillow_Case-3.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GPC-03", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/glam-armchair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/glam-armchair.spec.ts index cb8ef659f..982b3244e 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/glam-armchair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/glam-armchair.spec.ts @@ -5,320 +5,320 @@ describe(`with glamArmchair preset`, () => { it(`should return a glamArmchair preset`, () => { const glamArmchairPreset = glamArmchair().build(); expect(glamArmchairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein goldfarbener Samtstuhl mit Messingrahmen ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die goldene Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Glamour. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus Goldsamt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Stuhl verfügt über eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Die Armlehnen sind ebenfalls gebogen und bieten eine bequeme Ablagefläche für die Arme. Der Stuhl ist sowohl stilvoll als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", - "en": undefined, - "en-GB": "A gold velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The gold color of the velvet fabric is soft and delicate, adding a touch of glamour to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the gold velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - "en-US": "A gold velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The gold color of the velvet fabric is soft and delicate, adding a touch of glamour to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the gold velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - "fr": undefined, - }, - "key": "glam-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung -- Kissen inklusive", - "en-GB": "- Dry clean only -- Pillow included", - "en-US": "- Dry clean only -- Pillow included", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein goldfarbener Samtstuhl mit Messingrahmen ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die goldene Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Glamour. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus Goldsamt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Stuhl verfügt über eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Die Armlehnen sind ebenfalls gebogen und bieten eine bequeme Ablagefläche für die Arme. Der Stuhl ist sowohl stilvoll als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", + "en": undefined, + "en-GB": "A gold velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The gold color of the velvet fabric is soft and delicate, adding a touch of glamour to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the gold velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + "en-US": "A gold velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The gold color of the velvet fabric is soft and delicate, adding a touch of glamour to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the gold velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Goldene Rute:#DAA520", - "en-GB": "Golden Rod:#DAA520", - "en-US": "Golden Rod:#DAA520", + "key": "glam-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung + - Kissen inklusive", + "en-GB": "- Dry clean only + - Pillow included", + "en-US": "- Dry clean only + - Pillow included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Goldene Rute:#DAA520", + "en-GB": "Golden Rod:#DAA520", + "en-US": "Golden Rod:#DAA520", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Glam_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + ], + "sku": "GARM-093", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Glam Sessel", + "en": undefined, + "en-GB": "Glam Armchair", + "en-US": "Glam Armchair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Glam_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "glam-sessel", + "en": undefined, + "en-GB": "glam-armchair", + "en-US": "glam-armchair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "GARM-093", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Glam Sessel", - "en": undefined, - "en-GB": "Glam Armchair", - "en-US": "Glam Armchair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "glam-sessel", - "en": undefined, - "en-GB": "glam-armchair", - "en-US": "glam-armchair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a glamArmchair preset when built for graphql`, () => { const glamArmchairPresetGraphql = glamArmchair().buildGraphql(); expect(glamArmchairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A gold velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The gold color of the velvet fabric is soft and delicate, adding a touch of glamour to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the gold velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - }, - { - "locale": "en-US", - "value": "A gold velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The gold color of the velvet fabric is soft and delicate, adding a touch of glamour to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the gold velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - }, - { - "locale": "de-DE", - "value": "Ein goldfarbener Samtstuhl mit Messingrahmen ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die goldene Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Glamour. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus Goldsamt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Stuhl verfügt über eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Die Armlehnen sind ebenfalls gebogen und bieten eine bequeme Ablagefläche für die Arme. Der Stuhl ist sowohl stilvoll als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", - }, - ], - "key": "glam-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only\\n- Pillow included","de-DE":"- Nur chemische Reinigung\\n- Kissen inklusive","en-US":"- Dry clean only\\n- Pillow included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Golden Rod:#DAA520","de-DE":"Goldene Rute:#DAA520","en-US":"Golden Rod:#DAA520"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", - }, - ], - "images": [ { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Glam_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A gold velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The gold color of the velvet fabric is soft and delicate, adding a touch of glamour to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the gold velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + }, + { + "locale": "en-US", + "value": "A gold velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The gold color of the velvet fabric is soft and delicate, adding a touch of glamour to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the gold velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + }, + { + "locale": "de-DE", + "value": "Ein goldfarbener Samtstuhl mit Messingrahmen ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die goldene Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Glamour. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus Goldsamt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Stuhl verfügt über eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Die Armlehnen sind ebenfalls gebogen und bieten eine bequeme Ablagefläche für die Arme. Der Stuhl ist sowohl stilvoll als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", }, + ], + "key": "glam-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only\\n- Pillow included","de-DE":"- Nur chemische Reinigung\\n- Kissen inklusive","en-US":"- Dry clean only\\n- Pillow included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Golden Rod:#DAA520","de-DE":"Goldene Rute:#DAA520","en-US":"Golden Rod:#DAA520"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Glam_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GARM-093", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Glam Armchair", + }, + { + "locale": "en-GB", + "value": "Glam Armchair", + }, + { + "locale": "de-DE", + "value": "Glam Sessel", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "glam-armchair", + }, + { + "locale": "en-GB", + "value": "glam-armchair", + }, + { + "locale": "de-DE", + "value": "glam-sessel", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "GARM-093", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Glam Armchair", - }, - { - "locale": "en-GB", - "value": "Glam Armchair", - }, - { - "locale": "de-DE", - "value": "Glam Sessel", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "glam-armchair", - }, - { - "locale": "en-GB", - "value": "glam-armchair", - }, - { - "locale": "de-DE", - "value": "glam-sessel", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses.spec.ts index 740f0b571..1a989509a 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/gold-rimmed-champagne-glasses.spec.ts @@ -6,371 +6,371 @@ describe(`with goldRimmedChampagneGlasses preset`, () => { const goldRimmedChampagneGlassesPreset = goldRimmedChampagneGlasses().build(); expect(goldRimmedChampagneGlassesPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "glassware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Mit einem Set aus Champagner-Kristallgläsern mit Goldrand lässt sich auf luxuriöse und elegante Art Champagner oder Sekt servieren. Diese Gläser sind aus hochwertigem Kristall gefertigt, was ihnen ein klares und funkelndes Aussehen verleiht, das die Blasen im Champagner wunderschön widerspiegelt. Die Gläser verfügen über einen zarten und schlanken Stiel, der es dem Trinker ermöglicht, das Glas zu halten, ohne den Inhalt darin zu erwärmen. Die goldene Umrandung ist ein Detail, das dem Design einen zusätzlichen Hauch von Luxus und Raffinesse und den Gläsern damit ein glamouröses und opulentes Aussehen verleiht. Insgesamt ist das Set aus Champagner-Kristallgläsern mit Goldrand eine atemberaubende und luxuriöse Ergänzung für jede Hausbar oder Unterhaltungssammlung. Das elegante und zeitlose Design, kombiniert mit hochwertigen Materialien und aufwendigen Details, macht es zur perfekten Wahl, um die besonderen Momente des Lebens stilvoll zu feiern.", - "en": undefined, - "en-GB": "A set of gold rimmed champagne crystal glasses is a luxurious and elegant way to serve champagne or sparkling wine. These glasses are made of high-quality crystal, which gives them a clear and sparkling appearance that beautifully reflects the bubbles in the champagne. The glasses feature a delicate and slender stem, which allows the drinker to hold the glass without warming the contents inside. The gold rimmed detail adds an extra touch of luxury and sophistication to the design, giving the glasses a glamorous and opulent appearance. Overall, a set of gold rimmed champagne crystal glasses is a stunning and luxurious addition to any home bar or entertaining collection. Their elegant and timeless design, combined with their high-quality materials and intricate detailing, make them a perfect choice for celebrating life's special moments in style.", - "en-US": "A set of gold rimmed champagne crystal glasses is a luxurious and elegant way to serve champagne or sparkling wine. These glasses are made of high-quality crystal, which gives them a clear and sparkling appearance that beautifully reflects the bubbles in the champagne. The glasses feature a delicate and slender stem, which allows the drinker to hold the glass without warming the contents inside. The gold rimmed detail adds an extra touch of luxury and sophistication to the design, giving the glasses a glamorous and opulent appearance. Overall, a set of gold rimmed champagne crystal glasses is a stunning and luxurious addition to any home bar or entertaining collection. Their elegant and timeless design, combined with their high-quality materials and intricate detailing, make them a perfect choice for celebrating life's special moments in style.", - "fr": undefined, - }, - "key": "gold-rimmed-champagne-glasses", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Set mit 5 Gläsern -- Importierter Kristall -- Goldpolitur an den Felgen", - "en-GB": "- Set of 5 glasses -- Imported crystal -- Gold polish on the rims", - "en-US": "- Set of 5 glasses -- Imported crystal -- Gold polish on the rims", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3288, - "w": 2192, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.1.jpeg", - }, - { - "dimensions": { - "h": 4113, - "w": 5143, + "categories": [ + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "glassware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Mit einem Set aus Champagner-Kristallgläsern mit Goldrand lässt sich auf luxuriöse und elegante Art Champagner oder Sekt servieren. Diese Gläser sind aus hochwertigem Kristall gefertigt, was ihnen ein klares und funkelndes Aussehen verleiht, das die Blasen im Champagner wunderschön widerspiegelt. Die Gläser verfügen über einen zarten und schlanken Stiel, der es dem Trinker ermöglicht, das Glas zu halten, ohne den Inhalt darin zu erwärmen. Die goldene Umrandung ist ein Detail, das dem Design einen zusätzlichen Hauch von Luxus und Raffinesse und den Gläsern damit ein glamouröses und opulentes Aussehen verleiht. Insgesamt ist das Set aus Champagner-Kristallgläsern mit Goldrand eine atemberaubende und luxuriöse Ergänzung für jede Hausbar oder Unterhaltungssammlung. Das elegante und zeitlose Design, kombiniert mit hochwertigen Materialien und aufwendigen Details, macht es zur perfekten Wahl, um die besonderen Momente des Lebens stilvoll zu feiern.", + "en": undefined, + "en-GB": "A set of gold rimmed champagne crystal glasses is a luxurious and elegant way to serve champagne or sparkling wine. These glasses are made of high-quality crystal, which gives them a clear and sparkling appearance that beautifully reflects the bubbles in the champagne. The glasses feature a delicate and slender stem, which allows the drinker to hold the glass without warming the contents inside. The gold rimmed detail adds an extra touch of luxury and sophistication to the design, giving the glasses a glamorous and opulent appearance. Overall, a set of gold rimmed champagne crystal glasses is a stunning and luxurious addition to any home bar or entertaining collection. Their elegant and timeless design, combined with their high-quality materials and intricate detailing, make them a perfect choice for celebrating life's special moments in style.", + "en-US": "A set of gold rimmed champagne crystal glasses is a luxurious and elegant way to serve champagne or sparkling wine. These glasses are made of high-quality crystal, which gives them a clear and sparkling appearance that beautifully reflects the bubbles in the champagne. The glasses feature a delicate and slender stem, which allows the drinker to hold the glass without warming the contents inside. The gold rimmed detail adds an extra touch of luxury and sophistication to the design, giving the glasses a glamorous and opulent appearance. Overall, a set of gold rimmed champagne crystal glasses is a stunning and luxurious addition to any home bar or entertaining collection. Their elegant and timeless design, combined with their high-quality materials and intricate detailing, make them a perfect choice for celebrating life's special moments in style.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.2.jpeg", - }, - { - "dimensions": { - "h": 3435, - "w": 6869, + "key": "gold-rimmed-champagne-glasses", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Set mit 5 Gläsern + - Importierter Kristall + - Goldpolitur an den Felgen", + "en-GB": "- Set of 5 glasses + - Imported crystal + - Gold polish on the rims", + "en-US": "- Set of 5 glasses + - Imported crystal + - Gold polish on the rims", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3288, + "w": 2192, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.1.jpeg", + }, + { + "dimensions": { + "h": 4113, + "w": 5143, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.2.jpeg", + }, + { + "dimensions": { + "h": 3435, + "w": 6869, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.4.jpeg", + }, + { + "dimensions": { + "h": 5077, + "w": 8080, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3000, + "currencyCode": "USD", + }, + }, + ], + "sku": "GRCG-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.4.jpeg", - }, - { - "dimensions": { - "h": 5077, - "w": 8080, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Champagnergläser mit Goldrand", + "en": undefined, + "en-GB": "Gold Rimmed Champagne Glasses", + "en-US": "Gold Rimmed Champagne Glasses", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3000, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3000, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "champagnerglser-mit-goldrand", + "en": undefined, + "en-GB": "gold-rimmed-champagne-glasses", + "en-US": "gold-rimmed-champagne-glasses", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3000, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "GRCG-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Champagnergläser mit Goldrand", - "en": undefined, - "en-GB": "Gold Rimmed Champagne Glasses", - "en-US": "Gold Rimmed Champagne Glasses", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "champagnerglser-mit-goldrand", - "en": undefined, - "en-GB": "gold-rimmed-champagne-glasses", - "en-US": "gold-rimmed-champagne-glasses", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a goldRimmedChampagneGlasses preset when built for graphql`, () => { const goldRimmedChampagneGlassesPresetGraphql = goldRimmedChampagneGlasses().buildGraphql(); expect(goldRimmedChampagneGlassesPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "glassware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A set of gold rimmed champagne crystal glasses is a luxurious and elegant way to serve champagne or sparkling wine. These glasses are made of high-quality crystal, which gives them a clear and sparkling appearance that beautifully reflects the bubbles in the champagne. The glasses feature a delicate and slender stem, which allows the drinker to hold the glass without warming the contents inside. The gold rimmed detail adds an extra touch of luxury and sophistication to the design, giving the glasses a glamorous and opulent appearance. Overall, a set of gold rimmed champagne crystal glasses is a stunning and luxurious addition to any home bar or entertaining collection. Their elegant and timeless design, combined with their high-quality materials and intricate detailing, make them a perfect choice for celebrating life's special moments in style.", - }, - { - "locale": "en-US", - "value": "A set of gold rimmed champagne crystal glasses is a luxurious and elegant way to serve champagne or sparkling wine. These glasses are made of high-quality crystal, which gives them a clear and sparkling appearance that beautifully reflects the bubbles in the champagne. The glasses feature a delicate and slender stem, which allows the drinker to hold the glass without warming the contents inside. The gold rimmed detail adds an extra touch of luxury and sophistication to the design, giving the glasses a glamorous and opulent appearance. Overall, a set of gold rimmed champagne crystal glasses is a stunning and luxurious addition to any home bar or entertaining collection. Their elegant and timeless design, combined with their high-quality materials and intricate detailing, make them a perfect choice for celebrating life's special moments in style.", - }, - { - "locale": "de-DE", - "value": "Mit einem Set aus Champagner-Kristallgläsern mit Goldrand lässt sich auf luxuriöse und elegante Art Champagner oder Sekt servieren. Diese Gläser sind aus hochwertigem Kristall gefertigt, was ihnen ein klares und funkelndes Aussehen verleiht, das die Blasen im Champagner wunderschön widerspiegelt. Die Gläser verfügen über einen zarten und schlanken Stiel, der es dem Trinker ermöglicht, das Glas zu halten, ohne den Inhalt darin zu erwärmen. Die goldene Umrandung ist ein Detail, das dem Design einen zusätzlichen Hauch von Luxus und Raffinesse und den Gläsern damit ein glamouröses und opulentes Aussehen verleiht. Insgesamt ist das Set aus Champagner-Kristallgläsern mit Goldrand eine atemberaubende und luxuriöse Ergänzung für jede Hausbar oder Unterhaltungssammlung. Das elegante und zeitlose Design, kombiniert mit hochwertigen Materialien und aufwendigen Details, macht es zur perfekten Wahl, um die besonderen Momente des Lebens stilvoll zu feiern.", - }, - ], - "key": "gold-rimmed-champagne-glasses", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set of 5 glasses\\n- Imported crystal\\n- Gold polish on the rims","de-DE":"- Set mit 5 Gläsern\\n- Importierter Kristall\\n- Goldpolitur an den Felgen","en-US":"- Set of 5 glasses\\n- Imported crystal\\n- Gold polish on the rims"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3288, - "width": 2192, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.1.jpeg", - }, - { - "dimensions": { - "height": 4113, - "width": 5143, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.2.jpeg", - }, - { - "dimensions": { - "height": 3435, - "width": 6869, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.4.jpeg", - }, - { - "dimensions": { - "height": 5077, - "width": 8080, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3000, - "currencyCode": "EUR", + "categories": [ + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "glassware", + "typeId": "category", }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A set of gold rimmed champagne crystal glasses is a luxurious and elegant way to serve champagne or sparkling wine. These glasses are made of high-quality crystal, which gives them a clear and sparkling appearance that beautifully reflects the bubbles in the champagne. The glasses feature a delicate and slender stem, which allows the drinker to hold the glass without warming the contents inside. The gold rimmed detail adds an extra touch of luxury and sophistication to the design, giving the glasses a glamorous and opulent appearance. Overall, a set of gold rimmed champagne crystal glasses is a stunning and luxurious addition to any home bar or entertaining collection. Their elegant and timeless design, combined with their high-quality materials and intricate detailing, make them a perfect choice for celebrating life's special moments in style.", + }, + { + "locale": "en-US", + "value": "A set of gold rimmed champagne crystal glasses is a luxurious and elegant way to serve champagne or sparkling wine. These glasses are made of high-quality crystal, which gives them a clear and sparkling appearance that beautifully reflects the bubbles in the champagne. The glasses feature a delicate and slender stem, which allows the drinker to hold the glass without warming the contents inside. The gold rimmed detail adds an extra touch of luxury and sophistication to the design, giving the glasses a glamorous and opulent appearance. Overall, a set of gold rimmed champagne crystal glasses is a stunning and luxurious addition to any home bar or entertaining collection. Their elegant and timeless design, combined with their high-quality materials and intricate detailing, make them a perfect choice for celebrating life's special moments in style.", + }, + { + "locale": "de-DE", + "value": "Mit einem Set aus Champagner-Kristallgläsern mit Goldrand lässt sich auf luxuriöse und elegante Art Champagner oder Sekt servieren. Diese Gläser sind aus hochwertigem Kristall gefertigt, was ihnen ein klares und funkelndes Aussehen verleiht, das die Blasen im Champagner wunderschön widerspiegelt. Die Gläser verfügen über einen zarten und schlanken Stiel, der es dem Trinker ermöglicht, das Glas zu halten, ohne den Inhalt darin zu erwärmen. Die goldene Umrandung ist ein Detail, das dem Design einen zusätzlichen Hauch von Luxus und Raffinesse und den Gläsern damit ein glamouröses und opulentes Aussehen verleiht. Insgesamt ist das Set aus Champagner-Kristallgläsern mit Goldrand eine atemberaubende und luxuriöse Ergänzung für jede Hausbar oder Unterhaltungssammlung. Das elegante und zeitlose Design, kombiniert mit hochwertigen Materialien und aufwendigen Details, macht es zur perfekten Wahl, um die besonderen Momente des Lebens stilvoll zu feiern.", + }, + ], + "key": "gold-rimmed-champagne-glasses", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set of 5 glasses\\n- Imported crystal\\n- Gold polish on the rims","de-DE":"- Set mit 5 Gläsern\\n- Importierter Kristall\\n- Goldpolitur an den Felgen","en-US":"- Set of 5 glasses\\n- Imported crystal\\n- Gold polish on the rims"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700","en-US":"Gold:#FFD700"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3288, + "width": 2192, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.1.jpeg", + }, + { + "dimensions": { + "height": 4113, + "width": 5143, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.2.jpeg", + }, + { + "dimensions": { + "height": 3435, + "width": 6869, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.4.jpeg", + }, + { + "dimensions": { + "height": 5077, + "width": 8080, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Gold_Rimmed_Champagne_Glasses-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GRCG-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3000, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Gold Rimmed Champagne Glasses", + }, + { + "locale": "en-GB", + "value": "Gold Rimmed Champagne Glasses", }, + { + "locale": "de-DE", + "value": "Champagnergläser mit Goldrand", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3000, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "gold-rimmed-champagne-glasses", + }, + { + "locale": "en-GB", + "value": "gold-rimmed-champagne-glasses", + }, + { + "locale": "de-DE", + "value": "champagnerglser-mit-goldrand", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "GRCG-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Gold Rimmed Champagne Glasses", - }, - { - "locale": "en-GB", - "value": "Gold Rimmed Champagne Glasses", - }, - { - "locale": "de-DE", - "value": "Champagnergläser mit Goldrand", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "gold-rimmed-champagne-glasses", - }, - { - "locale": "en-GB", - "value": "gold-rimmed-champagne-glasses", - }, - { - "locale": "de-DE", - "value": "champagnerglser-mit-goldrand", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/green-serving-plate.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/green-serving-plate.spec.ts index b44818f01..97d42610b 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/green-serving-plate.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/green-serving-plate.spec.ts @@ -5,329 +5,329 @@ describe(`with greenServingPlate preset`, () => { it(`should return a greenServingPlate preset`, () => { const greenServingPlatePreset = greenServingPlate().build(); expect(greenServingPlatePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Eine stilvolle grüne Servierplatte ist ein Teller, der entworfen wurde, um Speisen mit einem zusätzlichen Hauch von Eleganz und Raffinesse zu servieren. Die Platte ist in einem stilvollen Grünton gefärbt, der von einem sanften Pastellgrün bis zu einem lebhaften Limettengrün variieren kann. Die Farbe wird durch eine glänzende oder matte Oberfläche ergänzt, die der Servierplatte Tiefe und Textur verleiht. Die Form der Platte kann variieren. Einige gebogenen Kanten machen sie visuell zusätzlich interessant. Der Teller hat ein dekoratives Muster und eine Textur. Eine stilvolle grüne Servierplatte ist ideal zum Servieren einer Vielzahl von Speisen, einschließlich Vorspeisen, Hauptgerichten und Desserts. Insgesamt ist der Teller eine schöne und funktionale Wahl zum Servieren von Speisen. Sein einzigartiges Design und seine Farbe machen ihn zu einem Blickfang auf jedem Tisch, während seine Stabilität und Praktikabilität dafür sorgen, dass er sowohl für das tägliche Essen als auch für besondere Anlässe verwendet werden kann.", - "en": undefined, - "en-GB": "A stylish green serving plate is a dish designed to serve food with an added touch of elegance and sophistication. The plate is colored in a stylish green shade, which can vary from a soft pastel green to a vibrant lime green. The color is complemented by a glossy or matte finish, adding depth and texture to the plate. The shape of the plate can vary, with some curved edges for added visual interest. The plate has a decorative pattern and texture. A stylish green serving plate is ideal for serving a variety of foods, including appetizers, entrees, and desserts. Overall, a stylish green serving plate is a beautiful and functional choice for serving food. Its unique design and color make it a statement piece on any table, while its durability and practicality ensure it can be used for everyday dining as well as special occasions.", - "en-US": "A stylish green serving plate is a dish designed to serve food with an added touch of elegance and sophistication. The plate is colored in a stylish green shade, which can vary from a soft pastel green to a vibrant lime green. The color is complemented by a glossy or matte finish, adding depth and texture to the plate. The shape of the plate can vary, with some curved edges for added visual interest. The plate has a decorative pattern and texture. A stylish green serving plate is ideal for serving a variety of foods, including appetizers, entrees, and desserts. Overall, a stylish green serving plate is a beautiful and functional choice for serving food. Its unique design and color make it a statement piece on any table, while its durability and practicality ensure it can be used for everyday dining as well as special occasions.", - "fr": undefined, - }, - "key": "green-serving-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", + "categories": [ + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "plates", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Eine stilvolle grüne Servierplatte ist ein Teller, der entworfen wurde, um Speisen mit einem zusätzlichen Hauch von Eleganz und Raffinesse zu servieren. Die Platte ist in einem stilvollen Grünton gefärbt, der von einem sanften Pastellgrün bis zu einem lebhaften Limettengrün variieren kann. Die Farbe wird durch eine glänzende oder matte Oberfläche ergänzt, die der Servierplatte Tiefe und Textur verleiht. Die Form der Platte kann variieren. Einige gebogenen Kanten machen sie visuell zusätzlich interessant. Der Teller hat ein dekoratives Muster und eine Textur. Eine stilvolle grüne Servierplatte ist ideal zum Servieren einer Vielzahl von Speisen, einschließlich Vorspeisen, Hauptgerichten und Desserts. Insgesamt ist der Teller eine schöne und funktionale Wahl zum Servieren von Speisen. Sein einzigartiges Design und seine Farbe machen ihn zu einem Blickfang auf jedem Tisch, während seine Stabilität und Praktikabilität dafür sorgen, dass er sowohl für das tägliche Essen als auch für besondere Anlässe verwendet werden kann.", + "en": undefined, + "en-GB": "A stylish green serving plate is a dish designed to serve food with an added touch of elegance and sophistication. The plate is colored in a stylish green shade, which can vary from a soft pastel green to a vibrant lime green. The color is complemented by a glossy or matte finish, adding depth and texture to the plate. The shape of the plate can vary, with some curved edges for added visual interest. The plate has a decorative pattern and texture. A stylish green serving plate is ideal for serving a variety of foods, including appetizers, entrees, and desserts. Overall, a stylish green serving plate is a beautiful and functional choice for serving food. Its unique design and color make it a statement piece on any table, while its durability and practicality ensure it can be used for everyday dining as well as special occasions.", + "en-US": "A stylish green serving plate is a dish designed to serve food with an added touch of elegance and sophistication. The plate is colored in a stylish green shade, which can vary from a soft pastel green to a vibrant lime green. The color is complemented by a glossy or matte finish, adding depth and texture to the plate. The shape of the plate can vary, with some curved edges for added visual interest. The plate has a decorative pattern and texture. A stylish green serving plate is ideal for serving a variety of foods, including appetizers, entrees, and desserts. Overall, a stylish green serving plate is a beautiful and functional choice for serving food. Its unique design and color make it a statement piece on any table, while its durability and practicality ensure it can be used for everyday dining as well as special occasions.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Grün:#008000", - "en-GB": "Green:#008000", - "en-US": "Green:#008000", + "key": "green-serving-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grün:#008000", + "en-GB": "Green:#008000", + "en-US": "Green:#008000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4426, + "w": 4631, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.1.jpeg", + }, + { + "dimensions": { + "h": 3653, + "w": 5705, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + ], + "sku": "GC-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4426, - "w": 4631, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Grüne Servierplatte", + "en": undefined, + "en-GB": "Green Serving Plate", + "en-US": "Green Serving Plate", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.1.jpeg", - }, - { - "dimensions": { - "h": 3653, - "w": 5705, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "grne-servierplatte", + "en": undefined, + "en-GB": "green-serving-plate", + "en-US": "green-serving-plate", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "GC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Grüne Servierplatte", - "en": undefined, - "en-GB": "Green Serving Plate", - "en-US": "Green Serving Plate", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "grne-servierplatte", - "en": undefined, - "en-GB": "green-serving-plate", - "en-US": "green-serving-plate", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a greenServingPlate preset when built for graphql`, () => { const greenServingPlatePresetGraphql = greenServingPlate().buildGraphql(); expect(greenServingPlatePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "de-DE", - "value": "Eine stilvolle grüne Servierplatte ist ein Teller, der entworfen wurde, um Speisen mit einem zusätzlichen Hauch von Eleganz und Raffinesse zu servieren. Die Platte ist in einem stilvollen Grünton gefärbt, der von einem sanften Pastellgrün bis zu einem lebhaften Limettengrün variieren kann. Die Farbe wird durch eine glänzende oder matte Oberfläche ergänzt, die der Servierplatte Tiefe und Textur verleiht. Die Form der Platte kann variieren. Einige gebogenen Kanten machen sie visuell zusätzlich interessant. Der Teller hat ein dekoratives Muster und eine Textur. Eine stilvolle grüne Servierplatte ist ideal zum Servieren einer Vielzahl von Speisen, einschließlich Vorspeisen, Hauptgerichten und Desserts. Insgesamt ist der Teller eine schöne und funktionale Wahl zum Servieren von Speisen. Sein einzigartiges Design und seine Farbe machen ihn zu einem Blickfang auf jedem Tisch, während seine Stabilität und Praktikabilität dafür sorgen, dass er sowohl für das tägliche Essen als auch für besondere Anlässe verwendet werden kann.", - }, - { - "locale": "en-GB", - "value": "A stylish green serving plate is a dish designed to serve food with an added touch of elegance and sophistication. The plate is colored in a stylish green shade, which can vary from a soft pastel green to a vibrant lime green. The color is complemented by a glossy or matte finish, adding depth and texture to the plate. The shape of the plate can vary, with some curved edges for added visual interest. The plate has a decorative pattern and texture. A stylish green serving plate is ideal for serving a variety of foods, including appetizers, entrees, and desserts. Overall, a stylish green serving plate is a beautiful and functional choice for serving food. Its unique design and color make it a statement piece on any table, while its durability and practicality ensure it can be used for everyday dining as well as special occasions.", - }, - { - "locale": "en-US", - "value": "A stylish green serving plate is a dish designed to serve food with an added touch of elegance and sophistication. The plate is colored in a stylish green shade, which can vary from a soft pastel green to a vibrant lime green. The color is complemented by a glossy or matte finish, adding depth and texture to the plate. The shape of the plate can vary, with some curved edges for added visual interest. The plate has a decorative pattern and texture. A stylish green serving plate is ideal for serving a variety of foods, including appetizers, entrees, and desserts. Overall, a stylish green serving plate is a beautiful and functional choice for serving food. Its unique design and color make it a statement piece on any table, while its durability and practicality ensure it can be used for everyday dining as well as special occasions.", - }, - ], - "key": "green-serving-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", - }, - { - "name": "color", - "value": "{"en-GB":"Green:#008000","de-DE":"Grün:#008000","en-US":"Green:#008000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4426, - "width": 4631, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.1.jpeg", - }, { - "dimensions": { - "height": 3653, - "width": 5705, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "EUR", + "categories": [ + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "plates", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "de-DE", + "value": "Eine stilvolle grüne Servierplatte ist ein Teller, der entworfen wurde, um Speisen mit einem zusätzlichen Hauch von Eleganz und Raffinesse zu servieren. Die Platte ist in einem stilvollen Grünton gefärbt, der von einem sanften Pastellgrün bis zu einem lebhaften Limettengrün variieren kann. Die Farbe wird durch eine glänzende oder matte Oberfläche ergänzt, die der Servierplatte Tiefe und Textur verleiht. Die Form der Platte kann variieren. Einige gebogenen Kanten machen sie visuell zusätzlich interessant. Der Teller hat ein dekoratives Muster und eine Textur. Eine stilvolle grüne Servierplatte ist ideal zum Servieren einer Vielzahl von Speisen, einschließlich Vorspeisen, Hauptgerichten und Desserts. Insgesamt ist der Teller eine schöne und funktionale Wahl zum Servieren von Speisen. Sein einzigartiges Design und seine Farbe machen ihn zu einem Blickfang auf jedem Tisch, während seine Stabilität und Praktikabilität dafür sorgen, dass er sowohl für das tägliche Essen als auch für besondere Anlässe verwendet werden kann.", + }, + { + "locale": "en-GB", + "value": "A stylish green serving plate is a dish designed to serve food with an added touch of elegance and sophistication. The plate is colored in a stylish green shade, which can vary from a soft pastel green to a vibrant lime green. The color is complemented by a glossy or matte finish, adding depth and texture to the plate. The shape of the plate can vary, with some curved edges for added visual interest. The plate has a decorative pattern and texture. A stylish green serving plate is ideal for serving a variety of foods, including appetizers, entrees, and desserts. Overall, a stylish green serving plate is a beautiful and functional choice for serving food. Its unique design and color make it a statement piece on any table, while its durability and practicality ensure it can be used for everyday dining as well as special occasions.", }, + { + "locale": "en-US", + "value": "A stylish green serving plate is a dish designed to serve food with an added touch of elegance and sophistication. The plate is colored in a stylish green shade, which can vary from a soft pastel green to a vibrant lime green. The color is complemented by a glossy or matte finish, adding depth and texture to the plate. The shape of the plate can vary, with some curved edges for added visual interest. The plate has a decorative pattern and texture. A stylish green serving plate is ideal for serving a variety of foods, including appetizers, entrees, and desserts. Overall, a stylish green serving plate is a beautiful and functional choice for serving food. Its unique design and color make it a statement piece on any table, while its durability and practicality ensure it can be used for everyday dining as well as special occasions.", + }, + ], + "key": "green-serving-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", + }, + { + "name": "color", + "value": "{"en-GB":"Green:#008000","de-DE":"Grün:#008000","en-US":"Green:#008000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4426, + "width": 4631, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.1.jpeg", + }, + { + "dimensions": { + "height": 3653, + "width": 5705, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Green_Serving_Plate-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GC-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Green Serving Plate", + }, + { + "locale": "en-GB", + "value": "Green Serving Plate", + }, + { + "locale": "de-DE", + "value": "Grüne Servierplatte", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "green-serving-plate", + }, + { + "locale": "en-GB", + "value": "green-serving-plate", + }, + { + "locale": "de-DE", + "value": "grne-servierplatte", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "GC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Green Serving Plate", - }, - { - "locale": "en-GB", - "value": "Green Serving Plate", - }, - { - "locale": "de-DE", - "value": "Grüne Servierplatte", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "green-serving-plate", - }, - { - "locale": "en-GB", - "value": "green-serving-plate", - }, - { - "locale": "de-DE", - "value": "grne-servierplatte", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass.spec.ts index 0cde82c3d..7280c1783 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/harmony-drinking-glass.spec.ts @@ -6,311 +6,343 @@ describe(`with harmonyDrinkingGlass preset`, () => { const harmonyDrinkingGlassPreset = harmonyDrinkingGlass().build(); expect(harmonyDrinkingGlassPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das Trinkglas Harmonie wurde entwickelt, um Wasser oder andere Getränke zu servieren. Es hat eine Kapazität von etwa 230 bis 350ml. Das Design des Wasserglases soll das Halten und Trinken einfach und bequem machen. Es hat einen geraden Körper mit glatten Seiten und einer dicken, stabilen Basis, die für Gleichgewicht und Stabilität sorgt. Der Rand des Glases ist leicht gewölbt oder abgerundet, was das Trinken angenehm macht. Das Trinkglas Harmonie kann für eine Vielzahl von Getränken verwendet werden, darunter Wasser, Saft, Eistee und andere alkoholfreie Getränke. Die Trinkgläser sind im Allgemeinen leicht zu reinigen und zu pflegen. Sie können von Hand oder in der Spülmaschine gewaschen werden und sollten gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Insgesamt ist das Harmonie Trinkglas ein schlichter und funktionaler Trinkglastyp, der sich ideal für den täglichen Gebrauch eignet. Sein einfaches Design und seine Vielseitigkeit machen es zu einer beliebten Wahl für lässige und formelle Anlässe.", - "en": undefined, - "en-GB": "The Harmony Drinking Glass is designed to hold water or other beverages. It has a capacity of around 8 to 12 ounces. The design of the water glass is intended to make it easy and comfortable to hold and drink from. It has a straight, smooth-sided body with a thick, stable base that provides balance and stability. The rim of the glass is slightly curved or rounded, making it comfortable to drink from. The Harmony Drinking Glass can be used for a variety of beverages, including water, juice, iced tea, and other non-alcoholic drinks. The drinking glasses are generally easy to clean and maintain. They can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Harmony Drinking Glass is a simple and functional type of drinking glass that is ideal for everyday use. Its basic design and versatility make it a popular choice for both casual and formal settings.", - "en-US": "The Harmony Drinking Glass is designed to hold water or other beverages. It has a capacity of around 8 to 12 ounces. The design of the water glass is intended to make it easy and comfortable to hold and drink from. It has a straight, smooth-sided body with a thick, stable base that provides balance and stability. The rim of the glass is slightly curved or rounded, making it comfortable to drink from. The Harmony Drinking Glass can be used for a variety of beverages, including water, juice, iced tea, and other non-alcoholic drinks. The drinking glasses are generally easy to clean and maintain. They can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Harmony Drinking Glass is a simple and functional type of drinking glass that is ideal for everyday use. Its basic design and versatility make it a popular choice for both casual and formal settings.", - "fr": undefined, - }, - "key": "harmony-drinking-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das Trinkglas Harmonie wurde entwickelt, um Wasser oder andere Getränke zu servieren. Es hat eine Kapazität von etwa 230 bis 350ml. Das Design des Wasserglases soll das Halten und Trinken einfach und bequem machen. Es hat einen geraden Körper mit glatten Seiten und einer dicken, stabilen Basis, die für Gleichgewicht und Stabilität sorgt. Der Rand des Glases ist leicht gewölbt oder abgerundet, was das Trinken angenehm macht. Das Trinkglas Harmonie kann für eine Vielzahl von Getränken verwendet werden, darunter Wasser, Saft, Eistee und andere alkoholfreie Getränke. Die Trinkgläser sind im Allgemeinen leicht zu reinigen und zu pflegen. Sie können von Hand oder in der Spülmaschine gewaschen werden und sollten gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Insgesamt ist das Harmonie Trinkglas ein schlichter und funktionaler Trinkglastyp, der sich ideal für den täglichen Gebrauch eignet. Sein einfaches Design und seine Vielseitigkeit machen es zu einer beliebten Wahl für lässige und formelle Anlässe.", + "en": undefined, + "en-GB": "The Harmony Drinking Glass is designed to hold water or other beverages. It has a capacity of around 8 to 12 ounces. The design of the water glass is intended to make it easy and comfortable to hold and drink from. It has a straight, smooth-sided body with a thick, stable base that provides balance and stability. The rim of the glass is slightly curved or rounded, making it comfortable to drink from. The Harmony Drinking Glass can be used for a variety of beverages, including water, juice, iced tea, and other non-alcoholic drinks. The drinking glasses are generally easy to clean and maintain. They can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Harmony Drinking Glass is a simple and functional type of drinking glass that is ideal for everyday use. Its basic design and versatility make it a popular choice for both casual and formal settings.", + "en-US": "The Harmony Drinking Glass is designed to hold water or other beverages. It has a capacity of around 8 to 12 ounces. The design of the water glass is intended to make it easy and comfortable to hold and drink from. It has a straight, smooth-sided body with a thick, stable base that provides balance and stability. The rim of the glass is slightly curved or rounded, making it comfortable to drink from. The Harmony Drinking Glass can be used for a variety of beverages, including water, juice, iced tea, and other non-alcoholic drinks. The drinking glasses are generally easy to clean and maintain. They can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Harmony Drinking Glass is a simple and functional type of drinking glass that is ideal for everyday use. Its basic design and versatility make it a popular choice for both casual and formal settings.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + "key": "harmony-drinking-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harmony_Drinking_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + ], + "sku": "HDG-02", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Harmonie Trinkglas", + "en": undefined, + "en-GB": "Harmony Drinking Glass", + "en-US": "Harmony Drinking Glass", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harmony_Drinking_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "harmonie-trinkglas", + "en": undefined, + "en-GB": "harmony-drinking-glass", + "en-US": "harmony-drinking-glass", + "fr": undefined, }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "GBP", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "USD", - }, - }, - ], - "sku": "HDG-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Harmonie Trinkglas", - "en": undefined, - "en-GB": "Harmony Drinking Glass", - "en-US": "Harmony Drinking Glass", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "harmonie-trinkglas", - "en": undefined, - "en-GB": "harmony-drinking-glass", - "en-US": "harmony-drinking-glass", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a harmonyDrinkingGlass preset when built for graphql`, () => { const harmonyDrinkingGlassPresetGraphql = harmonyDrinkingGlass().buildGraphql(); expect(harmonyDrinkingGlassPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "The Harmony Drinking Glass is designed to hold water or other beverages. It has a capacity of around 8 to 12 ounces. The design of the water glass is intended to make it easy and comfortable to hold and drink from. It has a straight, smooth-sided body with a thick, stable base that provides balance and stability. The rim of the glass is slightly curved or rounded, making it comfortable to drink from. The Harmony Drinking Glass can be used for a variety of beverages, including water, juice, iced tea, and other non-alcoholic drinks. The drinking glasses are generally easy to clean and maintain. They can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Harmony Drinking Glass is a simple and functional type of drinking glass that is ideal for everyday use. Its basic design and versatility make it a popular choice for both casual and formal settings.", - }, - { - "locale": "en-US", - "value": "The Harmony Drinking Glass is designed to hold water or other beverages. It has a capacity of around 8 to 12 ounces. The design of the water glass is intended to make it easy and comfortable to hold and drink from. It has a straight, smooth-sided body with a thick, stable base that provides balance and stability. The rim of the glass is slightly curved or rounded, making it comfortable to drink from. The Harmony Drinking Glass can be used for a variety of beverages, including water, juice, iced tea, and other non-alcoholic drinks. The drinking glasses are generally easy to clean and maintain. They can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Harmony Drinking Glass is a simple and functional type of drinking glass that is ideal for everyday use. Its basic design and versatility make it a popular choice for both casual and formal settings.", - }, - { - "locale": "de-DE", - "value": "Das Trinkglas Harmonie wurde entwickelt, um Wasser oder andere Getränke zu servieren. Es hat eine Kapazität von etwa 230 bis 350ml. Das Design des Wasserglases soll das Halten und Trinken einfach und bequem machen. Es hat einen geraden Körper mit glatten Seiten und einer dicken, stabilen Basis, die für Gleichgewicht und Stabilität sorgt. Der Rand des Glases ist leicht gewölbt oder abgerundet, was das Trinken angenehm macht. Das Trinkglas Harmonie kann für eine Vielzahl von Getränken verwendet werden, darunter Wasser, Saft, Eistee und andere alkoholfreie Getränke. Die Trinkgläser sind im Allgemeinen leicht zu reinigen und zu pflegen. Sie können von Hand oder in der Spülmaschine gewaschen werden und sollten gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Insgesamt ist das Harmonie Trinkglas ein schlichter und funktionaler Trinkglastyp, der sich ideal für den täglichen Gebrauch eignet. Sein einfaches Design und seine Vielseitigkeit machen es zu einer beliebten Wahl für lässige und formelle Anlässe.", - }, - ], - "key": "harmony-drinking-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harmony_Drinking_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "The Harmony Drinking Glass is designed to hold water or other beverages. It has a capacity of around 8 to 12 ounces. The design of the water glass is intended to make it easy and comfortable to hold and drink from. It has a straight, smooth-sided body with a thick, stable base that provides balance and stability. The rim of the glass is slightly curved or rounded, making it comfortable to drink from. The Harmony Drinking Glass can be used for a variety of beverages, including water, juice, iced tea, and other non-alcoholic drinks. The drinking glasses are generally easy to clean and maintain. They can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Harmony Drinking Glass is a simple and functional type of drinking glass that is ideal for everyday use. Its basic design and versatility make it a popular choice for both casual and formal settings.", + }, + { + "locale": "en-US", + "value": "The Harmony Drinking Glass is designed to hold water or other beverages. It has a capacity of around 8 to 12 ounces. The design of the water glass is intended to make it easy and comfortable to hold and drink from. It has a straight, smooth-sided body with a thick, stable base that provides balance and stability. The rim of the glass is slightly curved or rounded, making it comfortable to drink from. The Harmony Drinking Glass can be used for a variety of beverages, including water, juice, iced tea, and other non-alcoholic drinks. The drinking glasses are generally easy to clean and maintain. They can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Harmony Drinking Glass is a simple and functional type of drinking glass that is ideal for everyday use. Its basic design and versatility make it a popular choice for both casual and formal settings.", + }, + { + "locale": "de-DE", + "value": "Das Trinkglas Harmonie wurde entwickelt, um Wasser oder andere Getränke zu servieren. Es hat eine Kapazität von etwa 230 bis 350ml. Das Design des Wasserglases soll das Halten und Trinken einfach und bequem machen. Es hat einen geraden Körper mit glatten Seiten und einer dicken, stabilen Basis, die für Gleichgewicht und Stabilität sorgt. Der Rand des Glases ist leicht gewölbt oder abgerundet, was das Trinken angenehm macht. Das Trinkglas Harmonie kann für eine Vielzahl von Getränken verwendet werden, darunter Wasser, Saft, Eistee und andere alkoholfreie Getränke. Die Trinkgläser sind im Allgemeinen leicht zu reinigen und zu pflegen. Sie können von Hand oder in der Spülmaschine gewaschen werden und sollten gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Insgesamt ist das Harmonie Trinkglas ein schlichter und funktionaler Trinkglastyp, der sich ideal für den täglichen Gebrauch eignet. Sein einfaches Design und seine Vielseitigkeit machen es zu einer beliebten Wahl für lässige und formelle Anlässe.", + }, + ], + "key": "harmony-drinking-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser","en-US":"- Set includes 6 glasses"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harmony_Drinking_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "HDG-02", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Harmony Drinking Glass", + }, + { + "locale": "en-GB", + "value": "Harmony Drinking Glass", + }, + { + "locale": "de-DE", + "value": "Harmonie Trinkglas", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "harmony-drinking-glass", + }, + { + "locale": "en-GB", + "value": "harmony-drinking-glass", + }, + { + "locale": "de-DE", + "value": "harmonie-trinkglas", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "HDG-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Harmony Drinking Glass", - }, - { - "locale": "en-GB", - "value": "Harmony Drinking Glass", - }, - { - "locale": "de-DE", - "value": "Harmonie Trinkglas", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "harmony-drinking-glass", - }, - { - "locale": "en-GB", - "value": "harmony-drinking-glass", - }, - { - "locale": "de-DE", - "value": "harmonie-trinkglas", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/harvest-plate.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/harvest-plate.spec.ts index 4c5ca0c34..bf9a43a12 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/harvest-plate.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/harvest-plate.spec.ts @@ -5,321 +5,321 @@ describe(`with harvestPlate preset`, () => { it(`should return a harvestPlate preset`, () => { const harvestPlatePreset = harvestPlate().build(); expect(harvestPlatePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Diese muschelförmige Servierplatte ist ideal zum Servieren von Meeresfrüchten wie Garnelen, Austern oder Sushi-Rollen, kann aber auch für andere Gerichte verwendet werden. Es ist eine beliebte Wahl für Strandpartys, Küstenrestaurants oder für diejenigen, die ihr Zuhause gerne mit nautischen Akzenten dekorieren. Insgesamt ist ein muschelförmiger Servierteller eine einzigartige und stilvolle Wahl zum Servieren von Speisen. Sein natürliches Aussehen und das vom Strand inspirierte Design machen es zu einer lustigen und skurrilen Ergänzung für jeden Essensanlass.", - "en": undefined, - "en-GB": "This seashell-shaped serving plate is ideal for serving seafood, such as shrimp, oysters, or sushi rolls, but can also be used for other types of cuisine. It is a popular choice for beach-themed parties, coastal restaurants, or for those who enjoy decorating their home with nautical accents. Overall, a seashell shaped serving plate is a unique and stylish choice for serving food. Its natural appearance and beach-inspired design make it a fun and whimsical addition to any dining occasion.", - "en-US": "This seashell-shaped serving plate is ideal for serving seafood, such as shrimp, oysters, or sushi rolls, but can also be used for other types of cuisine. It is a popular choice for beach-themed parties, coastal restaurants, or for those who enjoy decorating their home with nautical accents. Overall, a seashell shaped serving plate is a unique and stylish choice for serving food. Its natural appearance and beach-inspired design make it a fun and whimsical addition to any dining occasion.", - "fr": undefined, - }, - "key": "harvest-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", + "categories": [ + { + "key": "plates", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Diese muschelförmige Servierplatte ist ideal zum Servieren von Meeresfrüchten wie Garnelen, Austern oder Sushi-Rollen, kann aber auch für andere Gerichte verwendet werden. Es ist eine beliebte Wahl für Strandpartys, Küstenrestaurants oder für diejenigen, die ihr Zuhause gerne mit nautischen Akzenten dekorieren. Insgesamt ist ein muschelförmiger Servierteller eine einzigartige und stilvolle Wahl zum Servieren von Speisen. Sein natürliches Aussehen und das vom Strand inspirierte Design machen es zu einer lustigen und skurrilen Ergänzung für jeden Essensanlass.", + "en": undefined, + "en-GB": "This seashell-shaped serving plate is ideal for serving seafood, such as shrimp, oysters, or sushi rolls, but can also be used for other types of cuisine. It is a popular choice for beach-themed parties, coastal restaurants, or for those who enjoy decorating their home with nautical accents. Overall, a seashell shaped serving plate is a unique and stylish choice for serving food. Its natural appearance and beach-inspired design make it a fun and whimsical addition to any dining occasion.", + "en-US": "This seashell-shaped serving plate is ideal for serving seafood, such as shrimp, oysters, or sushi rolls, but can also be used for other types of cuisine. It is a popular choice for beach-themed parties, coastal restaurants, or for those who enjoy decorating their home with nautical accents. Overall, a seashell shaped serving plate is a unique and stylish choice for serving food. Its natural appearance and beach-inspired design make it a fun and whimsical addition to any dining occasion.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "key": "harvest-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3812, + "w": 4421, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harvest_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "USD", + }, + }, + ], + "sku": "HP-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3812, - "w": 4421, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Ernteplatte", + "en": undefined, + "en-GB": "Harvest Plate", + "en-US": "Harvest Plate", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harvest_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "ernteplatte", + "en": undefined, + "en-GB": "harvest-plate", + "en-US": "harvest-plate", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "HP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Ernteplatte", - "en": undefined, - "en-GB": "Harvest Plate", - "en-US": "Harvest Plate", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "ernteplatte", - "en": undefined, - "en-GB": "harvest-plate", - "en-US": "harvest-plate", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a harvestPlate preset when built for graphql`, () => { const harvestPlatePresetGraphql = harvestPlate().buildGraphql(); expect(harvestPlatePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This seashell-shaped serving plate is ideal for serving seafood, such as shrimp, oysters, or sushi rolls, but can also be used for other types of cuisine. It is a popular choice for beach-themed parties, coastal restaurants, or for those who enjoy decorating their home with nautical accents. Overall, a seashell shaped serving plate is a unique and stylish choice for serving food. Its natural appearance and beach-inspired design make it a fun and whimsical addition to any dining occasion.", - }, - { - "locale": "en-US", - "value": "This seashell-shaped serving plate is ideal for serving seafood, such as shrimp, oysters, or sushi rolls, but can also be used for other types of cuisine. It is a popular choice for beach-themed parties, coastal restaurants, or for those who enjoy decorating their home with nautical accents. Overall, a seashell shaped serving plate is a unique and stylish choice for serving food. Its natural appearance and beach-inspired design make it a fun and whimsical addition to any dining occasion.", - }, - { - "locale": "de-DE", - "value": "Diese muschelförmige Servierplatte ist ideal zum Servieren von Meeresfrüchten wie Garnelen, Austern oder Sushi-Rollen, kann aber auch für andere Gerichte verwendet werden. Es ist eine beliebte Wahl für Strandpartys, Küstenrestaurants oder für diejenigen, die ihr Zuhause gerne mit nautischen Akzenten dekorieren. Insgesamt ist ein muschelförmiger Servierteller eine einzigartige und stilvolle Wahl zum Servieren von Speisen. Sein natürliches Aussehen und das vom Strand inspirierte Design machen es zu einer lustigen und skurrilen Ergänzung für jeden Essensanlass.", - }, - ], - "key": "harvest-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3812, - "width": 4421, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harvest_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "EUR", + "categories": [ + { + "key": "plates", + "typeId": "category", }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This seashell-shaped serving plate is ideal for serving seafood, such as shrimp, oysters, or sushi rolls, but can also be used for other types of cuisine. It is a popular choice for beach-themed parties, coastal restaurants, or for those who enjoy decorating their home with nautical accents. Overall, a seashell shaped serving plate is a unique and stylish choice for serving food. Its natural appearance and beach-inspired design make it a fun and whimsical addition to any dining occasion.", + }, + { + "locale": "en-US", + "value": "This seashell-shaped serving plate is ideal for serving seafood, such as shrimp, oysters, or sushi rolls, but can also be used for other types of cuisine. It is a popular choice for beach-themed parties, coastal restaurants, or for those who enjoy decorating their home with nautical accents. Overall, a seashell shaped serving plate is a unique and stylish choice for serving food. Its natural appearance and beach-inspired design make it a fun and whimsical addition to any dining occasion.", + }, + { + "locale": "de-DE", + "value": "Diese muschelförmige Servierplatte ist ideal zum Servieren von Meeresfrüchten wie Garnelen, Austern oder Sushi-Rollen, kann aber auch für andere Gerichte verwendet werden. Es ist eine beliebte Wahl für Strandpartys, Küstenrestaurants oder für diejenigen, die ihr Zuhause gerne mit nautischen Akzenten dekorieren. Insgesamt ist ein muschelförmiger Servierteller eine einzigartige und stilvolle Wahl zum Servieren von Speisen. Sein natürliches Aussehen und das vom Strand inspirierte Design machen es zu einer lustigen und skurrilen Ergänzung für jeden Essensanlass.", + }, + ], + "key": "harvest-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3812, + "width": 4421, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Harvest_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "HP-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Harvest Plate", + }, + { + "locale": "en-GB", + "value": "Harvest Plate", + }, + { + "locale": "de-DE", + "value": "Ernteplatte", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "harvest-plate", + }, + { + "locale": "en-GB", + "value": "harvest-plate", + }, + { + "locale": "de-DE", + "value": "ernteplatte", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "HP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Harvest Plate", - }, - { - "locale": "en-GB", - "value": "Harvest Plate", - }, - { - "locale": "de-DE", - "value": "Ernteplatte", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "harvest-plate", - }, - { - "locale": "en-GB", - "value": "harvest-plate", - }, - { - "locale": "de-DE", - "value": "ernteplatte", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ice-bucket.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ice-bucket.spec.ts index b9c0146fc..43aa7b289 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ice-bucket.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ice-bucket.spec.ts @@ -5,307 +5,307 @@ describe(`with iceBucket preset`, () => { it(`should return a iceBucket preset`, () => { const iceBucketPreset = iceBucket().build(); expect(iceBucketPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Eiskübel aus Metall ist ein Behälter zum Aufbewahren und Servieren von Eis. Er besteht aus Edelstahl und ist so konzipiert, dass er das Eis über einen längeren Zeitraum kalt hält. Das Äußere des Eiskübels ist poliert und hat eine verlängerte Lippe zum einfachen Tragen. Die Innenseite ist glatt und poliert, damit das Eis nicht an den Wänden des Eimers kleben bleibt.", - "en": undefined, - "en-GB": "A metal ice bucket is a container used for holding and serving ice. It is made of stainless steel and designed to keep the ice cold for an extended period of time. The exterior of the ice bucket is polished and has an extended lip for easy carrying. The interior is smooth and polished to prevent the ice from sticking to the walls of the bucket.", - "en-US": "A metal ice bucket is a container used for holding and serving ice. It is made of stainless steel and designed to keep the ice cold for an extended period of time. The exterior of the ice bucket is polished and has an extended lip for easy carrying. The interior is smooth and polished to prevent the ice from sticking to the walls of the bucket.", - "fr": undefined, - }, - "key": "ice-bucket", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl -- Spülmaschinenfest", - "en-GB": "- Stainless steel -- Dishwasher safe", - "en-US": "- Stainless steel -- Dishwasher safe", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Eiskübel aus Metall ist ein Behälter zum Aufbewahren und Servieren von Eis. Er besteht aus Edelstahl und ist so konzipiert, dass er das Eis über einen längeren Zeitraum kalt hält. Das Äußere des Eiskübels ist poliert und hat eine verlängerte Lippe zum einfachen Tragen. Die Innenseite ist glatt und poliert, damit das Eis nicht an den Wänden des Eimers kleben bleibt.", + "en": undefined, + "en-GB": "A metal ice bucket is a container used for holding and serving ice. It is made of stainless steel and designed to keep the ice cold for an extended period of time. The exterior of the ice bucket is polished and has an extended lip for easy carrying. The interior is smooth and polished to prevent the ice from sticking to the walls of the bucket.", + "en-US": "A metal ice bucket is a container used for holding and serving ice. It is made of stainless steel and designed to keep the ice cold for an extended period of time. The exterior of the ice bucket is polished and has an extended lip for easy carrying. The interior is smooth and polished to prevent the ice from sticking to the walls of the bucket.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "key": "ice-bucket", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl + - Spülmaschinenfest", + "en-GB": "- Stainless steel + - Dishwasher safe", + "en-US": "- Stainless steel + - Dishwasher safe", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4992, + "w": 5072, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ice_Bucket-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + ], + "sku": "BUCK-023", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4992, - "w": 5072, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Eis Eimer", + "en": undefined, + "en-GB": "Ice Bucket", + "en-US": "Ice Bucket", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ice_Bucket-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "eis-eimer", + "en": undefined, + "en-GB": "ice-bucket", + "en-US": "ice-bucket", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BUCK-023", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Eis Eimer", - "en": undefined, - "en-GB": "Ice Bucket", - "en-US": "Ice Bucket", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "eis-eimer", - "en": undefined, - "en-GB": "ice-bucket", - "en-US": "ice-bucket", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a iceBucket preset when built for graphql`, () => { const iceBucketPresetGraphql = iceBucket().buildGraphql(); expect(iceBucketPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A metal ice bucket is a container used for holding and serving ice. It is made of stainless steel and designed to keep the ice cold for an extended period of time. The exterior of the ice bucket is polished and has an extended lip for easy carrying. The interior is smooth and polished to prevent the ice from sticking to the walls of the bucket.", - }, - { - "locale": "en-US", - "value": "A metal ice bucket is a container used for holding and serving ice. It is made of stainless steel and designed to keep the ice cold for an extended period of time. The exterior of the ice bucket is polished and has an extended lip for easy carrying. The interior is smooth and polished to prevent the ice from sticking to the walls of the bucket.", - }, - { - "locale": "de-DE", - "value": "Ein Eiskübel aus Metall ist ein Behälter zum Aufbewahren und Servieren von Eis. Er besteht aus Edelstahl und ist so konzipiert, dass er das Eis über einen längeren Zeitraum kalt hält. Das Äußere des Eiskübels ist poliert und hat eine verlängerte Lippe zum einfachen Tragen. Die Innenseite ist glatt und poliert, damit das Eis nicht an den Wänden des Eimers kleben bleibt.", - }, - ], - "key": "ice-bucket", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4992, - "width": 5072, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ice_Bucket-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "EUR", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A metal ice bucket is a container used for holding and serving ice. It is made of stainless steel and designed to keep the ice cold for an extended period of time. The exterior of the ice bucket is polished and has an extended lip for easy carrying. The interior is smooth and polished to prevent the ice from sticking to the walls of the bucket.", + }, + { + "locale": "en-US", + "value": "A metal ice bucket is a container used for holding and serving ice. It is made of stainless steel and designed to keep the ice cold for an extended period of time. The exterior of the ice bucket is polished and has an extended lip for easy carrying. The interior is smooth and polished to prevent the ice from sticking to the walls of the bucket.", + }, + { + "locale": "de-DE", + "value": "Ein Eiskübel aus Metall ist ein Behälter zum Aufbewahren und Servieren von Eis. Er besteht aus Edelstahl und ist so konzipiert, dass er das Eis über einen längeren Zeitraum kalt hält. Das Äußere des Eiskübels ist poliert und hat eine verlängerte Lippe zum einfachen Tragen. Die Innenseite ist glatt und poliert, damit das Eis nicht an den Wänden des Eimers kleben bleibt.", + }, + ], + "key": "ice-bucket", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel\\n- Dishwasher safe","de-DE":"- Edelstahl\\n- Spülmaschinenfest","en-US":"- Stainless steel\\n- Dishwasher safe"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4992, + "width": 5072, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ice_Bucket-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BUCK-023", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Ice Bucket", }, + { + "locale": "en-GB", + "value": "Ice Bucket", + }, + { + "locale": "de-DE", + "value": "Eis Eimer", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "ice-bucket", + }, + { + "locale": "en-GB", + "value": "ice-bucket", + }, + { + "locale": "de-DE", + "value": "eis-eimer", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BUCK-023", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Ice Bucket", - }, - { - "locale": "en-GB", - "value": "Ice Bucket", - }, - { - "locale": "de-DE", - "value": "Eis Eimer", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "ice-bucket", - }, - { - "locale": "en-GB", - "value": "ice-bucket", - }, - { - "locale": "de-DE", - "value": "eis-eimer", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover.spec.ts index f157bdb3a..fe7426183 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/idun-pillow-cover.spec.ts @@ -5,306 +5,338 @@ describe(`with idunPillowCover preset`, () => { it(`should return a idunPillowCover preset`, () => { const idunPillowCoverPreset = idunPillowCover().build(); expect(idunPillowCoverPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein brauner Samt-Kissenbezug ist eine Art Textilbezug für ein dekoratives Kissen, das normalerweise verwendet wird, um einem Raum visuelles Interesse, Textur und einen Hauch von Luxus zu verleihen. Es besteht aus einem weichen und plüschigen Samtstoff, der für seine glatte Oberfläche, seine satte Farbe und seinen glänzenden Schimmer bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein dekoratives Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Er hat eine quadratische Form und eine warme braune Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Samtstoff fühlt sich seidig und luxuriös an und verleiht dem Kissen einen Hauch von Raffinesse und Eleganz. Die Kanten des Kissenbezugs sind in der Regel mit einem sauberen Saum versehen, der dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird oft verwendet, um eine gemütliche und einladende Atmosphäre in einem Raum zu schaffen, egal ob er auf einem Bett, einem Sofa oder einem Akzentstuhl platziert wird. Er kann allein oder in Kombination mit anderen dekorativen Kissen in verschiedenen Texturen und Farben verwendet werden, um ein mehrschichtiges und harmonisches Aussehen zu schaffen. Insgesamt ist ein Kissenbezug aus braunem Samt ein wunderschönes und luxuriöses Accessoire, das den Komfort und den Stil eines jeden Raumes im Haus verbessern kann. ", - "en": undefined, - "en-GB": "A brown velvet pillowcase is a type of textile covering for a decorative pillow that is typically used to add visual interest, texture, and a touch of luxury to a room. It is made from a soft and plush velvet fabric, which is known for its smooth surface, rich color, and lustrous sheen. The pillowcase is designed to fit over a standard size decorative pillow, usually around 18 inches square. It features a square shape and a warm brown color that can complement a variety of decor styles and color schemes. The velvet fabric has a silky and luxurious feel that adds a touch of sophistication and elegance to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to create a cozy and inviting atmosphere in a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different textures and colors to create a layered and harmonious look. Overall, a brown velvet pillowcase is a beautiful and indulgent accent piece that can enhance the comfort and style of any room in the home.", - "en-US": "A brown velvet pillowcase is a type of textile covering for a decorative pillow that is typically used to add visual interest, texture, and a touch of luxury to a room. It is made from a soft and plush velvet fabric, which is known for its smooth surface, rich color, and lustrous sheen. The pillowcase is designed to fit over a standard size decorative pillow, usually around 18 inches square. It features a square shape and a warm brown color that can complement a variety of decor styles and color schemes. The velvet fabric has a silky and luxurious feel that adds a touch of sophistication and elegance to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to create a cozy and inviting atmosphere in a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different textures and colors to create a layered and harmonious look. Overall, a brown velvet pillowcase is a beautiful and indulgent accent piece that can enhance the comfort and style of any room in the home.", - "fr": undefined, - }, - "key": "idun-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Siena:#A0522D", - "en-GB": "Siena:#A0522D", - "en-US": "Siena:#A0522D", + "categories": [ + { + "key": "bedding", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein brauner Samt-Kissenbezug ist eine Art Textilbezug für ein dekoratives Kissen, das normalerweise verwendet wird, um einem Raum visuelles Interesse, Textur und einen Hauch von Luxus zu verleihen. Es besteht aus einem weichen und plüschigen Samtstoff, der für seine glatte Oberfläche, seine satte Farbe und seinen glänzenden Schimmer bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein dekoratives Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Er hat eine quadratische Form und eine warme braune Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Samtstoff fühlt sich seidig und luxuriös an und verleiht dem Kissen einen Hauch von Raffinesse und Eleganz. Die Kanten des Kissenbezugs sind in der Regel mit einem sauberen Saum versehen, der dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird oft verwendet, um eine gemütliche und einladende Atmosphäre in einem Raum zu schaffen, egal ob er auf einem Bett, einem Sofa oder einem Akzentstuhl platziert wird. Er kann allein oder in Kombination mit anderen dekorativen Kissen in verschiedenen Texturen und Farben verwendet werden, um ein mehrschichtiges und harmonisches Aussehen zu schaffen. Insgesamt ist ein Kissenbezug aus braunem Samt ein wunderschönes und luxuriöses Accessoire, das den Komfort und den Stil eines jeden Raumes im Haus verbessern kann. ", + "en": undefined, + "en-GB": "A brown velvet pillowcase is a type of textile covering for a decorative pillow that is typically used to add visual interest, texture, and a touch of luxury to a room. It is made from a soft and plush velvet fabric, which is known for its smooth surface, rich color, and lustrous sheen. The pillowcase is designed to fit over a standard size decorative pillow, usually around 18 inches square. It features a square shape and a warm brown color that can complement a variety of decor styles and color schemes. The velvet fabric has a silky and luxurious feel that adds a touch of sophistication and elegance to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to create a cozy and inviting atmosphere in a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different textures and colors to create a layered and harmonious look. Overall, a brown velvet pillowcase is a beautiful and indulgent accent piece that can enhance the comfort and style of any room in the home.", + "en-US": "A brown velvet pillowcase is a type of textile covering for a decorative pillow that is typically used to add visual interest, texture, and a touch of luxury to a room. It is made from a soft and plush velvet fabric, which is known for its smooth surface, rich color, and lustrous sheen. The pillowcase is designed to fit over a standard size decorative pillow, usually around 18 inches square. It features a square shape and a warm brown color that can complement a variety of decor styles and color schemes. The velvet fabric has a silky and luxurious feel that adds a touch of sophistication and elegance to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to create a cozy and inviting atmosphere in a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different textures and colors to create a layered and harmonious look. Overall, a brown velvet pillowcase is a beautiful and indulgent accent piece that can enhance the comfort and style of any room in the home.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3996, - "w": 5994, + "key": "idun-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Siena:#A0522D", + "en-GB": "Siena:#A0522D", + "en-US": "Siena:#A0522D", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3996, + "w": 5994, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Idun_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "GBP", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1399, + "currencyCode": "USD", + }, + }, + ], + "sku": "IPC-09", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Idun_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "EUR", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Idun Kissenbezug", + "en": undefined, + "en-GB": "Idun Pillow Cover", + "en-US": "Idun Pillow Cover", + "fr": undefined, }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "idun-kissenbezug", + "en": undefined, + "en-GB": "idun-pillow-cover", + "en-US": "idun-pillow-cover", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1399, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "IPC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Idun Kissenbezug", - "en": undefined, - "en-GB": "Idun Pillow Cover", - "en-US": "Idun Pillow Cover", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "idun-kissenbezug", - "en": undefined, - "en-GB": "idun-pillow-cover", - "en-US": "idun-pillow-cover", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a idunPillowCover preset when built for graphql`, () => { const idunPillowCoverPresetGraphql = idunPillowCover().buildGraphql(); expect(idunPillowCoverPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A brown velvet pillowcase is a type of textile covering for a decorative pillow that is typically used to add visual interest, texture, and a touch of luxury to a room. It is made from a soft and plush velvet fabric, which is known for its smooth surface, rich color, and lustrous sheen. The pillowcase is designed to fit over a standard size decorative pillow, usually around 18 inches square. It features a square shape and a warm brown color that can complement a variety of decor styles and color schemes. The velvet fabric has a silky and luxurious feel that adds a touch of sophistication and elegance to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to create a cozy and inviting atmosphere in a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different textures and colors to create a layered and harmonious look. Overall, a brown velvet pillowcase is a beautiful and indulgent accent piece that can enhance the comfort and style of any room in the home.", - }, - { - "locale": "en-US", - "value": "A brown velvet pillowcase is a type of textile covering for a decorative pillow that is typically used to add visual interest, texture, and a touch of luxury to a room. It is made from a soft and plush velvet fabric, which is known for its smooth surface, rich color, and lustrous sheen. The pillowcase is designed to fit over a standard size decorative pillow, usually around 18 inches square. It features a square shape and a warm brown color that can complement a variety of decor styles and color schemes. The velvet fabric has a silky and luxurious feel that adds a touch of sophistication and elegance to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to create a cozy and inviting atmosphere in a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different textures and colors to create a layered and harmonious look. Overall, a brown velvet pillowcase is a beautiful and indulgent accent piece that can enhance the comfort and style of any room in the home.", - }, - { - "locale": "de-DE", - "value": "Ein brauner Samt-Kissenbezug ist eine Art Textilbezug für ein dekoratives Kissen, das normalerweise verwendet wird, um einem Raum visuelles Interesse, Textur und einen Hauch von Luxus zu verleihen. Es besteht aus einem weichen und plüschigen Samtstoff, der für seine glatte Oberfläche, seine satte Farbe und seinen glänzenden Schimmer bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein dekoratives Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Er hat eine quadratische Form und eine warme braune Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Samtstoff fühlt sich seidig und luxuriös an und verleiht dem Kissen einen Hauch von Raffinesse und Eleganz. Die Kanten des Kissenbezugs sind in der Regel mit einem sauberen Saum versehen, der dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird oft verwendet, um eine gemütliche und einladende Atmosphäre in einem Raum zu schaffen, egal ob er auf einem Bett, einem Sofa oder einem Akzentstuhl platziert wird. Er kann allein oder in Kombination mit anderen dekorativen Kissen in verschiedenen Texturen und Farben verwendet werden, um ein mehrschichtiges und harmonisches Aussehen zu schaffen. Insgesamt ist ein Kissenbezug aus braunem Samt ein wunderschönes und luxuriöses Accessoire, das den Komfort und den Stil eines jeden Raumes im Haus verbessern kann. ", - }, - ], - "key": "idun-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Siena:#A0522D","de-DE":"Siena:#A0522D","en-US":"Siena:#A0522D"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3996, - "width": 5994, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Idun_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedding", + "typeId": "category", }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A brown velvet pillowcase is a type of textile covering for a decorative pillow that is typically used to add visual interest, texture, and a touch of luxury to a room. It is made from a soft and plush velvet fabric, which is known for its smooth surface, rich color, and lustrous sheen. The pillowcase is designed to fit over a standard size decorative pillow, usually around 18 inches square. It features a square shape and a warm brown color that can complement a variety of decor styles and color schemes. The velvet fabric has a silky and luxurious feel that adds a touch of sophistication and elegance to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to create a cozy and inviting atmosphere in a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different textures and colors to create a layered and harmonious look. Overall, a brown velvet pillowcase is a beautiful and indulgent accent piece that can enhance the comfort and style of any room in the home.", + }, + { + "locale": "en-US", + "value": "A brown velvet pillowcase is a type of textile covering for a decorative pillow that is typically used to add visual interest, texture, and a touch of luxury to a room. It is made from a soft and plush velvet fabric, which is known for its smooth surface, rich color, and lustrous sheen. The pillowcase is designed to fit over a standard size decorative pillow, usually around 18 inches square. It features a square shape and a warm brown color that can complement a variety of decor styles and color schemes. The velvet fabric has a silky and luxurious feel that adds a touch of sophistication and elegance to the pillow. The edges of the pillowcase are typically finished with a neat hem, which adds a polished look to the overall design. The pillowcase is often used to create a cozy and inviting atmosphere in a room, whether it is placed on a bed, a sofa, or an accent chair. It can be used on its own or paired with other decorative pillows in different textures and colors to create a layered and harmonious look. Overall, a brown velvet pillowcase is a beautiful and indulgent accent piece that can enhance the comfort and style of any room in the home.", + }, + { + "locale": "de-DE", + "value": "Ein brauner Samt-Kissenbezug ist eine Art Textilbezug für ein dekoratives Kissen, das normalerweise verwendet wird, um einem Raum visuelles Interesse, Textur und einen Hauch von Luxus zu verleihen. Es besteht aus einem weichen und plüschigen Samtstoff, der für seine glatte Oberfläche, seine satte Farbe und seinen glänzenden Schimmer bekannt ist. Der Kissenbezug ist so konzipiert, dass er über ein dekoratives Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Er hat eine quadratische Form und eine warme braune Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Samtstoff fühlt sich seidig und luxuriös an und verleiht dem Kissen einen Hauch von Raffinesse und Eleganz. Die Kanten des Kissenbezugs sind in der Regel mit einem sauberen Saum versehen, der dem Gesamtdesign einen eleganten Look verleiht. Der Kissenbezug wird oft verwendet, um eine gemütliche und einladende Atmosphäre in einem Raum zu schaffen, egal ob er auf einem Bett, einem Sofa oder einem Akzentstuhl platziert wird. Er kann allein oder in Kombination mit anderen dekorativen Kissen in verschiedenen Texturen und Farben verwendet werden, um ein mehrschichtiges und harmonisches Aussehen zu schaffen. Insgesamt ist ein Kissenbezug aus braunem Samt ein wunderschönes und luxuriöses Accessoire, das den Komfort und den Stil eines jeden Raumes im Haus verbessern kann. ", + }, + ], + "key": "idun-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Siena:#A0522D","de-DE":"Siena:#A0522D","en-US":"Siena:#A0522D"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3996, + "width": 5994, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Idun_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "IPC-09", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Idun Pillow Cover", }, + { + "locale": "en-GB", + "value": "Idun Pillow Cover", + }, + { + "locale": "de-DE", + "value": "Idun Kissenbezug", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1399, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "idun-pillow-cover", + }, + { + "locale": "en-GB", + "value": "idun-pillow-cover", + }, + { + "locale": "de-DE", + "value": "idun-kissenbezug", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "IPC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Idun Pillow Cover", - }, - { - "locale": "en-GB", - "value": "Idun Pillow Cover", - }, - { - "locale": "de-DE", - "value": "Idun Kissenbezug", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "idun-pillow-cover", - }, - { - "locale": "en-GB", - "value": "idun-pillow-cover", - }, - { - "locale": "de-DE", - "value": "idun-kissenbezug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter.spec.ts index 50f6ac204..1d1a44d42 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/indoor-jute-planter.spec.ts @@ -5,461 +5,461 @@ describe(`with indoorJutePlanter preset`, () => { it(`should return a indoorJutePlanter preset`, () => { const indoorJutePlanterPreset = indoorJutePlanter().build(); expect(indoorJutePlanterPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Indoor-Blumentopf für Pflanzen ist eine dekorative und umweltfreundliche Möglichkeit, Pflanzen in Ihrem Zuhause zu präsentieren. Der Blumentopf besteht aus natürlichen Jutefasern, die zu einem robusten und atmungsaktiven Behälter für Ihre Pflanzen verwoben sind. Die neutrale Farbe der Jutefasern ergänzt die natürliche Farbe der Pflanzen und lässt sie schön zur Geltung kommen. Die Jutefasern des Blumentopfes sind saugfähig und ermöglichen eine ordnungsgemäße Entwässerung und Luftzirkulation für die Pflanzenwurzeln. Dies trägt dazu bei, Wurzelfäule und andere bodenbürtige Krankheiten zu verhindern und ein gesundes Pflanzenwachstum zu gewährleisten. Insgesamt ist ein Blumentopf aus Jute für den Innenbereich eine charmante und praktische Möglichkeit, einen Hauch von Natur in Ihr Zuhause zu bringen und gleichzeitig die Umwelt zu schonen.", - "en": undefined, - "en-GB": "An indoor jute planter for plants is a decorative and eco-friendly way to display greenery in your home. The planter is made from natural jute fibers, which are woven into a sturdy and breathable container for your plants. The neutral color of the jute fibers complements the natural color of plants, making them stand out beautifully. The jute fibers of the planter are absorbent, allowing for proper drainage and air circulation for the plant roots. This helps to prevent root rot and other soil-borne diseases, ensuring healthy plant growth. Overall, an indoor jute planter is a charming and practical way to bring a touch of nature into your home, while also being kind to the planet.", - "en-US": "An indoor jute planter for plants is a decorative and eco-friendly way to display greenery in your home. The planter is made from natural jute fibers, which are woven into a sturdy and breathable container for your plants. The neutral color of the jute fibers complements the natural color of plants, making them stand out beautifully. The jute fibers of the planter are absorbent, allowing for proper drainage and air circulation for the plant roots. This helps to prevent root rot and other soil-borne diseases, ensuring healthy plant growth. Overall, an indoor jute planter is a charming and practical way to bring a touch of nature into your home, while also being kind to the planet.", - "fr": undefined, - }, - "key": "indoor-jute-planter", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Pflanze nicht im Lieferumfang enthalten", - "en-GB": "- Plant not included", - "en-US": "- Plant not included", - }, - }, - { - "name": "size", - "value": { - "en-GB": "Large", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "USD", - }, - }, - ], - "sku": "IJP-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Indoor Jute Blumentopf ", - "en": undefined, - "en-GB": "Indoor Jute Planter", - "en-US": "Indoor Jute Planter", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "indoor-jute-planter", - "en": undefined, - "en-GB": "indoor-jute-planter", - "en-US": "indoor-jute-planter", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Pflanze nicht im Lieferumfang enthalten", - "en-GB": "- Plant not included", - "en-US": "- Plant not included", + "categories": [ + { + "key": "room-decor", + "typeId": "category", }, - }, - { - "name": "size", - "value": { - "en-GB": "Small", + { + "key": "home-accents", + "typeId": "category", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, + { + "key": "home-decor", + "typeId": "category", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-2.1.jpeg", + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Indoor-Blumentopf für Pflanzen ist eine dekorative und umweltfreundliche Möglichkeit, Pflanzen in Ihrem Zuhause zu präsentieren. Der Blumentopf besteht aus natürlichen Jutefasern, die zu einem robusten und atmungsaktiven Behälter für Ihre Pflanzen verwoben sind. Die neutrale Farbe der Jutefasern ergänzt die natürliche Farbe der Pflanzen und lässt sie schön zur Geltung kommen. Die Jutefasern des Blumentopfes sind saugfähig und ermöglichen eine ordnungsgemäße Entwässerung und Luftzirkulation für die Pflanzenwurzeln. Dies trägt dazu bei, Wurzelfäule und andere bodenbürtige Krankheiten zu verhindern und ein gesundes Pflanzenwachstum zu gewährleisten. Insgesamt ist ein Blumentopf aus Jute für den Innenbereich eine charmante und praktische Möglichkeit, einen Hauch von Natur in Ihr Zuhause zu bringen und gleichzeitig die Umwelt zu schonen.", + "en": undefined, + "en-GB": "An indoor jute planter for plants is a decorative and eco-friendly way to display greenery in your home. The planter is made from natural jute fibers, which are woven into a sturdy and breathable container for your plants. The neutral color of the jute fibers complements the natural color of plants, making them stand out beautifully. The jute fibers of the planter are absorbent, allowing for proper drainage and air circulation for the plant roots. This helps to prevent root rot and other soil-borne diseases, ensuring healthy plant growth. Overall, an indoor jute planter is a charming and practical way to bring a touch of nature into your home, while also being kind to the planet.", + "en-US": "An indoor jute planter for plants is a decorative and eco-friendly way to display greenery in your home. The planter is made from natural jute fibers, which are woven into a sturdy and breathable container for your plants. The neutral color of the jute fibers complements the natural color of plants, making them stand out beautifully. The jute fibers of the planter are absorbent, allowing for proper drainage and air circulation for the plant roots. This helps to prevent root rot and other soil-borne diseases, ensuring healthy plant growth. Overall, an indoor jute planter is a charming and practical way to bring a touch of nature into your home, while also being kind to the planet.", + "fr": undefined, }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + "key": "indoor-jute-planter", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Pflanze nicht im Lieferumfang enthalten", + "en-GB": "- Plant not included", + "en-US": "- Plant not included", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Large", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", - }, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + ], + "sku": "IJP-03", }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", - }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Indoor Jute Blumentopf ", + "en": undefined, + "en-GB": "Indoor Jute Planter", + "en-US": "Indoor Jute Planter", + "fr": undefined, }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", - }, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "indoor-jute-planter", + "en": undefined, + "en-GB": "indoor-jute-planter", + "en-US": "indoor-jute-planter", + "fr": undefined, }, - ], - "sku": "IJP-04", - }, - ], -} -`); + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Pflanze nicht im Lieferumfang enthalten", + "en-GB": "- Plant not included", + "en-US": "- Plant not included", + }, + }, + { + "name": "size", + "value": { + "en-GB": "Small", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "IJP-04", + }, + ], + } + `); }); it(`should return a indoorJutePlanter preset when built for graphql`, () => { const indoorJutePlanterPresetGraphql = indoorJutePlanter().buildGraphql(); expect(indoorJutePlanterPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "An indoor jute planter for plants is a decorative and eco-friendly way to display greenery in your home. The planter is made from natural jute fibers, which are woven into a sturdy and breathable container for your plants. The neutral color of the jute fibers complements the natural color of plants, making them stand out beautifully. The jute fibers of the planter are absorbent, allowing for proper drainage and air circulation for the plant roots. This helps to prevent root rot and other soil-borne diseases, ensuring healthy plant growth. Overall, an indoor jute planter is a charming and practical way to bring a touch of nature into your home, while also being kind to the planet.", - }, - { - "locale": "en-US", - "value": "An indoor jute planter for plants is a decorative and eco-friendly way to display greenery in your home. The planter is made from natural jute fibers, which are woven into a sturdy and breathable container for your plants. The neutral color of the jute fibers complements the natural color of plants, making them stand out beautifully. The jute fibers of the planter are absorbent, allowing for proper drainage and air circulation for the plant roots. This helps to prevent root rot and other soil-borne diseases, ensuring healthy plant growth. Overall, an indoor jute planter is a charming and practical way to bring a touch of nature into your home, while also being kind to the planet.", - }, - { - "locale": "de-DE", - "value": "Ein Indoor-Blumentopf für Pflanzen ist eine dekorative und umweltfreundliche Möglichkeit, Pflanzen in Ihrem Zuhause zu präsentieren. Der Blumentopf besteht aus natürlichen Jutefasern, die zu einem robusten und atmungsaktiven Behälter für Ihre Pflanzen verwoben sind. Die neutrale Farbe der Jutefasern ergänzt die natürliche Farbe der Pflanzen und lässt sie schön zur Geltung kommen. Die Jutefasern des Blumentopfes sind saugfähig und ermöglichen eine ordnungsgemäße Entwässerung und Luftzirkulation für die Pflanzenwurzeln. Dies trägt dazu bei, Wurzelfäule und andere bodenbürtige Krankheiten zu verhindern und ein gesundes Pflanzenwachstum zu gewährleisten. Insgesamt ist ein Blumentopf aus Jute für den Innenbereich eine charmante und praktische Möglichkeit, einen Hauch von Natur in Ihr Zuhause zu bringen und gleichzeitig die Umwelt zu schonen.", - }, - ], - "key": "indoor-jute-planter", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Plant not included","en-US":"- Plant not included","de-DE":"- Pflanze nicht im Lieferumfang enthalten"}", - }, { - "name": "size", - "value": "{"en-GB":"Large"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "EUR", + "categories": [ + { + "key": "room-decor", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "GBP", + { + "key": "home-accents", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "USD", + { + "key": "home-decor", + "typeId": "category", }, - }, - }, - ], - "sku": "IJP-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Indoor Jute Planter", - }, - { - "locale": "en-GB", - "value": "Indoor Jute Planter", - }, - { - "locale": "de-DE", - "value": "Indoor Jute Blumentopf ", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "indoor-jute-planter", - }, - { - "locale": "en-GB", - "value": "indoor-jute-planter", - }, - { - "locale": "de-DE", - "value": "indoor-jute-planter", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Plant not included","en-US":"- Plant not included","de-DE":"- Pflanze nicht im Lieferumfang enthalten"}", - }, - { - "name": "size", - "value": "{"en-GB":"Small"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5000, - "width": 5000, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "An indoor jute planter for plants is a decorative and eco-friendly way to display greenery in your home. The planter is made from natural jute fibers, which are woven into a sturdy and breathable container for your plants. The neutral color of the jute fibers complements the natural color of plants, making them stand out beautifully. The jute fibers of the planter are absorbent, allowing for proper drainage and air circulation for the plant roots. This helps to prevent root rot and other soil-borne diseases, ensuring healthy plant growth. Overall, an indoor jute planter is a charming and practical way to bring a touch of nature into your home, while also being kind to the planet.", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", - }, + { + "locale": "en-US", + "value": "An indoor jute planter for plants is a decorative and eco-friendly way to display greenery in your home. The planter is made from natural jute fibers, which are woven into a sturdy and breathable container for your plants. The neutral color of the jute fibers complements the natural color of plants, making them stand out beautifully. The jute fibers of the planter are absorbent, allowing for proper drainage and air circulation for the plant roots. This helps to prevent root rot and other soil-borne diseases, ensuring healthy plant growth. Overall, an indoor jute planter is a charming and practical way to bring a touch of nature into your home, while also being kind to the planet.", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + { + "locale": "de-DE", + "value": "Ein Indoor-Blumentopf für Pflanzen ist eine dekorative und umweltfreundliche Möglichkeit, Pflanzen in Ihrem Zuhause zu präsentieren. Der Blumentopf besteht aus natürlichen Jutefasern, die zu einem robusten und atmungsaktiven Behälter für Ihre Pflanzen verwoben sind. Die neutrale Farbe der Jutefasern ergänzt die natürliche Farbe der Pflanzen und lässt sie schön zur Geltung kommen. Die Jutefasern des Blumentopfes sind saugfähig und ermöglichen eine ordnungsgemäße Entwässerung und Luftzirkulation für die Pflanzenwurzeln. Dies trägt dazu bei, Wurzelfäule und andere bodenbürtige Krankheiten zu verhindern und ein gesundes Pflanzenwachstum zu gewährleisten. Insgesamt ist ein Blumentopf aus Jute für den Innenbereich eine charmante und praktische Möglichkeit, einen Hauch von Natur in Ihr Zuhause zu bringen und gleichzeitig die Umwelt zu schonen.", + }, + ], + "key": "indoor-jute-planter", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Plant not included","en-US":"- Plant not included","de-DE":"- Pflanze nicht im Lieferumfang enthalten"}", + }, + { + "name": "size", + "value": "{"en-GB":"Large"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "IJP-03", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Indoor Jute Planter", }, + { + "locale": "en-GB", + "value": "Indoor Jute Planter", + }, + { + "locale": "de-DE", + "value": "Indoor Jute Blumentopf ", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", - }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "indoor-jute-planter", }, + { + "locale": "en-GB", + "value": "indoor-jute-planter", + }, + { + "locale": "de-DE", + "value": "indoor-jute-planter", + }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - ], - "sku": "IJP-04", - }, - ], -} -`); + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Plant not included","en-US":"- Plant not included","de-DE":"- Pflanze nicht im Lieferumfang enthalten"}", + }, + { + "name": "size", + "value": "{"en-GB":"Small"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Indoor_Jute_Planter-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "IJP-04", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair.spec.ts index bbda531ae..387663749 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ivory-lounge-chair.spec.ts @@ -5,348 +5,348 @@ describe(`with ivoryLoungeChair preset`, () => { it(`should return a ivoryLoungeChair preset`, () => { const ivoryLoungeChairPreset = ivoryLoungeChair().build(); expect(ivoryLoungeChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Sessel ist ein kühnes und flippiges Möbelstück, das seine Inspiration aus den eklektischen Stilen der 1970er Jahre bezieht. Der Stuhl hat eine runde, kreisförmige Form mit einer niedrigen Rückenlehne und einer großzügig gepolsterten Sitzfläche, die für längere Zeit bequemen Sitz bietet. Die Armlehnen des Stuhls sind breit und rund und schaffen einen bequemen und stützenden Platz, an dem Sie Ihre Arme beim Faulenzen ausruhen können. Insgesamt ist ein von den 70er Jahren inspirierter runder Sessel ein verspieltes und lustiges Möbelstück, das jedem Raum einen Hauch von Retro-Flair verleihen kann. Seine runde Form und die großzügige Polsterung machen ihn zu einem komfortablen und einladenden Ort zum Faulenzen und Entspannen.", - "en": undefined, - "en-GB": "This arm chair is a bold and funky piece of furniture that takes its inspiration from the eclectic styles of the 1970s. The chair features a round, circular shape, with a low backrest and generously padded seat that provide comfortable seating for extended periods of time. The arms of the chair are wide and round, creating a comfortable and supportive space for you to rest your arms while lounging. Overall, a 70's inspired round arm chair is a playful and fun piece of furniture that can add a touch of retro flair to any room. Its round shape and generous padding, make it a comfortable and inviting spot for lounging and relaxation.", - "en-US": "This arm chair is a bold and funky piece of furniture that takes its inspiration from the eclectic styles of the 1970s. The chair features a round, circular shape, with a low backrest and generously padded seat that provide comfortable seating for extended periods of time. The arms of the chair are wide and round, creating a comfortable and supportive space for you to rest your arms while lounging. Overall, a 70's inspired round arm chair is a playful and fun piece of furniture that can add a touch of retro flair to any room. Its round shape and generous padding, make it a comfortable and inviting spot for lounging and relaxation.", - "fr": undefined, - }, - "key": "ivory-lounge-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung -- Montage im Lieferumfang enthalten", - "en-GB": "- Dry clean only -- Assembly included in delivery", - "en-US": "- Dry clean only -- Assembly included in delivery", + "categories": [ + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Sessel ist ein kühnes und flippiges Möbelstück, das seine Inspiration aus den eklektischen Stilen der 1970er Jahre bezieht. Der Stuhl hat eine runde, kreisförmige Form mit einer niedrigen Rückenlehne und einer großzügig gepolsterten Sitzfläche, die für längere Zeit bequemen Sitz bietet. Die Armlehnen des Stuhls sind breit und rund und schaffen einen bequemen und stützenden Platz, an dem Sie Ihre Arme beim Faulenzen ausruhen können. Insgesamt ist ein von den 70er Jahren inspirierter runder Sessel ein verspieltes und lustiges Möbelstück, das jedem Raum einen Hauch von Retro-Flair verleihen kann. Seine runde Form und die großzügige Polsterung machen ihn zu einem komfortablen und einladenden Ort zum Faulenzen und Entspannen.", + "en": undefined, + "en-GB": "This arm chair is a bold and funky piece of furniture that takes its inspiration from the eclectic styles of the 1970s. The chair features a round, circular shape, with a low backrest and generously padded seat that provide comfortable seating for extended periods of time. The arms of the chair are wide and round, creating a comfortable and supportive space for you to rest your arms while lounging. Overall, a 70's inspired round arm chair is a playful and fun piece of furniture that can add a touch of retro flair to any room. Its round shape and generous padding, make it a comfortable and inviting spot for lounging and relaxation.", + "en-US": "This arm chair is a bold and funky piece of furniture that takes its inspiration from the eclectic styles of the 1970s. The chair features a round, circular shape, with a low backrest and generously padded seat that provide comfortable seating for extended periods of time. The arms of the chair are wide and round, creating a comfortable and supportive space for you to rest your arms while lounging. Overall, a 70's inspired round arm chair is a playful and fun piece of furniture that can add a touch of retro flair to any room. Its round shape and generous padding, make it a comfortable and inviting spot for lounging and relaxation.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Elfenbein:#FFFFF0", - "en-GB": "Ivory:#FFFFF0", - "en-US": "Ivory:#FFFFF0", + "key": "ivory-lounge-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung + - Montage im Lieferumfang enthalten", + "en-GB": "- Dry clean only + - Assembly included in delivery", + "en-US": "- Dry clean only + - Assembly included in delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Elfenbein:#FFFFF0", + "en-GB": "Ivory:#FFFFF0", + "en-US": "Ivory:#FFFFF0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.1.jpeg", + }, + { + "dimensions": { + "h": 4500, + "w": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.2.jpeg", + }, + { + "dimensions": { + "h": 5000, + "w": 3750, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "ILC-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Elfenbein Lounge Stuhl", + "en": undefined, + "en-GB": "Ivory Lounge Chair", + "en-US": "Ivory Lounge Chair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.1.jpeg", - }, - { - "dimensions": { - "h": 4500, - "w": 3375, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.2.jpeg", - }, - { - "dimensions": { - "h": 5000, - "w": 3750, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "elfenbein-lounge-stuhl", + "en": undefined, + "en-GB": "ivory-lounge-chair", + "en-US": "ivory-lounge-chair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "ILC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Elfenbein Lounge Stuhl", - "en": undefined, - "en-GB": "Ivory Lounge Chair", - "en-US": "Ivory Lounge Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "elfenbein-lounge-stuhl", - "en": undefined, - "en-GB": "ivory-lounge-chair", - "en-US": "ivory-lounge-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a ivoryLoungeChair preset when built for graphql`, () => { const ivoryLoungeChairPresetGraphql = ivoryLoungeChair().buildGraphql(); expect(ivoryLoungeChairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This arm chair is a bold and funky piece of furniture that takes its inspiration from the eclectic styles of the 1970s. The chair features a round, circular shape, with a low backrest and generously padded seat that provide comfortable seating for extended periods of time. The arms of the chair are wide and round, creating a comfortable and supportive space for you to rest your arms while lounging. Overall, a 70's inspired round arm chair is a playful and fun piece of furniture that can add a touch of retro flair to any room. Its round shape and generous padding, make it a comfortable and inviting spot for lounging and relaxation.", - }, - { - "locale": "en-US", - "value": "This arm chair is a bold and funky piece of furniture that takes its inspiration from the eclectic styles of the 1970s. The chair features a round, circular shape, with a low backrest and generously padded seat that provide comfortable seating for extended periods of time. The arms of the chair are wide and round, creating a comfortable and supportive space for you to rest your arms while lounging. Overall, a 70's inspired round arm chair is a playful and fun piece of furniture that can add a touch of retro flair to any room. Its round shape and generous padding, make it a comfortable and inviting spot for lounging and relaxation.", - }, - { - "locale": "de-DE", - "value": "Dieser Sessel ist ein kühnes und flippiges Möbelstück, das seine Inspiration aus den eklektischen Stilen der 1970er Jahre bezieht. Der Stuhl hat eine runde, kreisförmige Form mit einer niedrigen Rückenlehne und einer großzügig gepolsterten Sitzfläche, die für längere Zeit bequemen Sitz bietet. Die Armlehnen des Stuhls sind breit und rund und schaffen einen bequemen und stützenden Platz, an dem Sie Ihre Arme beim Faulenzen ausruhen können. Insgesamt ist ein von den 70er Jahren inspirierter runder Sessel ein verspieltes und lustiges Möbelstück, das jedem Raum einen Hauch von Retro-Flair verleihen kann. Seine runde Form und die großzügige Polsterung machen ihn zu einem komfortablen und einladenden Ort zum Faulenzen und Entspannen.", - }, - ], - "key": "ivory-lounge-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only\\n- Assembly included in delivery","de-DE":"- Nur chemische Reinigung\\n- Montage im Lieferumfang enthalten","en-US":"- Dry clean only\\n- Assembly included in delivery"}", - }, - { - "name": "color", - "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.1.jpeg", - }, { - "dimensions": { - "height": 4500, - "width": 3375, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.2.jpeg", - }, - { - "dimensions": { - "height": 5000, - "width": 3750, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", + "categories": [ + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This arm chair is a bold and funky piece of furniture that takes its inspiration from the eclectic styles of the 1970s. The chair features a round, circular shape, with a low backrest and generously padded seat that provide comfortable seating for extended periods of time. The arms of the chair are wide and round, creating a comfortable and supportive space for you to rest your arms while lounging. Overall, a 70's inspired round arm chair is a playful and fun piece of furniture that can add a touch of retro flair to any room. Its round shape and generous padding, make it a comfortable and inviting spot for lounging and relaxation.", }, + { + "locale": "en-US", + "value": "This arm chair is a bold and funky piece of furniture that takes its inspiration from the eclectic styles of the 1970s. The chair features a round, circular shape, with a low backrest and generously padded seat that provide comfortable seating for extended periods of time. The arms of the chair are wide and round, creating a comfortable and supportive space for you to rest your arms while lounging. Overall, a 70's inspired round arm chair is a playful and fun piece of furniture that can add a touch of retro flair to any room. Its round shape and generous padding, make it a comfortable and inviting spot for lounging and relaxation.", + }, + { + "locale": "de-DE", + "value": "Dieser Sessel ist ein kühnes und flippiges Möbelstück, das seine Inspiration aus den eklektischen Stilen der 1970er Jahre bezieht. Der Stuhl hat eine runde, kreisförmige Form mit einer niedrigen Rückenlehne und einer großzügig gepolsterten Sitzfläche, die für längere Zeit bequemen Sitz bietet. Die Armlehnen des Stuhls sind breit und rund und schaffen einen bequemen und stützenden Platz, an dem Sie Ihre Arme beim Faulenzen ausruhen können. Insgesamt ist ein von den 70er Jahren inspirierter runder Sessel ein verspieltes und lustiges Möbelstück, das jedem Raum einen Hauch von Retro-Flair verleihen kann. Seine runde Form und die großzügige Polsterung machen ihn zu einem komfortablen und einladenden Ort zum Faulenzen und Entspannen.", + }, + ], + "key": "ivory-lounge-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only\\n- Assembly included in delivery","de-DE":"- Nur chemische Reinigung\\n- Montage im Lieferumfang enthalten","en-US":"- Dry clean only\\n- Assembly included in delivery"}", + }, + { + "name": "color", + "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.1.jpeg", + }, + { + "dimensions": { + "height": 4500, + "width": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.2.jpeg", + }, + { + "dimensions": { + "height": 5000, + "width": 3750, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Lounge_Chair-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ILC-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Ivory Lounge Chair", + }, + { + "locale": "en-GB", + "value": "Ivory Lounge Chair", }, + { + "locale": "de-DE", + "value": "Elfenbein Lounge Stuhl", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "ivory-lounge-chair", + }, + { + "locale": "en-GB", + "value": "ivory-lounge-chair", + }, + { + "locale": "de-DE", + "value": "elfenbein-lounge-stuhl", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ILC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Ivory Lounge Chair", - }, - { - "locale": "en-GB", - "value": "Ivory Lounge Chair", - }, - { - "locale": "de-DE", - "value": "Elfenbein Lounge Stuhl", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "ivory-lounge-chair", - }, - { - "locale": "en-GB", - "value": "ivory-lounge-chair", - }, - { - "locale": "de-DE", - "value": "elfenbein-lounge-stuhl", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ivory-plate.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ivory-plate.spec.ts index c264e4287..750aecfd8 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ivory-plate.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/ivory-plate.spec.ts @@ -5,328 +5,328 @@ describe(`with ivoryPlate preset`, () => { it(`should return a ivoryPlate preset`, () => { const ivoryPlatePreset = ivoryPlate().build(); expect(ivoryPlatePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Elfenbeinteller ist ein High-End-Geschirr, das sowohl für funktionale als auch für ästhetische Zwecke entworfen wurde. Es besteht aus hochwertigem Porzellan und hat eine glatte Oberfläche, die sowohl elegant als auch langlebig ist. Der Teller ist kreisförmig und hat eine flache Oberfläche mit einer leichten Rundung an den Rändern. Die Elfenbeinfarbe ist ein cremiger, cremefarbener Farbton, der warm und einladend ist und jedem Esszimmer einen Hauch von Raffinesse verleiht. Das Design des Tellers zeichnet ihn aus, da er von einem erfahrenen Designer mit viel Liebe zum Detail gefertigt wurde. Der Teller ist ein eigenständiges Stück, das für besondere Anlässe oder zur Präsentation bestimmt ist. Es ist ideal zum Servieren von Vorspeisen oder Desserts, und seine Größe und Form machen es einfach, es zu handhaben und auf dem Tisch herumzureichen. Insgesamt ist ein runder Designerteller aus Elfenbein eine luxuriöse und stilvolle Wahl für gehobene Speisen oder besondere Anlässe. Sein einzigartiges Design und seine hochwertige Konstruktion machen es zu einem Statement-Stück, das Gäste beeindrucken und jedes kulinarische Erlebnis aufwerten wird.", - "en": undefined, - "en-GB": "This ivory plate is a high-end dish designed for both functional and aesthetic purposes. It is made of high-quality porcelain and has a smooth surface that is both elegant and durable. The plate is circular in shape and has a flat surface with a slight curve at the edges. The ivory color is a creamy, off-white shade that is warm and inviting, adding a touch of sophistication to any dining setting. The design of the plate is what sets it apart, as it has been crafted by a skilled designer with an eye for detail. The plate is a standalone piece intended for special occasions or display. It is ideal for serving appetizers or desserts, and its size and shape make it easy to handle and pass around the table. Overall, a round designer plate made of ivory is a luxurious and stylish choice for fine dining or special occasions. Its unique design and high-quality construction make it a statement piece that is sure to impress guests and elevate any dining experience.", - "en-US": "This ivory plate is a high-end dish designed for both functional and aesthetic purposes. It is made of high-quality porcelain and has a smooth surface that is both elegant and durable. The plate is circular in shape and has a flat surface with a slight curve at the edges. The ivory color is a creamy, off-white shade that is warm and inviting, adding a touch of sophistication to any dining setting. The design of the plate is what sets it apart, as it has been crafted by a skilled designer with an eye for detail. The plate is a standalone piece intended for special occasions or display. It is ideal for serving appetizers or desserts, and its size and shape make it easy to handle and pass around the table. Overall, a round designer plate made of ivory is a luxurious and stylish choice for fine dining or special occasions. Its unique design and high-quality construction make it a statement piece that is sure to impress guests and elevate any dining experience.", - "fr": undefined, - }, - "key": "ivory-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", + "categories": [ + { + "key": "plates", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Elfenbeinteller ist ein High-End-Geschirr, das sowohl für funktionale als auch für ästhetische Zwecke entworfen wurde. Es besteht aus hochwertigem Porzellan und hat eine glatte Oberfläche, die sowohl elegant als auch langlebig ist. Der Teller ist kreisförmig und hat eine flache Oberfläche mit einer leichten Rundung an den Rändern. Die Elfenbeinfarbe ist ein cremiger, cremefarbener Farbton, der warm und einladend ist und jedem Esszimmer einen Hauch von Raffinesse verleiht. Das Design des Tellers zeichnet ihn aus, da er von einem erfahrenen Designer mit viel Liebe zum Detail gefertigt wurde. Der Teller ist ein eigenständiges Stück, das für besondere Anlässe oder zur Präsentation bestimmt ist. Es ist ideal zum Servieren von Vorspeisen oder Desserts, und seine Größe und Form machen es einfach, es zu handhaben und auf dem Tisch herumzureichen. Insgesamt ist ein runder Designerteller aus Elfenbein eine luxuriöse und stilvolle Wahl für gehobene Speisen oder besondere Anlässe. Sein einzigartiges Design und seine hochwertige Konstruktion machen es zu einem Statement-Stück, das Gäste beeindrucken und jedes kulinarische Erlebnis aufwerten wird.", + "en": undefined, + "en-GB": "This ivory plate is a high-end dish designed for both functional and aesthetic purposes. It is made of high-quality porcelain and has a smooth surface that is both elegant and durable. The plate is circular in shape and has a flat surface with a slight curve at the edges. The ivory color is a creamy, off-white shade that is warm and inviting, adding a touch of sophistication to any dining setting. The design of the plate is what sets it apart, as it has been crafted by a skilled designer with an eye for detail. The plate is a standalone piece intended for special occasions or display. It is ideal for serving appetizers or desserts, and its size and shape make it easy to handle and pass around the table. Overall, a round designer plate made of ivory is a luxurious and stylish choice for fine dining or special occasions. Its unique design and high-quality construction make it a statement piece that is sure to impress guests and elevate any dining experience.", + "en-US": "This ivory plate is a high-end dish designed for both functional and aesthetic purposes. It is made of high-quality porcelain and has a smooth surface that is both elegant and durable. The plate is circular in shape and has a flat surface with a slight curve at the edges. The ivory color is a creamy, off-white shade that is warm and inviting, adding a touch of sophistication to any dining setting. The design of the plate is what sets it apart, as it has been crafted by a skilled designer with an eye for detail. The plate is a standalone piece intended for special occasions or display. It is ideal for serving appetizers or desserts, and its size and shape make it easy to handle and pass around the table. Overall, a round designer plate made of ivory is a luxurious and stylish choice for fine dining or special occasions. Its unique design and high-quality construction make it a statement piece that is sure to impress guests and elevate any dining experience.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Elfenbein:#FFFFF0", - "en-GB": "Ivory:#FFFFF0", - "en-US": "Ivory:#FFFFF0", + "key": "ivory-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Elfenbein:#FFFFF0", + "en-GB": "Ivory:#FFFFF0", + "en-US": "Ivory:#FFFFF0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4576, + "w": 5088, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1699, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1699, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1699, + "currencyCode": "USD", + }, + }, + ], + "sku": "ISP-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4576, - "w": 5088, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Elfenbeinteller", + "en": undefined, + "en-GB": "Ivory Plate", + "en-US": "Ivory Plate", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1699, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1699, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "elfenbeinteller", + "en": undefined, + "en-GB": "ivory-plate", + "en-US": "ivory-plate", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1699, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ISP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Elfenbeinteller", - "en": undefined, - "en-GB": "Ivory Plate", - "en-US": "Ivory Plate", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "elfenbeinteller", - "en": undefined, - "en-GB": "ivory-plate", - "en-US": "ivory-plate", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a ivoryPlate preset when built for graphql`, () => { const ivoryPlatePresetGraphql = ivoryPlate().buildGraphql(); expect(ivoryPlatePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This ivory plate is a high-end dish designed for both functional and aesthetic purposes. It is made of high-quality porcelain and has a smooth surface that is both elegant and durable. The plate is circular in shape and has a flat surface with a slight curve at the edges. The ivory color is a creamy, off-white shade that is warm and inviting, adding a touch of sophistication to any dining setting. The design of the plate is what sets it apart, as it has been crafted by a skilled designer with an eye for detail. The plate is a standalone piece intended for special occasions or display. It is ideal for serving appetizers or desserts, and its size and shape make it easy to handle and pass around the table. Overall, a round designer plate made of ivory is a luxurious and stylish choice for fine dining or special occasions. Its unique design and high-quality construction make it a statement piece that is sure to impress guests and elevate any dining experience.", - }, - { - "locale": "en-US", - "value": "This ivory plate is a high-end dish designed for both functional and aesthetic purposes. It is made of high-quality porcelain and has a smooth surface that is both elegant and durable. The plate is circular in shape and has a flat surface with a slight curve at the edges. The ivory color is a creamy, off-white shade that is warm and inviting, adding a touch of sophistication to any dining setting. The design of the plate is what sets it apart, as it has been crafted by a skilled designer with an eye for detail. The plate is a standalone piece intended for special occasions or display. It is ideal for serving appetizers or desserts, and its size and shape make it easy to handle and pass around the table. Overall, a round designer plate made of ivory is a luxurious and stylish choice for fine dining or special occasions. Its unique design and high-quality construction make it a statement piece that is sure to impress guests and elevate any dining experience.", - }, - { - "locale": "de-DE", - "value": "Dieser Elfenbeinteller ist ein High-End-Geschirr, das sowohl für funktionale als auch für ästhetische Zwecke entworfen wurde. Es besteht aus hochwertigem Porzellan und hat eine glatte Oberfläche, die sowohl elegant als auch langlebig ist. Der Teller ist kreisförmig und hat eine flache Oberfläche mit einer leichten Rundung an den Rändern. Die Elfenbeinfarbe ist ein cremiger, cremefarbener Farbton, der warm und einladend ist und jedem Esszimmer einen Hauch von Raffinesse verleiht. Das Design des Tellers zeichnet ihn aus, da er von einem erfahrenen Designer mit viel Liebe zum Detail gefertigt wurde. Der Teller ist ein eigenständiges Stück, das für besondere Anlässe oder zur Präsentation bestimmt ist. Es ist ideal zum Servieren von Vorspeisen oder Desserts, und seine Größe und Form machen es einfach, es zu handhaben und auf dem Tisch herumzureichen. Insgesamt ist ein runder Designerteller aus Elfenbein eine luxuriöse und stilvolle Wahl für gehobene Speisen oder besondere Anlässe. Sein einzigartiges Design und seine hochwertige Konstruktion machen es zu einem Statement-Stück, das Gäste beeindrucken und jedes kulinarische Erlebnis aufwerten wird.", - }, - ], - "key": "ivory-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", - }, - { - "name": "color", - "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4576, - "width": 5088, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1699, - "currencyCode": "EUR", + "categories": [ + { + "key": "plates", + "typeId": "category", }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This ivory plate is a high-end dish designed for both functional and aesthetic purposes. It is made of high-quality porcelain and has a smooth surface that is both elegant and durable. The plate is circular in shape and has a flat surface with a slight curve at the edges. The ivory color is a creamy, off-white shade that is warm and inviting, adding a touch of sophistication to any dining setting. The design of the plate is what sets it apart, as it has been crafted by a skilled designer with an eye for detail. The plate is a standalone piece intended for special occasions or display. It is ideal for serving appetizers or desserts, and its size and shape make it easy to handle and pass around the table. Overall, a round designer plate made of ivory is a luxurious and stylish choice for fine dining or special occasions. Its unique design and high-quality construction make it a statement piece that is sure to impress guests and elevate any dining experience.", + }, + { + "locale": "en-US", + "value": "This ivory plate is a high-end dish designed for both functional and aesthetic purposes. It is made of high-quality porcelain and has a smooth surface that is both elegant and durable. The plate is circular in shape and has a flat surface with a slight curve at the edges. The ivory color is a creamy, off-white shade that is warm and inviting, adding a touch of sophistication to any dining setting. The design of the plate is what sets it apart, as it has been crafted by a skilled designer with an eye for detail. The plate is a standalone piece intended for special occasions or display. It is ideal for serving appetizers or desserts, and its size and shape make it easy to handle and pass around the table. Overall, a round designer plate made of ivory is a luxurious and stylish choice for fine dining or special occasions. Its unique design and high-quality construction make it a statement piece that is sure to impress guests and elevate any dining experience.", + }, + { + "locale": "de-DE", + "value": "Dieser Elfenbeinteller ist ein High-End-Geschirr, das sowohl für funktionale als auch für ästhetische Zwecke entworfen wurde. Es besteht aus hochwertigem Porzellan und hat eine glatte Oberfläche, die sowohl elegant als auch langlebig ist. Der Teller ist kreisförmig und hat eine flache Oberfläche mit einer leichten Rundung an den Rändern. Die Elfenbeinfarbe ist ein cremiger, cremefarbener Farbton, der warm und einladend ist und jedem Esszimmer einen Hauch von Raffinesse verleiht. Das Design des Tellers zeichnet ihn aus, da er von einem erfahrenen Designer mit viel Liebe zum Detail gefertigt wurde. Der Teller ist ein eigenständiges Stück, das für besondere Anlässe oder zur Präsentation bestimmt ist. Es ist ideal zum Servieren von Vorspeisen oder Desserts, und seine Größe und Form machen es einfach, es zu handhaben und auf dem Tisch herumzureichen. Insgesamt ist ein runder Designerteller aus Elfenbein eine luxuriöse und stilvolle Wahl für gehobene Speisen oder besondere Anlässe. Sein einzigartiges Design und seine hochwertige Konstruktion machen es zu einem Statement-Stück, das Gäste beeindrucken und jedes kulinarische Erlebnis aufwerten wird.", + }, + ], + "key": "ivory-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", + }, + { + "name": "color", + "value": "{"en-GB":"Ivory:#FFFFF0","de-DE":"Elfenbein:#FFFFF0","en-US":"Ivory:#FFFFF0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4576, + "width": 5088, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Ivory_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1699, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1699, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1699, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ISP-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1699, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Ivory Plate", + }, + { + "locale": "en-GB", + "value": "Ivory Plate", + }, + { + "locale": "de-DE", + "value": "Elfenbeinteller", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1699, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "ivory-plate", + }, + { + "locale": "en-GB", + "value": "ivory-plate", + }, + { + "locale": "de-DE", + "value": "elfenbeinteller", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "ISP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Ivory Plate", - }, - { - "locale": "en-GB", - "value": "Ivory Plate", - }, - { - "locale": "de-DE", - "value": "Elfenbeinteller", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "ivory-plate", - }, - { - "locale": "en-GB", - "value": "ivory-plate", - }, - { - "locale": "de-DE", - "value": "elfenbeinteller", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/jute-rug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/jute-rug.spec.ts index e85cd627c..0179883ad 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/jute-rug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/jute-rug.spec.ts @@ -5,342 +5,374 @@ describe(`with juteRug preset`, () => { it(`should return a juteRug preset`, () => { const juteRugPreset = juteRug().build(); expect(juteRugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Juteteppich ist eine Art Teppich aus Naturfasern, die aus der Jutepflanze gewonnen werden. Jute ist eine lange, weiche und glänzende Pflanzenfaser, die zu starken Fäden gesponnen und dann zu Textilien gewebt wird. Juteteppiche sind bekannt für ihre Langlebigkeit und ihr natürliches Aussehen, was sie zu einer beliebten Wahl für diejenigen macht, die einen Hauch von Natur in ihr Zuhause bringen möchten. Da Jute eine Naturfaser ist, ist sie umweltfreundlich und nachhaltig. Es kann jedoch anfällig für Flecken und Wasserschäden sein, daher sollten Juteteppiche in wenig frequentierten Bereichen oder Räumen verwendet werden, die nicht viel Feuchtigkeit ausgesetzt sind. Sie werden oft in Wohnzimmern, Schlafzimmern und anderen Räumen verwendet, in denen ein natürlicher, erdiger Look gewünscht wird. Insgesamt ist ein Juteteppich eine schöne und umweltfreundliche Ergänzung für jedes Zuhause. Seine natürlichen Fasern und sein erdiges Aussehen machen es zu einer beliebten Wahl für diejenigen, die eine warme und einladende Atmosphäre in ihrem Wohnraum schaffen möchten.", - "en": undefined, - "en-GB": "A jute area rug is a type of rug made from natural fibers derived from the jute plant. Jute is a long, soft, and shiny vegetable fiber that is spun into strong threads and then woven into textiles. Jute rugs are known for their durability and natural appearance, making them a popular choice for those who want to bring a touch of the outdoors into their homes. Because jute is a natural fiber, it is eco-friendly and sustainable. However, it can be prone to staining and water damage, so jute area rugs should be used in low-traffic areas or rooms that do not see a lot of moisture. They are often used in living rooms, bedrooms, and other spaces where a natural, earthy look is desired. Overall, a jute area rug is a beautiful and eco-friendly addition to any home. Its natural fibers and earthy appearance make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", - "en-US": "A jute area rug is a type of rug made from natural fibers derived from the jute plant. Jute is a long, soft, and shiny vegetable fiber that is spun into strong threads and then woven into textiles. Jute rugs are known for their durability and natural appearance, making them a popular choice for those who want to bring a touch of the outdoors into their homes. Because jute is a natural fiber, it is eco-friendly and sustainable. However, it can be prone to staining and water damage, so jute area rugs should be used in low-traffic areas or rooms that do not see a lot of moisture. They are often used in living rooms, bedrooms, and other spaces where a natural, earthy look is desired. Overall, a jute area rug is a beautiful and eco-friendly addition to any home. Its natural fibers and earthy appearance make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", - "fr": undefined, - }, - "key": "jute-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- 10 Fuß x 12 Fuß", - "en-GB": "- 10ft x 12ft", - "en-US": "- 10ft x 12ft", + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Juteteppich ist eine Art Teppich aus Naturfasern, die aus der Jutepflanze gewonnen werden. Jute ist eine lange, weiche und glänzende Pflanzenfaser, die zu starken Fäden gesponnen und dann zu Textilien gewebt wird. Juteteppiche sind bekannt für ihre Langlebigkeit und ihr natürliches Aussehen, was sie zu einer beliebten Wahl für diejenigen macht, die einen Hauch von Natur in ihr Zuhause bringen möchten. Da Jute eine Naturfaser ist, ist sie umweltfreundlich und nachhaltig. Es kann jedoch anfällig für Flecken und Wasserschäden sein, daher sollten Juteteppiche in wenig frequentierten Bereichen oder Räumen verwendet werden, die nicht viel Feuchtigkeit ausgesetzt sind. Sie werden oft in Wohnzimmern, Schlafzimmern und anderen Räumen verwendet, in denen ein natürlicher, erdiger Look gewünscht wird. Insgesamt ist ein Juteteppich eine schöne und umweltfreundliche Ergänzung für jedes Zuhause. Seine natürlichen Fasern und sein erdiges Aussehen machen es zu einer beliebten Wahl für diejenigen, die eine warme und einladende Atmosphäre in ihrem Wohnraum schaffen möchten.", + "en": undefined, + "en-GB": "A jute area rug is a type of rug made from natural fibers derived from the jute plant. Jute is a long, soft, and shiny vegetable fiber that is spun into strong threads and then woven into textiles. Jute rugs are known for their durability and natural appearance, making them a popular choice for those who want to bring a touch of the outdoors into their homes. Because jute is a natural fiber, it is eco-friendly and sustainable. However, it can be prone to staining and water damage, so jute area rugs should be used in low-traffic areas or rooms that do not see a lot of moisture. They are often used in living rooms, bedrooms, and other spaces where a natural, earthy look is desired. Overall, a jute area rug is a beautiful and eco-friendly addition to any home. Its natural fibers and earthy appearance make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", + "en-US": "A jute area rug is a type of rug made from natural fibers derived from the jute plant. Jute is a long, soft, and shiny vegetable fiber that is spun into strong threads and then woven into textiles. Jute rugs are known for their durability and natural appearance, making them a popular choice for those who want to bring a touch of the outdoors into their homes. Because jute is a natural fiber, it is eco-friendly and sustainable. However, it can be prone to staining and water damage, so jute area rugs should be used in low-traffic areas or rooms that do not see a lot of moisture. They are often used in living rooms, bedrooms, and other spaces where a natural, earthy look is desired. Overall, a jute area rug is a beautiful and eco-friendly addition to any home. Its natural fibers and earthy appearance make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "key": "jute-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 10 Fuß x 12 Fuß", + "en-GB": "- 10ft x 12ft", + "en-US": "- 10ft x 12ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5223, + "w": 7600, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.2.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39950GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39950, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "JAR-08", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5223, - "w": 7600, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Jute Teppich", + "en": undefined, + "en-GB": "Jute Rug", + "en-US": "Jute Rug", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.2.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "jute-teppich", + "en": undefined, + "en-GB": "jute-rug", + "en-US": "jute-rug", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - ], - "sku": "JAR-08", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Jute Teppich", - "en": undefined, - "en-GB": "Jute Rug", - "en-US": "Jute Rug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "jute-teppich", - "en": undefined, - "en-GB": "jute-rug", - "en-US": "jute-rug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a juteRug preset when built for graphql`, () => { const juteRugPresetGraphql = juteRug().buildGraphql(); expect(juteRugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A jute area rug is a type of rug made from natural fibers derived from the jute plant. Jute is a long, soft, and shiny vegetable fiber that is spun into strong threads and then woven into textiles. Jute rugs are known for their durability and natural appearance, making them a popular choice for those who want to bring a touch of the outdoors into their homes. Because jute is a natural fiber, it is eco-friendly and sustainable. However, it can be prone to staining and water damage, so jute area rugs should be used in low-traffic areas or rooms that do not see a lot of moisture. They are often used in living rooms, bedrooms, and other spaces where a natural, earthy look is desired. Overall, a jute area rug is a beautiful and eco-friendly addition to any home. Its natural fibers and earthy appearance make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", - }, - { - "locale": "en-US", - "value": "A jute area rug is a type of rug made from natural fibers derived from the jute plant. Jute is a long, soft, and shiny vegetable fiber that is spun into strong threads and then woven into textiles. Jute rugs are known for their durability and natural appearance, making them a popular choice for those who want to bring a touch of the outdoors into their homes. Because jute is a natural fiber, it is eco-friendly and sustainable. However, it can be prone to staining and water damage, so jute area rugs should be used in low-traffic areas or rooms that do not see a lot of moisture. They are often used in living rooms, bedrooms, and other spaces where a natural, earthy look is desired. Overall, a jute area rug is a beautiful and eco-friendly addition to any home. Its natural fibers and earthy appearance make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", - }, - { - "locale": "de-DE", - "value": "Ein Juteteppich ist eine Art Teppich aus Naturfasern, die aus der Jutepflanze gewonnen werden. Jute ist eine lange, weiche und glänzende Pflanzenfaser, die zu starken Fäden gesponnen und dann zu Textilien gewebt wird. Juteteppiche sind bekannt für ihre Langlebigkeit und ihr natürliches Aussehen, was sie zu einer beliebten Wahl für diejenigen macht, die einen Hauch von Natur in ihr Zuhause bringen möchten. Da Jute eine Naturfaser ist, ist sie umweltfreundlich und nachhaltig. Es kann jedoch anfällig für Flecken und Wasserschäden sein, daher sollten Juteteppiche in wenig frequentierten Bereichen oder Räumen verwendet werden, die nicht viel Feuchtigkeit ausgesetzt sind. Sie werden oft in Wohnzimmern, Schlafzimmern und anderen Räumen verwendet, in denen ein natürlicher, erdiger Look gewünscht wird. Insgesamt ist ein Juteteppich eine schöne und umweltfreundliche Ergänzung für jedes Zuhause. Seine natürlichen Fasern und sein erdiges Aussehen machen es zu einer beliebten Wahl für diejenigen, die eine warme und einladende Atmosphäre in ihrem Wohnraum schaffen möchten.", - }, - ], - "key": "jute-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 10ft x 12ft","de-DE":"- 10 Fuß x 12 Fuß","en-US":"- 10ft x 12ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5223, - "width": 7600, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.1.jpeg", - }, { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.2.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", + "categories": [ + { + "key": "rugs", + "typeId": "category", }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A jute area rug is a type of rug made from natural fibers derived from the jute plant. Jute is a long, soft, and shiny vegetable fiber that is spun into strong threads and then woven into textiles. Jute rugs are known for their durability and natural appearance, making them a popular choice for those who want to bring a touch of the outdoors into their homes. Because jute is a natural fiber, it is eco-friendly and sustainable. However, it can be prone to staining and water damage, so jute area rugs should be used in low-traffic areas or rooms that do not see a lot of moisture. They are often used in living rooms, bedrooms, and other spaces where a natural, earthy look is desired. Overall, a jute area rug is a beautiful and eco-friendly addition to any home. Its natural fibers and earthy appearance make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", + }, + { + "locale": "en-US", + "value": "A jute area rug is a type of rug made from natural fibers derived from the jute plant. Jute is a long, soft, and shiny vegetable fiber that is spun into strong threads and then woven into textiles. Jute rugs are known for their durability and natural appearance, making them a popular choice for those who want to bring a touch of the outdoors into their homes. Because jute is a natural fiber, it is eco-friendly and sustainable. However, it can be prone to staining and water damage, so jute area rugs should be used in low-traffic areas or rooms that do not see a lot of moisture. They are often used in living rooms, bedrooms, and other spaces where a natural, earthy look is desired. Overall, a jute area rug is a beautiful and eco-friendly addition to any home. Its natural fibers and earthy appearance make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", + }, + { + "locale": "de-DE", + "value": "Ein Juteteppich ist eine Art Teppich aus Naturfasern, die aus der Jutepflanze gewonnen werden. Jute ist eine lange, weiche und glänzende Pflanzenfaser, die zu starken Fäden gesponnen und dann zu Textilien gewebt wird. Juteteppiche sind bekannt für ihre Langlebigkeit und ihr natürliches Aussehen, was sie zu einer beliebten Wahl für diejenigen macht, die einen Hauch von Natur in ihr Zuhause bringen möchten. Da Jute eine Naturfaser ist, ist sie umweltfreundlich und nachhaltig. Es kann jedoch anfällig für Flecken und Wasserschäden sein, daher sollten Juteteppiche in wenig frequentierten Bereichen oder Räumen verwendet werden, die nicht viel Feuchtigkeit ausgesetzt sind. Sie werden oft in Wohnzimmern, Schlafzimmern und anderen Räumen verwendet, in denen ein natürlicher, erdiger Look gewünscht wird. Insgesamt ist ein Juteteppich eine schöne und umweltfreundliche Ergänzung für jedes Zuhause. Seine natürlichen Fasern und sein erdiges Aussehen machen es zu einer beliebten Wahl für diejenigen, die eine warme und einladende Atmosphäre in ihrem Wohnraum schaffen möchten.", + }, + ], + "key": "jute-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 10ft x 12ft","de-DE":"- 10 Fuß x 12 Fuß","en-US":"- 10ft x 12ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5223, + "width": 7600, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.2.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Jute_Rug-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39950GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39950, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "JAR-08", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Jute Rug", + }, + { + "locale": "en-GB", + "value": "Jute Rug", }, + { + "locale": "de-DE", + "value": "Jute Teppich", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "jute-rug", + }, + { + "locale": "en-GB", + "value": "jute-rug", + }, + { + "locale": "de-DE", + "value": "jute-teppich", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "JAR-08", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Jute Rug", - }, - { - "locale": "en-GB", - "value": "Jute Rug", - }, - { - "locale": "de-DE", - "value": "Jute Teppich", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "jute-rug", - }, - { - "locale": "en-GB", - "value": "jute-rug", - }, - { - "locale": "de-DE", - "value": "jute-teppich", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover.spec.ts index f7e28dac9..9f0491778 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/lana-pillow-cover.spec.ts @@ -5,303 +5,303 @@ describe(`with lanaPillowCover preset`, () => { it(`should return a lanaPillowCover preset`, () => { const lanaPillowCoverPreset = lanaPillowCover().build(); expect(lanaPillowCoverPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Mikrofaser-Kissenbezug ist eine Art Textilbezug für ein Kissen, der aus synthetischen Fasern wie Polyester oder Nylon hergestellt wird. Mikrofaser ist bekannt für ihre Weichheit, Haltbarkeit und einfache Pflege. Der Kissenbezug ist so konzipiert, dass er über ein Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Es hat eine quadratische Form und kann in einer Vielzahl von Farben und Mustern erhältlich sein, um verschiedenen Einrichtungsstilen und Vorlieben gerecht zu werden. Das Mikrofasergewebe fühlt sich glatt und seidig an, ist sanft zur Haut und bietet eine angenehme Schlafoberfläche. Es ist außerdem atmungsaktiv und feuchtigkeitstransportierend, was hilft, die Körpertemperatur zu regulieren und eine Überhitzung während der Nacht zu verhindern. Der Kissenbezug wird oft wegen seiner praktischen und funktionalen Eigenschaften verwendet, wie z. B. seiner Pflegeleichtigkeit und Beständigkeit gegen Falten, Flecken und Ausbleichen. Es kann einfach in einer Maschine gewaschen und getrocknet werden, was es zu einer praktischen und pflegeleichten Option für vielbeschäftigte Haushalte macht. Insgesamt ist ein Mikrofaser-Kissenbezug ein vielseitiges und praktisches Accessoire, das den Komfort und die Haltbarkeit eines Kissens verbessern kann. Es kann sowohl zum täglichen Schlafen als auch zu dekorativen Zwecken in einer Vielzahl von Umgebungen wie Schlaf-, Gästezimmern und Wohnzimmern verwendet werden.", - "en": undefined, - "en-GB": "A microfiber pillow cover is a type of textile covering for a pillow that is made from synthetic fibers such as polyester or nylon. Microfiber is known for its softness, durability, and easy maintenance. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and can come in a variety of colors and patterns to suit different decor styles and preferences. The microfiber fabric has a smooth and silky feel that is gentle on the skin and provides a comfortable surface for sleeping. It is also breathable and moisture-wicking, which helps to regulate body temperature and prevent overheating during the night. The pillow cover is often used for its practical and functional features, such as its easy care and resistance to wrinkles, stains, and fading. It can be easily washed and dried in a machine, making it a convenient and low-maintenance option for busy households. Overall, a microfiber pillow cover is a versatile and practical accessory that can enhance the comfort and durability of a pillow. It can be used for everyday sleeping, as well as for decorative purposes in a variety of settings, such as bedrooms, guest rooms, and living rooms.", - "en-US": "A microfiber pillow cover is a type of textile covering for a pillow that is made from synthetic fibers such as polyester or nylon. Microfiber is known for its softness, durability, and easy maintenance. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and can come in a variety of colors and patterns to suit different decor styles and preferences. The microfiber fabric has a smooth and silky feel that is gentle on the skin and provides a comfortable surface for sleeping. It is also breathable and moisture-wicking, which helps to regulate body temperature and prevent overheating during the night. The pillow cover is often used for its practical and functional features, such as its easy care and resistance to wrinkles, stains, and fading. It can be easily washed and dried in a machine, making it a convenient and low-maintenance option for busy households. Overall, a microfiber pillow cover is a versatile and practical accessory that can enhance the comfort and durability of a pillow. It can be used for everyday sleeping, as well as for decorative purposes in a variety of settings, such as bedrooms, guest rooms, and living rooms.", - "fr": undefined, - }, - "key": "lana-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten -- Verfügt über ein Reißverschlussgehäuse", - "en-GB": "- Machine washable -- Pillow not included -- Has a zip enclosure", - "en-US": "- Machine washable -- Pillow not included -- Has a zip enclosure", + "categories": [ + { + "key": "bedding", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Mikrofaser-Kissenbezug ist eine Art Textilbezug für ein Kissen, der aus synthetischen Fasern wie Polyester oder Nylon hergestellt wird. Mikrofaser ist bekannt für ihre Weichheit, Haltbarkeit und einfache Pflege. Der Kissenbezug ist so konzipiert, dass er über ein Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Es hat eine quadratische Form und kann in einer Vielzahl von Farben und Mustern erhältlich sein, um verschiedenen Einrichtungsstilen und Vorlieben gerecht zu werden. Das Mikrofasergewebe fühlt sich glatt und seidig an, ist sanft zur Haut und bietet eine angenehme Schlafoberfläche. Es ist außerdem atmungsaktiv und feuchtigkeitstransportierend, was hilft, die Körpertemperatur zu regulieren und eine Überhitzung während der Nacht zu verhindern. Der Kissenbezug wird oft wegen seiner praktischen und funktionalen Eigenschaften verwendet, wie z. B. seiner Pflegeleichtigkeit und Beständigkeit gegen Falten, Flecken und Ausbleichen. Es kann einfach in einer Maschine gewaschen und getrocknet werden, was es zu einer praktischen und pflegeleichten Option für vielbeschäftigte Haushalte macht. Insgesamt ist ein Mikrofaser-Kissenbezug ein vielseitiges und praktisches Accessoire, das den Komfort und die Haltbarkeit eines Kissens verbessern kann. Es kann sowohl zum täglichen Schlafen als auch zu dekorativen Zwecken in einer Vielzahl von Umgebungen wie Schlaf-, Gästezimmern und Wohnzimmern verwendet werden.", + "en": undefined, + "en-GB": "A microfiber pillow cover is a type of textile covering for a pillow that is made from synthetic fibers such as polyester or nylon. Microfiber is known for its softness, durability, and easy maintenance. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and can come in a variety of colors and patterns to suit different decor styles and preferences. The microfiber fabric has a smooth and silky feel that is gentle on the skin and provides a comfortable surface for sleeping. It is also breathable and moisture-wicking, which helps to regulate body temperature and prevent overheating during the night. The pillow cover is often used for its practical and functional features, such as its easy care and resistance to wrinkles, stains, and fading. It can be easily washed and dried in a machine, making it a convenient and low-maintenance option for busy households. Overall, a microfiber pillow cover is a versatile and practical accessory that can enhance the comfort and durability of a pillow. It can be used for everyday sleeping, as well as for decorative purposes in a variety of settings, such as bedrooms, guest rooms, and living rooms.", + "en-US": "A microfiber pillow cover is a type of textile covering for a pillow that is made from synthetic fibers such as polyester or nylon. Microfiber is known for its softness, durability, and easy maintenance. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and can come in a variety of colors and patterns to suit different decor styles and preferences. The microfiber fabric has a smooth and silky feel that is gentle on the skin and provides a comfortable surface for sleeping. It is also breathable and moisture-wicking, which helps to regulate body temperature and prevent overheating during the night. The pillow cover is often used for its practical and functional features, such as its easy care and resistance to wrinkles, stains, and fading. It can be easily washed and dried in a machine, making it a convenient and low-maintenance option for busy households. Overall, a microfiber pillow cover is a versatile and practical accessory that can enhance the comfort and durability of a pillow. It can be used for everyday sleeping, as well as for decorative purposes in a variety of settings, such as bedrooms, guest rooms, and living rooms.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", + "key": "lana-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten + - Verfügt über ein Reißverschlussgehäuse", + "en-GB": "- Machine washable + - Pillow not included + - Has a zip enclosure", + "en-US": "- Machine washable + - Pillow not included + - Has a zip enclosure", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3143, + "w": 4350, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Lana_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + ], + "sku": "LPC-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3143, - "w": 4350, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Lana Kissenbezug", + "en": undefined, + "en-GB": "Lana Pillow Cover", + "en-US": "Lana Pillow Cover", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Lana_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "lana-kissenbezug", + "en": undefined, + "en-GB": "lana-pillow-cover", + "en-US": "lana-pillow-cover", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LPC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Lana Kissenbezug", - "en": undefined, - "en-GB": "Lana Pillow Cover", - "en-US": "Lana Pillow Cover", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "lana-kissenbezug", - "en": undefined, - "en-GB": "lana-pillow-cover", - "en-US": "lana-pillow-cover", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a lanaPillowCover preset when built for graphql`, () => { const lanaPillowCoverPresetGraphql = lanaPillowCover().buildGraphql(); expect(lanaPillowCoverPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A microfiber pillow cover is a type of textile covering for a pillow that is made from synthetic fibers such as polyester or nylon. Microfiber is known for its softness, durability, and easy maintenance. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and can come in a variety of colors and patterns to suit different decor styles and preferences. The microfiber fabric has a smooth and silky feel that is gentle on the skin and provides a comfortable surface for sleeping. It is also breathable and moisture-wicking, which helps to regulate body temperature and prevent overheating during the night. The pillow cover is often used for its practical and functional features, such as its easy care and resistance to wrinkles, stains, and fading. It can be easily washed and dried in a machine, making it a convenient and low-maintenance option for busy households. Overall, a microfiber pillow cover is a versatile and practical accessory that can enhance the comfort and durability of a pillow. It can be used for everyday sleeping, as well as for decorative purposes in a variety of settings, such as bedrooms, guest rooms, and living rooms.", - }, - { - "locale": "en-US", - "value": "A microfiber pillow cover is a type of textile covering for a pillow that is made from synthetic fibers such as polyester or nylon. Microfiber is known for its softness, durability, and easy maintenance. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and can come in a variety of colors and patterns to suit different decor styles and preferences. The microfiber fabric has a smooth and silky feel that is gentle on the skin and provides a comfortable surface for sleeping. It is also breathable and moisture-wicking, which helps to regulate body temperature and prevent overheating during the night. The pillow cover is often used for its practical and functional features, such as its easy care and resistance to wrinkles, stains, and fading. It can be easily washed and dried in a machine, making it a convenient and low-maintenance option for busy households. Overall, a microfiber pillow cover is a versatile and practical accessory that can enhance the comfort and durability of a pillow. It can be used for everyday sleeping, as well as for decorative purposes in a variety of settings, such as bedrooms, guest rooms, and living rooms.", - }, - { - "locale": "de-DE", - "value": "Ein Mikrofaser-Kissenbezug ist eine Art Textilbezug für ein Kissen, der aus synthetischen Fasern wie Polyester oder Nylon hergestellt wird. Mikrofaser ist bekannt für ihre Weichheit, Haltbarkeit und einfache Pflege. Der Kissenbezug ist so konzipiert, dass er über ein Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Es hat eine quadratische Form und kann in einer Vielzahl von Farben und Mustern erhältlich sein, um verschiedenen Einrichtungsstilen und Vorlieben gerecht zu werden. Das Mikrofasergewebe fühlt sich glatt und seidig an, ist sanft zur Haut und bietet eine angenehme Schlafoberfläche. Es ist außerdem atmungsaktiv und feuchtigkeitstransportierend, was hilft, die Körpertemperatur zu regulieren und eine Überhitzung während der Nacht zu verhindern. Der Kissenbezug wird oft wegen seiner praktischen und funktionalen Eigenschaften verwendet, wie z. B. seiner Pflegeleichtigkeit und Beständigkeit gegen Falten, Flecken und Ausbleichen. Es kann einfach in einer Maschine gewaschen und getrocknet werden, was es zu einer praktischen und pflegeleichten Option für vielbeschäftigte Haushalte macht. Insgesamt ist ein Mikrofaser-Kissenbezug ein vielseitiges und praktisches Accessoire, das den Komfort und die Haltbarkeit eines Kissens verbessern kann. Es kann sowohl zum täglichen Schlafen als auch zu dekorativen Zwecken in einer Vielzahl von Umgebungen wie Schlaf-, Gästezimmern und Wohnzimmern verwendet werden.", - }, - ], - "key": "lana-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included\\n- Has a zip enclosure","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten\\n- Verfügt über ein Reißverschlussgehäuse","en-US":"- Machine washable\\n- Pillow not included\\n- Has a zip enclosure"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3143, - "width": 4350, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Lana_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedding", + "typeId": "category", }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A microfiber pillow cover is a type of textile covering for a pillow that is made from synthetic fibers such as polyester or nylon. Microfiber is known for its softness, durability, and easy maintenance. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and can come in a variety of colors and patterns to suit different decor styles and preferences. The microfiber fabric has a smooth and silky feel that is gentle on the skin and provides a comfortable surface for sleeping. It is also breathable and moisture-wicking, which helps to regulate body temperature and prevent overheating during the night. The pillow cover is often used for its practical and functional features, such as its easy care and resistance to wrinkles, stains, and fading. It can be easily washed and dried in a machine, making it a convenient and low-maintenance option for busy households. Overall, a microfiber pillow cover is a versatile and practical accessory that can enhance the comfort and durability of a pillow. It can be used for everyday sleeping, as well as for decorative purposes in a variety of settings, such as bedrooms, guest rooms, and living rooms.", + }, + { + "locale": "en-US", + "value": "A microfiber pillow cover is a type of textile covering for a pillow that is made from synthetic fibers such as polyester or nylon. Microfiber is known for its softness, durability, and easy maintenance. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and can come in a variety of colors and patterns to suit different decor styles and preferences. The microfiber fabric has a smooth and silky feel that is gentle on the skin and provides a comfortable surface for sleeping. It is also breathable and moisture-wicking, which helps to regulate body temperature and prevent overheating during the night. The pillow cover is often used for its practical and functional features, such as its easy care and resistance to wrinkles, stains, and fading. It can be easily washed and dried in a machine, making it a convenient and low-maintenance option for busy households. Overall, a microfiber pillow cover is a versatile and practical accessory that can enhance the comfort and durability of a pillow. It can be used for everyday sleeping, as well as for decorative purposes in a variety of settings, such as bedrooms, guest rooms, and living rooms.", + }, + { + "locale": "de-DE", + "value": "Ein Mikrofaser-Kissenbezug ist eine Art Textilbezug für ein Kissen, der aus synthetischen Fasern wie Polyester oder Nylon hergestellt wird. Mikrofaser ist bekannt für ihre Weichheit, Haltbarkeit und einfache Pflege. Der Kissenbezug ist so konzipiert, dass er über ein Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Es hat eine quadratische Form und kann in einer Vielzahl von Farben und Mustern erhältlich sein, um verschiedenen Einrichtungsstilen und Vorlieben gerecht zu werden. Das Mikrofasergewebe fühlt sich glatt und seidig an, ist sanft zur Haut und bietet eine angenehme Schlafoberfläche. Es ist außerdem atmungsaktiv und feuchtigkeitstransportierend, was hilft, die Körpertemperatur zu regulieren und eine Überhitzung während der Nacht zu verhindern. Der Kissenbezug wird oft wegen seiner praktischen und funktionalen Eigenschaften verwendet, wie z. B. seiner Pflegeleichtigkeit und Beständigkeit gegen Falten, Flecken und Ausbleichen. Es kann einfach in einer Maschine gewaschen und getrocknet werden, was es zu einer praktischen und pflegeleichten Option für vielbeschäftigte Haushalte macht. Insgesamt ist ein Mikrofaser-Kissenbezug ein vielseitiges und praktisches Accessoire, das den Komfort und die Haltbarkeit eines Kissens verbessern kann. Es kann sowohl zum täglichen Schlafen als auch zu dekorativen Zwecken in einer Vielzahl von Umgebungen wie Schlaf-, Gästezimmern und Wohnzimmern verwendet werden.", + }, + ], + "key": "lana-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included\\n- Has a zip enclosure","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten\\n- Verfügt über ein Reißverschlussgehäuse","en-US":"- Machine washable\\n- Pillow not included\\n- Has a zip enclosure"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3143, + "width": 4350, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Lana_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LPC-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Lana Pillow Cover", }, + { + "locale": "en-GB", + "value": "Lana Pillow Cover", + }, + { + "locale": "de-DE", + "value": "Lana Kissenbezug", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "lana-pillow-cover", + }, + { + "locale": "en-GB", + "value": "lana-pillow-cover", + }, + { + "locale": "de-DE", + "value": "lana-kissenbezug", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LPC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Lana Pillow Cover", - }, - { - "locale": "en-GB", - "value": "Lana Pillow Cover", - }, - { - "locale": "de-DE", - "value": "Lana Kissenbezug", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "lana-pillow-cover", - }, - { - "locale": "en-GB", - "value": "lana-pillow-cover", - }, - { - "locale": "de-DE", - "value": "lana-kissenbezug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate.spec.ts index be590bcb1..15753a6f6 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/large-ceramic-plate.spec.ts @@ -5,519 +5,519 @@ describe(`with largeCeramicPlate preset`, () => { it(`should return a largeCeramicPlate preset`, () => { const largeCeramicPlatePreset = largeCeramicPlate().build(); expect(largeCeramicPlatePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "plates", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein großer runder Keramikteller in Helloliv und Hellgrau ist ein schönes und vielseitiges Geschirr, das sich perfekt zum Servieren einer Vielzahl von Mahlzeiten eignet. Der Teller wird in der Regel aus hochwertigem Keramikmaterial handgefertigt und verfügt über eine glänzende Oberfläche, die ihm ein poliertes und elegantes Aussehen verleiht. Die Platte ist groß und hat typischerweise einen Durchmesser von etwa 12 bis 14 Zoll. Dadurch eignet er sich ideal zum Servieren großer Speisenportionen, wie z. B. eines Hauptgerichts oder einer gemeinsamen Vorspeise. Die runde Form des Tellers bietet viel Platz zum Anrichten von Speisen, während der erhöhte Rand des Tellers verhindert, dass Saucen und Säfte über die Seiten schwappen. Der Teller ist in zwei schönen und neutralen Farben erhältlich - Helloliv und Hellgrau. Diese Farben sind perfekt, um eine breite Palette von Einrichtungsstilen und Farbschemata für Esszimmer zu ergänzen, von modern und minimalistisch bis rustikal und erdig. Der Teller zeichnet sich durch ein schlichtes und elegantes Design mit glatter Oberfläche und einem minimalistischen Look aus. Dies macht es ideal für zwanglose und formelle Anlässe, von alltäglichen Familienessen bis hin zu besonderen Anlässen und Dinnerpartys. Insgesamt ist ein großer runder Keramikteller in hellen Oliv- und Hellgrautönen eine schöne und praktische Ergänzung für jedes Esszimmer. Sein schlichtes und elegantes Design, kombiniert mit seinen vielseitigen Größen- und Farboptionen, machen ihn zur perfekten Wahl, um eine Vielzahl von Mahlzeiten zu servieren und ein stilvolles und einladendes Speiseerlebnis zu schaffen.", - "en": undefined, - "en-GB": "A large ceramic round plate that comes in light olive and light gray colors is a beautiful and versatile piece of dinnerware that is perfect for serving a variety of meals. The plate is typically handcrafted from high-quality ceramic material, and features a glossy finish that gives it a polished and elegant appearance. The plate is large in size, typically measuring around 12-14 inches in diameter. This makes it ideal for serving large portions of food, such as a main course or a shared appetizer. The round shape of the plate provides ample space for arranging food, while the raised edge of the plate prevents sauces and juices from spilling over the sides. The plate comes in two beautiful and neutral colors - light olive and light gray. These colors are perfect for complementing a wide range of dining room decor styles and color schemes, from modern and minimalist to rustic and earthy. The plate features a simple and elegant design, with a smooth surface and a minimalist look. This makes it ideal for both casual and formal dining occasions, from everyday family meals to special occasions and dinner parties. Overall, a large ceramic round plate in light olive and light gray colors is a beautiful and practical addition to any dining room. Its simple and elegant design, combined with its versatile size and color options, make it a perfect choice for serving a variety of meals and creating a stylish and inviting dining experience.", - "en-US": "A large ceramic round plate that comes in light olive and light gray colors is a beautiful and versatile piece of dinnerware that is perfect for serving a variety of meals. The plate is typically handcrafted from high-quality ceramic material, and features a glossy finish that gives it a polished and elegant appearance. The plate is large in size, typically measuring around 12-14 inches in diameter. This makes it ideal for serving large portions of food, such as a main course or a shared appetizer. The round shape of the plate provides ample space for arranging food, while the raised edge of the plate prevents sauces and juices from spilling over the sides. The plate comes in two beautiful and neutral colors - light olive and light gray. These colors are perfect for complementing a wide range of dining room decor styles and color schemes, from modern and minimalist to rustic and earthy. The plate features a simple and elegant design, with a smooth surface and a minimalist look. This makes it ideal for both casual and formal dining occasions, from everyday family meals to special occasions and dinner parties. Overall, a large ceramic round plate in light olive and light gray colors is a beautiful and practical addition to any dining room. Its simple and elegant design, combined with its versatile size and color options, make it a perfect choice for serving a variety of meals and creating a stylish and inviting dining experience.", - "fr": undefined, - }, - "key": "large-ceramic-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Helles Oliv:#BAB86C", - "en-GB": "Light Olive:#BAB86C", - "en-US": "Light Olive:#BAB86C", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Ceramic -- Sold as 1 piece -- Dishwasher safe", - "en-GB": "- Ceramic -- Sold as 1 piece -- Dishwasher safe -- Microwave safe", - "en-US": "- Ceramic -- Sold as 1 piece -- Dishwasher safe", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2700, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.1.jpeg", - }, - { - "dimensions": { - "h": 2700, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", - }, - }, - ], - "sku": "LCP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Große Keramikplatte", - "en": undefined, - "en-GB": "Large Ceramic Plate", - "en-US": "Large Ceramic Plate", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "groe-keramikplatte", - "en": undefined, - "en-GB": "large-ceramic-plate", - "en-US": "large-ceramic-plate", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", + "categories": [ + { + "key": "kitchen", + "typeId": "category", }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Ceramic -- Sold as 1 piece -- Dishwasher safe", - "en-GB": "- Ceramic -- Sold as 1 piece -- Dishwasher safe -- Microwave safe", - "en-US": "- Ceramic -- Sold as 1 piece -- Dishwasher safe", + { + "key": "plates", + "typeId": "category", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2700, - "w": 3000, + { + "key": "dinnerware", + "typeId": "category", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.1.jpeg", - }, - { - "dimensions": { - "h": 2700, - "w": 3000, + { + "key": "new-arrivals", + "typeId": "category", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.2.jpeg", + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein großer runder Keramikteller in Helloliv und Hellgrau ist ein schönes und vielseitiges Geschirr, das sich perfekt zum Servieren einer Vielzahl von Mahlzeiten eignet. Der Teller wird in der Regel aus hochwertigem Keramikmaterial handgefertigt und verfügt über eine glänzende Oberfläche, die ihm ein poliertes und elegantes Aussehen verleiht. Die Platte ist groß und hat typischerweise einen Durchmesser von etwa 12 bis 14 Zoll. Dadurch eignet er sich ideal zum Servieren großer Speisenportionen, wie z. B. eines Hauptgerichts oder einer gemeinsamen Vorspeise. Die runde Form des Tellers bietet viel Platz zum Anrichten von Speisen, während der erhöhte Rand des Tellers verhindert, dass Saucen und Säfte über die Seiten schwappen. Der Teller ist in zwei schönen und neutralen Farben erhältlich - Helloliv und Hellgrau. Diese Farben sind perfekt, um eine breite Palette von Einrichtungsstilen und Farbschemata für Esszimmer zu ergänzen, von modern und minimalistisch bis rustikal und erdig. Der Teller zeichnet sich durch ein schlichtes und elegantes Design mit glatter Oberfläche und einem minimalistischen Look aus. Dies macht es ideal für zwanglose und formelle Anlässe, von alltäglichen Familienessen bis hin zu besonderen Anlässen und Dinnerpartys. Insgesamt ist ein großer runder Keramikteller in hellen Oliv- und Hellgrautönen eine schöne und praktische Ergänzung für jedes Esszimmer. Sein schlichtes und elegantes Design, kombiniert mit seinen vielseitigen Größen- und Farboptionen, machen ihn zur perfekten Wahl, um eine Vielzahl von Mahlzeiten zu servieren und ein stilvolles und einladendes Speiseerlebnis zu schaffen.", + "en": undefined, + "en-GB": "A large ceramic round plate that comes in light olive and light gray colors is a beautiful and versatile piece of dinnerware that is perfect for serving a variety of meals. The plate is typically handcrafted from high-quality ceramic material, and features a glossy finish that gives it a polished and elegant appearance. The plate is large in size, typically measuring around 12-14 inches in diameter. This makes it ideal for serving large portions of food, such as a main course or a shared appetizer. The round shape of the plate provides ample space for arranging food, while the raised edge of the plate prevents sauces and juices from spilling over the sides. The plate comes in two beautiful and neutral colors - light olive and light gray. These colors are perfect for complementing a wide range of dining room decor styles and color schemes, from modern and minimalist to rustic and earthy. The plate features a simple and elegant design, with a smooth surface and a minimalist look. This makes it ideal for both casual and formal dining occasions, from everyday family meals to special occasions and dinner parties. Overall, a large ceramic round plate in light olive and light gray colors is a beautiful and practical addition to any dining room. Its simple and elegant design, combined with its versatile size and color options, make it a perfect choice for serving a variety of meals and creating a stylish and inviting dining experience.", + "en-US": "A large ceramic round plate that comes in light olive and light gray colors is a beautiful and versatile piece of dinnerware that is perfect for serving a variety of meals. The plate is typically handcrafted from high-quality ceramic material, and features a glossy finish that gives it a polished and elegant appearance. The plate is large in size, typically measuring around 12-14 inches in diameter. This makes it ideal for serving large portions of food, such as a main course or a shared appetizer. The round shape of the plate provides ample space for arranging food, while the raised edge of the plate prevents sauces and juices from spilling over the sides. The plate comes in two beautiful and neutral colors - light olive and light gray. These colors are perfect for complementing a wide range of dining room decor styles and color schemes, from modern and minimalist to rustic and earthy. The plate features a simple and elegant design, with a smooth surface and a minimalist look. This makes it ideal for both casual and formal dining occasions, from everyday family meals to special occasions and dinner parties. Overall, a large ceramic round plate in light olive and light gray colors is a beautiful and practical addition to any dining room. Its simple and elegant design, combined with its versatile size and color options, make it a perfect choice for serving a variety of meals and creating a stylish and inviting dining experience.", + "fr": undefined, }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + "key": "large-ceramic-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Helles Oliv:#BAB86C", + "en-GB": "Light Olive:#BAB86C", + "en-US": "Light Olive:#BAB86C", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Ceramic + - Sold as 1 piece + - Dishwasher safe", + "en-GB": "- Ceramic + - Sold as 1 piece + - Dishwasher safe + - Microwave safe", + "en-US": "- Ceramic + - Sold as 1 piece + - Dishwasher safe", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2700, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.1.jpeg", + }, + { + "dimensions": { + "h": 2700, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.2.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", - }, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "LCP-01", }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", - }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Große Keramikplatte", + "en": undefined, + "en-GB": "Large Ceramic Plate", + "en-US": "Large Ceramic Plate", + "fr": undefined, }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", - }, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - ], - "sku": "LCP-02", - }, - ], -} -`); + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "groe-keramikplatte", + "en": undefined, + "en-GB": "large-ceramic-plate", + "en-US": "large-ceramic-plate", + "fr": undefined, + }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Ceramic + - Sold as 1 piece + - Dishwasher safe", + "en-GB": "- Ceramic + - Sold as 1 piece + - Dishwasher safe + - Microwave safe", + "en-US": "- Ceramic + - Sold as 1 piece + - Dishwasher safe", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2700, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.1.jpeg", + }, + { + "dimensions": { + "h": 2700, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "LCP-02", + }, + ], + } + `); }); it(`should return a largeCeramicPlate preset when built for graphql`, () => { const largeCeramicPlatePresetGraphql = largeCeramicPlate().buildGraphql(); expect(largeCeramicPlatePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "plates", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A large ceramic round plate that comes in light olive and light gray colors is a beautiful and versatile piece of dinnerware that is perfect for serving a variety of meals. The plate is typically handcrafted from high-quality ceramic material, and features a glossy finish that gives it a polished and elegant appearance. The plate is large in size, typically measuring around 12-14 inches in diameter. This makes it ideal for serving large portions of food, such as a main course or a shared appetizer. The round shape of the plate provides ample space for arranging food, while the raised edge of the plate prevents sauces and juices from spilling over the sides. The plate comes in two beautiful and neutral colors - light olive and light gray. These colors are perfect for complementing a wide range of dining room decor styles and color schemes, from modern and minimalist to rustic and earthy. The plate features a simple and elegant design, with a smooth surface and a minimalist look. This makes it ideal for both casual and formal dining occasions, from everyday family meals to special occasions and dinner parties. Overall, a large ceramic round plate in light olive and light gray colors is a beautiful and practical addition to any dining room. Its simple and elegant design, combined with its versatile size and color options, make it a perfect choice for serving a variety of meals and creating a stylish and inviting dining experience.", - }, - { - "locale": "en-US", - "value": "A large ceramic round plate that comes in light olive and light gray colors is a beautiful and versatile piece of dinnerware that is perfect for serving a variety of meals. The plate is typically handcrafted from high-quality ceramic material, and features a glossy finish that gives it a polished and elegant appearance. The plate is large in size, typically measuring around 12-14 inches in diameter. This makes it ideal for serving large portions of food, such as a main course or a shared appetizer. The round shape of the plate provides ample space for arranging food, while the raised edge of the plate prevents sauces and juices from spilling over the sides. The plate comes in two beautiful and neutral colors - light olive and light gray. These colors are perfect for complementing a wide range of dining room decor styles and color schemes, from modern and minimalist to rustic and earthy. The plate features a simple and elegant design, with a smooth surface and a minimalist look. This makes it ideal for both casual and formal dining occasions, from everyday family meals to special occasions and dinner parties. Overall, a large ceramic round plate in light olive and light gray colors is a beautiful and practical addition to any dining room. Its simple and elegant design, combined with its versatile size and color options, make it a perfect choice for serving a variety of meals and creating a stylish and inviting dining experience.", - }, - { - "locale": "de-DE", - "value": "Ein großer runder Keramikteller in Helloliv und Hellgrau ist ein schönes und vielseitiges Geschirr, das sich perfekt zum Servieren einer Vielzahl von Mahlzeiten eignet. Der Teller wird in der Regel aus hochwertigem Keramikmaterial handgefertigt und verfügt über eine glänzende Oberfläche, die ihm ein poliertes und elegantes Aussehen verleiht. Die Platte ist groß und hat typischerweise einen Durchmesser von etwa 12 bis 14 Zoll. Dadurch eignet er sich ideal zum Servieren großer Speisenportionen, wie z. B. eines Hauptgerichts oder einer gemeinsamen Vorspeise. Die runde Form des Tellers bietet viel Platz zum Anrichten von Speisen, während der erhöhte Rand des Tellers verhindert, dass Saucen und Säfte über die Seiten schwappen. Der Teller ist in zwei schönen und neutralen Farben erhältlich - Helloliv und Hellgrau. Diese Farben sind perfekt, um eine breite Palette von Einrichtungsstilen und Farbschemata für Esszimmer zu ergänzen, von modern und minimalistisch bis rustikal und erdig. Der Teller zeichnet sich durch ein schlichtes und elegantes Design mit glatter Oberfläche und einem minimalistischen Look aus. Dies macht es ideal für zwanglose und formelle Anlässe, von alltäglichen Familienessen bis hin zu besonderen Anlässen und Dinnerpartys. Insgesamt ist ein großer runder Keramikteller in hellen Oliv- und Hellgrautönen eine schöne und praktische Ergänzung für jedes Esszimmer. Sein schlichtes und elegantes Design, kombiniert mit seinen vielseitigen Größen- und Farboptionen, machen ihn zur perfekten Wahl, um eine Vielzahl von Mahlzeiten zu servieren und ein stilvolles und einladendes Speiseerlebnis zu schaffen.", - }, - ], - "key": "large-ceramic-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Light Olive:#BAB86C","en-GB":"Light Olive:#BAB86C","de-DE":"Helles Oliv:#BAB86C"}", - }, { - "name": "productspec", - "value": "{"en-US":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe","en-GB":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe\\n- Microwave safe","de-DE":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2700, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.1.jpeg", - }, - { - "dimensions": { - "height": 2700, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "EUR", + "categories": [ + { + "key": "kitchen", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "GBP", + { + "key": "plates", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "USD", + { + "key": "dinnerware", + "typeId": "category", }, - }, - }, - ], - "sku": "LCP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Large Ceramic Plate", - }, - { - "locale": "en-GB", - "value": "Large Ceramic Plate", - }, - { - "locale": "de-DE", - "value": "Große Keramikplatte", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "large-ceramic-plate", - }, - { - "locale": "en-GB", - "value": "large-ceramic-plate", - }, - { - "locale": "de-DE", - "value": "groe-keramikplatte", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Light Gray:#D3D3D3","en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe","en-GB":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe\\n- Microwave safe","de-DE":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2700, - "width": 3000, + { + "key": "new-arrivals", + "typeId": "category", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.1.jpeg", - }, - { - "dimensions": { - "height": 2700, - "width": 3000, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A large ceramic round plate that comes in light olive and light gray colors is a beautiful and versatile piece of dinnerware that is perfect for serving a variety of meals. The plate is typically handcrafted from high-quality ceramic material, and features a glossy finish that gives it a polished and elegant appearance. The plate is large in size, typically measuring around 12-14 inches in diameter. This makes it ideal for serving large portions of food, such as a main course or a shared appetizer. The round shape of the plate provides ample space for arranging food, while the raised edge of the plate prevents sauces and juices from spilling over the sides. The plate comes in two beautiful and neutral colors - light olive and light gray. These colors are perfect for complementing a wide range of dining room decor styles and color schemes, from modern and minimalist to rustic and earthy. The plate features a simple and elegant design, with a smooth surface and a minimalist look. This makes it ideal for both casual and formal dining occasions, from everyday family meals to special occasions and dinner parties. Overall, a large ceramic round plate in light olive and light gray colors is a beautiful and practical addition to any dining room. Its simple and elegant design, combined with its versatile size and color options, make it a perfect choice for serving a variety of meals and creating a stylish and inviting dining experience.", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "EUR", - }, + { + "locale": "en-US", + "value": "A large ceramic round plate that comes in light olive and light gray colors is a beautiful and versatile piece of dinnerware that is perfect for serving a variety of meals. The plate is typically handcrafted from high-quality ceramic material, and features a glossy finish that gives it a polished and elegant appearance. The plate is large in size, typically measuring around 12-14 inches in diameter. This makes it ideal for serving large portions of food, such as a main course or a shared appetizer. The round shape of the plate provides ample space for arranging food, while the raised edge of the plate prevents sauces and juices from spilling over the sides. The plate comes in two beautiful and neutral colors - light olive and light gray. These colors are perfect for complementing a wide range of dining room decor styles and color schemes, from modern and minimalist to rustic and earthy. The plate features a simple and elegant design, with a smooth surface and a minimalist look. This makes it ideal for both casual and formal dining occasions, from everyday family meals to special occasions and dinner parties. Overall, a large ceramic round plate in light olive and light gray colors is a beautiful and practical addition to any dining room. Its simple and elegant design, combined with its versatile size and color options, make it a perfect choice for serving a variety of meals and creating a stylish and inviting dining experience.", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + { + "locale": "de-DE", + "value": "Ein großer runder Keramikteller in Helloliv und Hellgrau ist ein schönes und vielseitiges Geschirr, das sich perfekt zum Servieren einer Vielzahl von Mahlzeiten eignet. Der Teller wird in der Regel aus hochwertigem Keramikmaterial handgefertigt und verfügt über eine glänzende Oberfläche, die ihm ein poliertes und elegantes Aussehen verleiht. Die Platte ist groß und hat typischerweise einen Durchmesser von etwa 12 bis 14 Zoll. Dadurch eignet er sich ideal zum Servieren großer Speisenportionen, wie z. B. eines Hauptgerichts oder einer gemeinsamen Vorspeise. Die runde Form des Tellers bietet viel Platz zum Anrichten von Speisen, während der erhöhte Rand des Tellers verhindert, dass Saucen und Säfte über die Seiten schwappen. Der Teller ist in zwei schönen und neutralen Farben erhältlich - Helloliv und Hellgrau. Diese Farben sind perfekt, um eine breite Palette von Einrichtungsstilen und Farbschemata für Esszimmer zu ergänzen, von modern und minimalistisch bis rustikal und erdig. Der Teller zeichnet sich durch ein schlichtes und elegantes Design mit glatter Oberfläche und einem minimalistischen Look aus. Dies macht es ideal für zwanglose und formelle Anlässe, von alltäglichen Familienessen bis hin zu besonderen Anlässen und Dinnerpartys. Insgesamt ist ein großer runder Keramikteller in hellen Oliv- und Hellgrautönen eine schöne und praktische Ergänzung für jedes Esszimmer. Sein schlichtes und elegantes Design, kombiniert mit seinen vielseitigen Größen- und Farboptionen, machen ihn zur perfekten Wahl, um eine Vielzahl von Mahlzeiten zu servieren und ein stilvolles und einladendes Speiseerlebnis zu schaffen.", + }, + ], + "key": "large-ceramic-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Light Olive:#BAB86C","en-GB":"Light Olive:#BAB86C","de-DE":"Helles Oliv:#BAB86C"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe","en-GB":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe\\n- Microwave safe","de-DE":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2700, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.1.jpeg", + }, + { + "dimensions": { + "height": 2700, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-1.2.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "GBP", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, }, + ], + "sku": "LCP-01", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Large Ceramic Plate", + }, + { + "locale": "en-GB", + "value": "Large Ceramic Plate", }, + { + "locale": "de-DE", + "value": "Große Keramikplatte", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "USD", - }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "large-ceramic-plate", + }, + { + "locale": "en-GB", + "value": "large-ceramic-plate", }, + { + "locale": "de-DE", + "value": "groe-keramikplatte", + }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - ], - "sku": "LCP-02", - }, - ], -} -`); + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Light Gray:#D3D3D3","en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe","en-GB":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe\\n- Microwave safe","de-DE":"- Ceramic\\n- Sold as 1 piece\\n- Dishwasher safe"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2700, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.1.jpeg", + }, + { + "dimensions": { + "height": 2700, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Large_Ceramic_Plate-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LCP-02", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leah-armchair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leah-armchair.spec.ts index fb7602002..9ca8a3801 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leah-armchair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leah-armchair.spec.ts @@ -5,317 +5,317 @@ describe(`with leahArmchair preset`, () => { it(`should return a leahArmchair preset`, () => { const leahArmchairPreset = leahArmchair().build(); expect(leahArmchairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein getufteter Sessel mit Messingbeinen ist ein elegantes und luxuriöses Möbelstück. Der Stuhl verfügt typischerweise über einen tiefen Sitz und eine hohe Rückenlehne, die beide gepolstert und mit weichem und plüschigem Material bezogen sind. Das getuftete Design sorgt für einen raffinierten und zeitlosen Look, während die Messingbeine einen Hauch von Glamour und Raffinesse verleihen. Die Beine verleihen dem Stuhl ein elegantes und modernes Aussehen. Die Armlehnen sind gebogen und weich und bieten sowohl Komfort als auch Unterstützung für die Arme. Insgesamt ist ein getufteter Sessel mit Messingbeinen eine stilvolle und bequeme Ergänzung für jeden Wohn- oder Loungebereich.", - "en": undefined, - "en-GB": "A tufted armchair with brass legs is an elegant and luxurious piece of furniture. The chair typically features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the brass legs add a touch of glamour and sophistication. The legs give the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", - "en-US": "A tufted armchair with brass legs is an elegant and luxurious piece of furniture. The chair typically features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the brass legs add a touch of glamour and sophistication. The legs give the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", - "fr": undefined, - }, - "key": "leah-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein getufteter Sessel mit Messingbeinen ist ein elegantes und luxuriöses Möbelstück. Der Stuhl verfügt typischerweise über einen tiefen Sitz und eine hohe Rückenlehne, die beide gepolstert und mit weichem und plüschigem Material bezogen sind. Das getuftete Design sorgt für einen raffinierten und zeitlosen Look, während die Messingbeine einen Hauch von Glamour und Raffinesse verleihen. Die Beine verleihen dem Stuhl ein elegantes und modernes Aussehen. Die Armlehnen sind gebogen und weich und bieten sowohl Komfort als auch Unterstützung für die Arme. Insgesamt ist ein getufteter Sessel mit Messingbeinen eine stilvolle und bequeme Ergänzung für jeden Wohn- oder Loungebereich.", + "en": undefined, + "en-GB": "A tufted armchair with brass legs is an elegant and luxurious piece of furniture. The chair typically features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the brass legs add a touch of glamour and sophistication. The legs give the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", + "en-US": "A tufted armchair with brass legs is an elegant and luxurious piece of furniture. The chair typically features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the brass legs add a touch of glamour and sophistication. The legs give the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Grau:#808080", - "en-GB": "Grey:#808080", - "en-US": "Gray:#808080", + "key": "leah-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grau:#808080", + "en-GB": "Grey:#808080", + "en-US": "Gray:#808080", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leah_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "LAMR-03", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Leah Sessel", + "en": undefined, + "en-GB": "Leah Armchair", + "en-US": "Leah Armchair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3200, - "w": 2400, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leah_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "leah-sessel", + "en": undefined, + "en-GB": "leah-armchair", + "en-US": "leah-armchair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LAMR-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Leah Sessel", - "en": undefined, - "en-GB": "Leah Armchair", - "en-US": "Leah Armchair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "leah-sessel", - "en": undefined, - "en-GB": "leah-armchair", - "en-US": "leah-armchair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a leahArmchair preset when built for graphql`, () => { const leahArmchairPresetGraphql = leahArmchair().buildGraphql(); expect(leahArmchairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A tufted armchair with brass legs is an elegant and luxurious piece of furniture. The chair typically features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the brass legs add a touch of glamour and sophistication. The legs give the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", - }, - { - "locale": "en-US", - "value": "A tufted armchair with brass legs is an elegant and luxurious piece of furniture. The chair typically features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the brass legs add a touch of glamour and sophistication. The legs give the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", - }, - { - "locale": "de-DE", - "value": "Ein getufteter Sessel mit Messingbeinen ist ein elegantes und luxuriöses Möbelstück. Der Stuhl verfügt typischerweise über einen tiefen Sitz und eine hohe Rückenlehne, die beide gepolstert und mit weichem und plüschigem Material bezogen sind. Das getuftete Design sorgt für einen raffinierten und zeitlosen Look, während die Messingbeine einen Hauch von Glamour und Raffinesse verleihen. Die Beine verleihen dem Stuhl ein elegantes und modernes Aussehen. Die Armlehnen sind gebogen und weich und bieten sowohl Komfort als auch Unterstützung für die Arme. Insgesamt ist ein getufteter Sessel mit Messingbeinen eine stilvolle und bequeme Ergänzung für jeden Wohn- oder Loungebereich.", - }, - ], - "key": "leah-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", - }, - { - "name": "color", - "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3200, - "width": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leah_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A tufted armchair with brass legs is an elegant and luxurious piece of furniture. The chair typically features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the brass legs add a touch of glamour and sophistication. The legs give the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", + }, + { + "locale": "en-US", + "value": "A tufted armchair with brass legs is an elegant and luxurious piece of furniture. The chair typically features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the brass legs add a touch of glamour and sophistication. The legs give the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", + }, + { + "locale": "de-DE", + "value": "Ein getufteter Sessel mit Messingbeinen ist ein elegantes und luxuriöses Möbelstück. Der Stuhl verfügt typischerweise über einen tiefen Sitz und eine hohe Rückenlehne, die beide gepolstert und mit weichem und plüschigem Material bezogen sind. Das getuftete Design sorgt für einen raffinierten und zeitlosen Look, während die Messingbeine einen Hauch von Glamour und Raffinesse verleihen. Die Beine verleihen dem Stuhl ein elegantes und modernes Aussehen. Die Armlehnen sind gebogen und weich und bieten sowohl Komfort als auch Unterstützung für die Arme. Insgesamt ist ein getufteter Sessel mit Messingbeinen eine stilvolle und bequeme Ergänzung für jeden Wohn- oder Loungebereich.", }, + ], + "key": "leah-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only","de-DE":"- Nur chemische Reinigung","en-US":"- Dry clean only"}", + }, + { + "name": "color", + "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3200, + "width": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leah_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LAMR-03", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Leah Armchair", + }, + { + "locale": "en-GB", + "value": "Leah Armchair", + }, + { + "locale": "de-DE", + "value": "Leah Sessel", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "leah-armchair", + }, + { + "locale": "en-GB", + "value": "leah-armchair", + }, + { + "locale": "de-DE", + "value": "leah-sessel", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LAMR-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Leah Armchair", - }, - { - "locale": "en-GB", - "value": "Leah Armchair", - }, - { - "locale": "de-DE", - "value": "Leah Sessel", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "leah-armchair", - }, - { - "locale": "en-GB", - "value": "leah-armchair", - }, - { - "locale": "de-DE", - "value": "leah-sessel", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leather-coaster.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leather-coaster.spec.ts index 9dc1df4f0..b1b6e125f 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leather-coaster.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leather-coaster.spec.ts @@ -5,305 +5,305 @@ describe(`with leatherCoaster preset`, () => { it(`should return a leatherCoaster preset`, () => { const leatherCoasterPreset = leatherCoaster().build(); expect(leatherCoasterPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein runder Lederuntersetzer ist so konzipiert, dass er unter einem Getränk platziert werden kann, um die darunter liegende Oberfläche vor Feuchtigkeit und Hitze zu schützen. Es misst etwa 4 Zoll im Durchmesser und besteht aus hochwertigem Ledermaterial. Die Kanten des Untersetzers sind mit Messing veredelt. Die Unterseite des Untersetzers ist mit einem rutschfesten Material versehen, um ein Verrutschen auf glatten Oberflächen zu verhindern.", - "en": undefined, - "en-GB": "A round leather coaster is designed to be placed underneath a drink to protect the surface beneath from moisture and heat. It measures around 4 inches in diameter and is made of high-quality leather material. The edges of the coaster is finished with brass. The underside of the coaster features a non-slip material to prevent it from sliding on smooth surfaces.", - "en-US": "A round leather coaster is designed to be placed underneath a drink to protect the surface beneath from moisture and heat. It measures around 4 inches in diameter and is made of high-quality leather material. The edges of the coaster is finished with brass. The underside of the coaster features a non-slip material to prevent it from sliding on smooth surfaces.", - "fr": undefined, - }, - "key": "leather-coaster", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 4 Untersetzer", - "en-GB": "- Includes 4 coasters", - "en-US": "- Includes 4 coasters", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein runder Lederuntersetzer ist so konzipiert, dass er unter einem Getränk platziert werden kann, um die darunter liegende Oberfläche vor Feuchtigkeit und Hitze zu schützen. Es misst etwa 4 Zoll im Durchmesser und besteht aus hochwertigem Ledermaterial. Die Kanten des Untersetzers sind mit Messing veredelt. Die Unterseite des Untersetzers ist mit einem rutschfesten Material versehen, um ein Verrutschen auf glatten Oberflächen zu verhindern.", + "en": undefined, + "en-GB": "A round leather coaster is designed to be placed underneath a drink to protect the surface beneath from moisture and heat. It measures around 4 inches in diameter and is made of high-quality leather material. The edges of the coaster is finished with brass. The underside of the coaster features a non-slip material to prevent it from sliding on smooth surfaces.", + "en-US": "A round leather coaster is designed to be placed underneath a drink to protect the surface beneath from moisture and heat. It measures around 4 inches in diameter and is made of high-quality leather material. The edges of the coaster is finished with brass. The underside of the coaster features a non-slip material to prevent it from sliding on smooth surfaces.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + "key": "leather-coaster", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 4 Untersetzer", + "en-GB": "- Includes 4 coasters", + "en-US": "- Includes 4 coasters", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2864, + "w": 2864, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Coaster-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + ], + "sku": "LCO-034", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2864, - "w": 2864, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Leder Untersetzer", + "en": undefined, + "en-GB": "Leather Coaster", + "en-US": "Leather Coaster", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Coaster-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "untersetzer-aus-leder", + "en": undefined, + "en-GB": "leather-coaster", + "en-US": "leather-coaster", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LCO-034", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Leder Untersetzer", - "en": undefined, - "en-GB": "Leather Coaster", - "en-US": "Leather Coaster", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "untersetzer-aus-leder", - "en": undefined, - "en-GB": "leather-coaster", - "en-US": "leather-coaster", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a leatherCoaster preset when built for graphql`, () => { const leatherCoasterPresetGraphql = leatherCoaster().buildGraphql(); expect(leatherCoasterPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A round leather coaster is designed to be placed underneath a drink to protect the surface beneath from moisture and heat. It measures around 4 inches in diameter and is made of high-quality leather material. The edges of the coaster is finished with brass. The underside of the coaster features a non-slip material to prevent it from sliding on smooth surfaces.", - }, - { - "locale": "en-US", - "value": "A round leather coaster is designed to be placed underneath a drink to protect the surface beneath from moisture and heat. It measures around 4 inches in diameter and is made of high-quality leather material. The edges of the coaster is finished with brass. The underside of the coaster features a non-slip material to prevent it from sliding on smooth surfaces.", - }, - { - "locale": "de-DE", - "value": "Ein runder Lederuntersetzer ist so konzipiert, dass er unter einem Getränk platziert werden kann, um die darunter liegende Oberfläche vor Feuchtigkeit und Hitze zu schützen. Es misst etwa 4 Zoll im Durchmesser und besteht aus hochwertigem Ledermaterial. Die Kanten des Untersetzers sind mit Messing veredelt. Die Unterseite des Untersetzers ist mit einem rutschfesten Material versehen, um ein Verrutschen auf glatten Oberflächen zu verhindern.", - }, - ], - "key": "leather-coaster", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 4 coasters","de-DE":"- Enthält 4 Untersetzer","en-US":"- Includes 4 coasters"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2864, - "width": 2864, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Coaster-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "EUR", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A round leather coaster is designed to be placed underneath a drink to protect the surface beneath from moisture and heat. It measures around 4 inches in diameter and is made of high-quality leather material. The edges of the coaster is finished with brass. The underside of the coaster features a non-slip material to prevent it from sliding on smooth surfaces.", + }, + { + "locale": "en-US", + "value": "A round leather coaster is designed to be placed underneath a drink to protect the surface beneath from moisture and heat. It measures around 4 inches in diameter and is made of high-quality leather material. The edges of the coaster is finished with brass. The underside of the coaster features a non-slip material to prevent it from sliding on smooth surfaces.", + }, + { + "locale": "de-DE", + "value": "Ein runder Lederuntersetzer ist so konzipiert, dass er unter einem Getränk platziert werden kann, um die darunter liegende Oberfläche vor Feuchtigkeit und Hitze zu schützen. Es misst etwa 4 Zoll im Durchmesser und besteht aus hochwertigem Ledermaterial. Die Kanten des Untersetzers sind mit Messing veredelt. Die Unterseite des Untersetzers ist mit einem rutschfesten Material versehen, um ein Verrutschen auf glatten Oberflächen zu verhindern.", + }, + ], + "key": "leather-coaster", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 4 coasters","de-DE":"- Enthält 4 Untersetzer","en-US":"- Includes 4 coasters"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2864, + "width": 2864, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Coaster-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LCO-034", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Leather Coaster", }, + { + "locale": "en-GB", + "value": "Leather Coaster", + }, + { + "locale": "de-DE", + "value": "Leder Untersetzer", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "leather-coaster", + }, + { + "locale": "en-GB", + "value": "leather-coaster", + }, + { + "locale": "de-DE", + "value": "untersetzer-aus-leder", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LCO-034", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Leather Coaster", - }, - { - "locale": "en-GB", - "value": "Leather Coaster", - }, - { - "locale": "de-DE", - "value": "Leder Untersetzer", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "leather-coaster", - }, - { - "locale": "en-GB", - "value": "leather-coaster", - }, - { - "locale": "de-DE", - "value": "untersetzer-aus-leder", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair.spec.ts index 23c8a4661..363ae3c23 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/leather-weave-chair.spec.ts @@ -5,329 +5,329 @@ describe(`with leatherWeaveChair preset`, () => { it(`should return a leatherWeaveChair preset`, () => { const leatherWeaveChairPreset = leatherWeaveChair().build(); expect(leatherWeaveChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Holzstuhl mit Lederbezug ist ein schönes und funktionales Möbelstück, das natürliche Materialien mit einem Hauch von Luxus verbindet. Der Stuhl verfügt über einen robusten und langlebigen Holzrahmen aus hochwertigem Hartholz, der eine solide Grundlage für Sitz und Rückenlehne bietet. Der Sitz und die Rückenlehne des Stuhls bestehen aus einem engen Gewebe aus Lederstreifen, wodurch eine einzigartige und auffällige Textur entsteht, die den Gesamteindruck des Stuhls verstärkt. Der Stuhl hat ein einfaches und elegantes Design mit klaren Linien und einer minimalistischen Ästhetik, die sich leicht in eine Vielzahl von Einrichtungsstilen integrieren lässt. Die Beine des Stuhls sind aus Stabilitätsgründen leicht nach außen geneigt. Die Unterseite der Beine kann mit Schutzkappen versehen werden, um Kratzer oder Schäden an Ihren Böden zu vermeiden. Insgesamt ist ein Holzstuhl mit Lederbezug ein vielseitiges und stilvolles Möbelstück, das jedem Raum Wärme, Textur und visuelles Interesse verleiht. Seine Kombination aus natürlichen Materialien und luxuriösen Details macht es zu einer beliebten Wahl für alle, die ihrem Zuhause einen Hauch von Raffinesse und Eleganz verleihen möchten.", - "en": undefined, - "en-GB": "A wooden chair with leather weave upholstery is a beautiful and functional piece of furniture that blends natural materials with a touch of luxury. The chair features a sturdy and durable wooden frame, crafted from high-quality hardwood, that provides a solid foundation for the seat and backrest. The seat and backrest of the chair are made from a tight weave of leather strips, creating a unique and eye-catching texture that adds to the chair's overall appeal. The chair has a simple and elegant design, with clean lines and a minimalist aesthetic that makes it easy to incorporate into a variety of interior design styles. The legs of the chair are angled slightly outward for stability. The bottom of the legs may be fitted with protective caps to prevent scratches or damage to your floors. Overall, a wooden chair with leather weave upholstery is a versatile and stylish piece of furniture that can add warmth, texture, and visual interest to any room. Its combination of natural materials and luxurious details makes it a popular choice for anyone looking to add a touch of sophistication and elegance to their home.", - "en-US": "A wooden chair with leather weave upholstery is a beautiful and functional piece of furniture that blends natural materials with a touch of luxury. The chair features a sturdy and durable wooden frame, crafted from high-quality hardwood, that provides a solid foundation for the seat and backrest. The seat and backrest of the chair are made from a tight weave of leather strips, creating a unique and eye-catching texture that adds to the chair's overall appeal. The chair has a simple and elegant design, with clean lines and a minimalist aesthetic that makes it easy to incorporate into a variety of interior design styles. The legs of the chair are angled slightly outward for stability. The bottom of the legs may be fitted with protective caps to prevent scratches or damage to your floors. Overall, a wooden chair with leather weave upholstery is a versatile and stylish piece of furniture that can add warmth, texture, and visual interest to any room. Its combination of natural materials and luxurious details makes it a popular choice for anyone looking to add a touch of sophistication and elegance to their home.", - "fr": undefined, - }, - "key": "leather-weave-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "new-arrival", - "value": true, - }, - { - "name": "color", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", + "categories": [ + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Holzstuhl mit Lederbezug ist ein schönes und funktionales Möbelstück, das natürliche Materialien mit einem Hauch von Luxus verbindet. Der Stuhl verfügt über einen robusten und langlebigen Holzrahmen aus hochwertigem Hartholz, der eine solide Grundlage für Sitz und Rückenlehne bietet. Der Sitz und die Rückenlehne des Stuhls bestehen aus einem engen Gewebe aus Lederstreifen, wodurch eine einzigartige und auffällige Textur entsteht, die den Gesamteindruck des Stuhls verstärkt. Der Stuhl hat ein einfaches und elegantes Design mit klaren Linien und einer minimalistischen Ästhetik, die sich leicht in eine Vielzahl von Einrichtungsstilen integrieren lässt. Die Beine des Stuhls sind aus Stabilitätsgründen leicht nach außen geneigt. Die Unterseite der Beine kann mit Schutzkappen versehen werden, um Kratzer oder Schäden an Ihren Böden zu vermeiden. Insgesamt ist ein Holzstuhl mit Lederbezug ein vielseitiges und stilvolles Möbelstück, das jedem Raum Wärme, Textur und visuelles Interesse verleiht. Seine Kombination aus natürlichen Materialien und luxuriösen Details macht es zu einer beliebten Wahl für alle, die ihrem Zuhause einen Hauch von Raffinesse und Eleganz verleihen möchten.", + "en": undefined, + "en-GB": "A wooden chair with leather weave upholstery is a beautiful and functional piece of furniture that blends natural materials with a touch of luxury. The chair features a sturdy and durable wooden frame, crafted from high-quality hardwood, that provides a solid foundation for the seat and backrest. The seat and backrest of the chair are made from a tight weave of leather strips, creating a unique and eye-catching texture that adds to the chair's overall appeal. The chair has a simple and elegant design, with clean lines and a minimalist aesthetic that makes it easy to incorporate into a variety of interior design styles. The legs of the chair are angled slightly outward for stability. The bottom of the legs may be fitted with protective caps to prevent scratches or damage to your floors. Overall, a wooden chair with leather weave upholstery is a versatile and stylish piece of furniture that can add warmth, texture, and visual interest to any room. Its combination of natural materials and luxurious details makes it a popular choice for anyone looking to add a touch of sophistication and elegance to their home.", + "en-US": "A wooden chair with leather weave upholstery is a beautiful and functional piece of furniture that blends natural materials with a touch of luxury. The chair features a sturdy and durable wooden frame, crafted from high-quality hardwood, that provides a solid foundation for the seat and backrest. The seat and backrest of the chair are made from a tight weave of leather strips, creating a unique and eye-catching texture that adds to the chair's overall appeal. The chair has a simple and elegant design, with clean lines and a minimalist aesthetic that makes it easy to incorporate into a variety of interior design styles. The legs of the chair are angled slightly outward for stability. The bottom of the legs may be fitted with protective caps to prevent scratches or damage to your floors. Overall, a wooden chair with leather weave upholstery is a versatile and stylish piece of furniture that can add warmth, texture, and visual interest to any room. Its combination of natural materials and luxurious details makes it a popular choice for anyone looking to add a touch of sophistication and elegance to their home.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "key": "leather-weave-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "new-arrival", + "value": true, + }, + { + "name": "color", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4400, + "w": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.1.jpeg", + }, + { + "dimensions": { + "h": 4500, + "w": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 34900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "BA-092", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4400, - "w": 5500, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Ledergeflecht Stuhl", + "en": undefined, + "en-GB": "Leather Weave Chair", + "en-US": "Leather Weave Chair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.1.jpeg", - }, - { - "dimensions": { - "h": 4500, - "w": 3375, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "stuhl-aus-ledergeflecht", + "en": undefined, + "en-GB": "leather-weave-chair", + "en-US": "leather-weave-chair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 34900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BA-092", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Ledergeflecht Stuhl", - "en": undefined, - "en-GB": "Leather Weave Chair", - "en-US": "Leather Weave Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "stuhl-aus-ledergeflecht", - "en": undefined, - "en-GB": "leather-weave-chair", - "en-US": "leather-weave-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a leatherWeaveChair preset when built for graphql`, () => { const leatherWeaveChairPresetGraphql = leatherWeaveChair().buildGraphql(); expect(leatherWeaveChairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A wooden chair with leather weave upholstery is a beautiful and functional piece of furniture that blends natural materials with a touch of luxury. The chair features a sturdy and durable wooden frame, crafted from high-quality hardwood, that provides a solid foundation for the seat and backrest. The seat and backrest of the chair are made from a tight weave of leather strips, creating a unique and eye-catching texture that adds to the chair's overall appeal. The chair has a simple and elegant design, with clean lines and a minimalist aesthetic that makes it easy to incorporate into a variety of interior design styles. The legs of the chair are angled slightly outward for stability. The bottom of the legs may be fitted with protective caps to prevent scratches or damage to your floors. Overall, a wooden chair with leather weave upholstery is a versatile and stylish piece of furniture that can add warmth, texture, and visual interest to any room. Its combination of natural materials and luxurious details makes it a popular choice for anyone looking to add a touch of sophistication and elegance to their home.", - }, - { - "locale": "en-US", - "value": "A wooden chair with leather weave upholstery is a beautiful and functional piece of furniture that blends natural materials with a touch of luxury. The chair features a sturdy and durable wooden frame, crafted from high-quality hardwood, that provides a solid foundation for the seat and backrest. The seat and backrest of the chair are made from a tight weave of leather strips, creating a unique and eye-catching texture that adds to the chair's overall appeal. The chair has a simple and elegant design, with clean lines and a minimalist aesthetic that makes it easy to incorporate into a variety of interior design styles. The legs of the chair are angled slightly outward for stability. The bottom of the legs may be fitted with protective caps to prevent scratches or damage to your floors. Overall, a wooden chair with leather weave upholstery is a versatile and stylish piece of furniture that can add warmth, texture, and visual interest to any room. Its combination of natural materials and luxurious details makes it a popular choice for anyone looking to add a touch of sophistication and elegance to their home.", - }, - { - "locale": "de-DE", - "value": "Ein Holzstuhl mit Lederbezug ist ein schönes und funktionales Möbelstück, das natürliche Materialien mit einem Hauch von Luxus verbindet. Der Stuhl verfügt über einen robusten und langlebigen Holzrahmen aus hochwertigem Hartholz, der eine solide Grundlage für Sitz und Rückenlehne bietet. Der Sitz und die Rückenlehne des Stuhls bestehen aus einem engen Gewebe aus Lederstreifen, wodurch eine einzigartige und auffällige Textur entsteht, die den Gesamteindruck des Stuhls verstärkt. Der Stuhl hat ein einfaches und elegantes Design mit klaren Linien und einer minimalistischen Ästhetik, die sich leicht in eine Vielzahl von Einrichtungsstilen integrieren lässt. Die Beine des Stuhls sind aus Stabilitätsgründen leicht nach außen geneigt. Die Unterseite der Beine kann mit Schutzkappen versehen werden, um Kratzer oder Schäden an Ihren Böden zu vermeiden. Insgesamt ist ein Holzstuhl mit Lederbezug ein vielseitiges und stilvolles Möbelstück, das jedem Raum Wärme, Textur und visuelles Interesse verleiht. Seine Kombination aus natürlichen Materialien und luxuriösen Details macht es zu einer beliebten Wahl für alle, die ihrem Zuhause einen Hauch von Raffinesse und Eleganz verleihen möchten.", - }, - ], - "key": "leather-weave-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "new-arrival", - "value": "true", - }, { - "name": "color", - "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4400, - "width": 5500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.1.jpeg", - }, - { - "dimensions": { - "height": 4500, - "width": 3375, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", + "categories": [ + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A wooden chair with leather weave upholstery is a beautiful and functional piece of furniture that blends natural materials with a touch of luxury. The chair features a sturdy and durable wooden frame, crafted from high-quality hardwood, that provides a solid foundation for the seat and backrest. The seat and backrest of the chair are made from a tight weave of leather strips, creating a unique and eye-catching texture that adds to the chair's overall appeal. The chair has a simple and elegant design, with clean lines and a minimalist aesthetic that makes it easy to incorporate into a variety of interior design styles. The legs of the chair are angled slightly outward for stability. The bottom of the legs may be fitted with protective caps to prevent scratches or damage to your floors. Overall, a wooden chair with leather weave upholstery is a versatile and stylish piece of furniture that can add warmth, texture, and visual interest to any room. Its combination of natural materials and luxurious details makes it a popular choice for anyone looking to add a touch of sophistication and elegance to their home.", + }, + { + "locale": "en-US", + "value": "A wooden chair with leather weave upholstery is a beautiful and functional piece of furniture that blends natural materials with a touch of luxury. The chair features a sturdy and durable wooden frame, crafted from high-quality hardwood, that provides a solid foundation for the seat and backrest. The seat and backrest of the chair are made from a tight weave of leather strips, creating a unique and eye-catching texture that adds to the chair's overall appeal. The chair has a simple and elegant design, with clean lines and a minimalist aesthetic that makes it easy to incorporate into a variety of interior design styles. The legs of the chair are angled slightly outward for stability. The bottom of the legs may be fitted with protective caps to prevent scratches or damage to your floors. Overall, a wooden chair with leather weave upholstery is a versatile and stylish piece of furniture that can add warmth, texture, and visual interest to any room. Its combination of natural materials and luxurious details makes it a popular choice for anyone looking to add a touch of sophistication and elegance to their home.", }, + { + "locale": "de-DE", + "value": "Ein Holzstuhl mit Lederbezug ist ein schönes und funktionales Möbelstück, das natürliche Materialien mit einem Hauch von Luxus verbindet. Der Stuhl verfügt über einen robusten und langlebigen Holzrahmen aus hochwertigem Hartholz, der eine solide Grundlage für Sitz und Rückenlehne bietet. Der Sitz und die Rückenlehne des Stuhls bestehen aus einem engen Gewebe aus Lederstreifen, wodurch eine einzigartige und auffällige Textur entsteht, die den Gesamteindruck des Stuhls verstärkt. Der Stuhl hat ein einfaches und elegantes Design mit klaren Linien und einer minimalistischen Ästhetik, die sich leicht in eine Vielzahl von Einrichtungsstilen integrieren lässt. Die Beine des Stuhls sind aus Stabilitätsgründen leicht nach außen geneigt. Die Unterseite der Beine kann mit Schutzkappen versehen werden, um Kratzer oder Schäden an Ihren Böden zu vermeiden. Insgesamt ist ein Holzstuhl mit Lederbezug ein vielseitiges und stilvolles Möbelstück, das jedem Raum Wärme, Textur und visuelles Interesse verleiht. Seine Kombination aus natürlichen Materialien und luxuriösen Details macht es zu einer beliebten Wahl für alle, die ihrem Zuhause einen Hauch von Raffinesse und Eleganz verleihen möchten.", + }, + ], + "key": "leather-weave-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "color", + "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4400, + "width": 5500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.1.jpeg", + }, + { + "dimensions": { + "height": 4500, + "width": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Leather_Weave_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 34900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BA-092", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 34900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Leather Weave Chair", + }, + { + "locale": "en-GB", + "value": "Leather Weave Chair", + }, + { + "locale": "de-DE", + "value": "Ledergeflecht Stuhl", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "leather-weave-chair", + }, + { + "locale": "en-GB", + "value": "leather-weave-chair", + }, + { + "locale": "de-DE", + "value": "stuhl-aus-ledergeflecht", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BA-092", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Leather Weave Chair", - }, - { - "locale": "en-GB", - "value": "Leather Weave Chair", - }, - { - "locale": "de-DE", - "value": "Ledergeflecht Stuhl", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "leather-weave-chair", - }, - { - "locale": "en-GB", - "value": "leather-weave-chair", - }, - { - "locale": "de-DE", - "value": "stuhl-aus-ledergeflecht", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover.spec.ts index 62e203a43..78c184c50 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/luxe-pillow-cover.spec.ts @@ -5,300 +5,300 @@ describe(`with luxePillowCover preset`, () => { it(`should return a luxePillowCover preset`, () => { const luxePillowCoverPreset = luxePillowCover().build(); expect(luxePillowCoverPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser luxuriöse Kissenbezug ist aus schwarzem Lammfell gefertigt. Shearling ist bekannt für seine Weichheit, Wärme und isolierenden Eigenschaften. Der Kissenbezug ist so konzipiert, dass er über ein Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Es hat eine quadratische Form und eine tiefschwarze Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Shearling-Stoff hat eine plüschige und flauschige Textur, die sich unglaublich weich anfühlt. Es bietet eine gemütliche und warme Oberfläche zum Schlafen oder Faulenzen, was es zu einer beliebten Wahl für die kälteren Monate macht. Der Kissenbezug wird oft wegen seiner dekorativen und luxuriösen Eigenschaften sowie wegen seiner praktischen und funktionalen Vorteile verwendet. Es kann einem Bett, Sofa oder Akzentstuhl einen Hauch von Textur und visuellem Interesse verleihen und gleichzeitig eine bequeme und stützende Oberfläche für Kopf und Nacken bieten. Das Shearling-Gewebe ist von Natur aus wasser- und schmutzabweisend und lässt sich leicht mit einem feuchten Tuch oder Schwamm reinigen. Es sollte regelmäßig an der Luft getrocknet und aufgelockert werden, um seine Form und Textur zu erhalten. Insgesamt ist ein schwarzer Lammfell-Kissenbezug ein stilvolles und bequemes Accessoire, das den Komfort und Stil jedes Raums im Haus verbessern kann und gleichzeitig einen praktischen und funktionellen Nutzen bietet.", - "en": undefined, - "en-GB": "This Luxe Pillow Cover is made of black shearling. Shearling is known for its softness, warmth, and insulating properties. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and a deep black color that can complement a variety of decor styles and color schemes. The shearling fabric has a plush and fluffy texture that is incredibly soft to the touch. It provides a cozy and warm surface for sleeping or lounging, making it a popular choice for colder months. The pillow cover is often used for its decorative and luxurious features, as well as for its practical and functional benefits. It can add a touch of texture and visual interest to a bed, sofa, or accent chair, while also providing a comfortable and supportive surface for the head and neck. The shearling fabric is naturally resistant to water and stains, and can be easily cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, a black shearling pillow cover is a stylish and comfortable accessory that can enhance the comfort and style of any room in the home, while also providing a practical and functional benefit.", - "en-US": "This Luxe Pillow Cover is made of black shearling. Shearling is known for its softness, warmth, and insulating properties. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and a deep black color that can complement a variety of decor styles and color schemes. The shearling fabric has a plush and fluffy texture that is incredibly soft to the touch. It provides a cozy and warm surface for sleeping or lounging, making it a popular choice for colder months. The pillow cover is often used for its decorative and luxurious features, as well as for its practical and functional benefits. It can add a touch of texture and visual interest to a bed, sofa, or accent chair, while also providing a comfortable and supportive surface for the head and neck. The shearling fabric is naturally resistant to water and stains, and can be easily cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, a black shearling pillow cover is a stylish and comfortable accessory that can enhance the comfort and style of any room in the home, while also providing a practical and functional benefit.", - "fr": undefined, - }, - "key": "luxe-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + "categories": [ + { + "key": "bedding", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser luxuriöse Kissenbezug ist aus schwarzem Lammfell gefertigt. Shearling ist bekannt für seine Weichheit, Wärme und isolierenden Eigenschaften. Der Kissenbezug ist so konzipiert, dass er über ein Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Es hat eine quadratische Form und eine tiefschwarze Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Shearling-Stoff hat eine plüschige und flauschige Textur, die sich unglaublich weich anfühlt. Es bietet eine gemütliche und warme Oberfläche zum Schlafen oder Faulenzen, was es zu einer beliebten Wahl für die kälteren Monate macht. Der Kissenbezug wird oft wegen seiner dekorativen und luxuriösen Eigenschaften sowie wegen seiner praktischen und funktionalen Vorteile verwendet. Es kann einem Bett, Sofa oder Akzentstuhl einen Hauch von Textur und visuellem Interesse verleihen und gleichzeitig eine bequeme und stützende Oberfläche für Kopf und Nacken bieten. Das Shearling-Gewebe ist von Natur aus wasser- und schmutzabweisend und lässt sich leicht mit einem feuchten Tuch oder Schwamm reinigen. Es sollte regelmäßig an der Luft getrocknet und aufgelockert werden, um seine Form und Textur zu erhalten. Insgesamt ist ein schwarzer Lammfell-Kissenbezug ein stilvolles und bequemes Accessoire, das den Komfort und Stil jedes Raums im Haus verbessern kann und gleichzeitig einen praktischen und funktionellen Nutzen bietet.", + "en": undefined, + "en-GB": "This Luxe Pillow Cover is made of black shearling. Shearling is known for its softness, warmth, and insulating properties. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and a deep black color that can complement a variety of decor styles and color schemes. The shearling fabric has a plush and fluffy texture that is incredibly soft to the touch. It provides a cozy and warm surface for sleeping or lounging, making it a popular choice for colder months. The pillow cover is often used for its decorative and luxurious features, as well as for its practical and functional benefits. It can add a touch of texture and visual interest to a bed, sofa, or accent chair, while also providing a comfortable and supportive surface for the head and neck. The shearling fabric is naturally resistant to water and stains, and can be easily cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, a black shearling pillow cover is a stylish and comfortable accessory that can enhance the comfort and style of any room in the home, while also providing a practical and functional benefit.", + "en-US": "This Luxe Pillow Cover is made of black shearling. Shearling is known for its softness, warmth, and insulating properties. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and a deep black color that can complement a variety of decor styles and color schemes. The shearling fabric has a plush and fluffy texture that is incredibly soft to the touch. It provides a cozy and warm surface for sleeping or lounging, making it a popular choice for colder months. The pillow cover is often used for its decorative and luxurious features, as well as for its practical and functional benefits. It can add a touch of texture and visual interest to a bed, sofa, or accent chair, while also providing a comfortable and supportive surface for the head and neck. The shearling fabric is naturally resistant to water and stains, and can be easily cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, a black shearling pillow cover is a stylish and comfortable accessory that can enhance the comfort and style of any room in the home, while also providing a practical and functional benefit.", + "fr": undefined, }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", + "key": "luxe-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4082, + "w": 6123, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Luxe_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + ], + "sku": "LPC-011", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4082, - "w": 6123, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Luxe Kissenbezug", + "en": undefined, + "en-GB": "Luxe Pillow Cover", + "en-US": "Luxe Pillow Cover", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Luxe_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "luxuriser-kissenbezug", + "en": undefined, + "en-GB": "luxe-pillow-cover", + "en-US": "luxe-pillow-cover", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LPC-011", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Luxe Kissenbezug", - "en": undefined, - "en-GB": "Luxe Pillow Cover", - "en-US": "Luxe Pillow Cover", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "luxuriser-kissenbezug", - "en": undefined, - "en-GB": "luxe-pillow-cover", - "en-US": "luxe-pillow-cover", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a luxePillowCover preset when built for graphql`, () => { const luxePillowCoverPresetGraphql = luxePillowCover().buildGraphql(); expect(luxePillowCoverPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "de-DE", - "value": "Dieser luxuriöse Kissenbezug ist aus schwarzem Lammfell gefertigt. Shearling ist bekannt für seine Weichheit, Wärme und isolierenden Eigenschaften. Der Kissenbezug ist so konzipiert, dass er über ein Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Es hat eine quadratische Form und eine tiefschwarze Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Shearling-Stoff hat eine plüschige und flauschige Textur, die sich unglaublich weich anfühlt. Es bietet eine gemütliche und warme Oberfläche zum Schlafen oder Faulenzen, was es zu einer beliebten Wahl für die kälteren Monate macht. Der Kissenbezug wird oft wegen seiner dekorativen und luxuriösen Eigenschaften sowie wegen seiner praktischen und funktionalen Vorteile verwendet. Es kann einem Bett, Sofa oder Akzentstuhl einen Hauch von Textur und visuellem Interesse verleihen und gleichzeitig eine bequeme und stützende Oberfläche für Kopf und Nacken bieten. Das Shearling-Gewebe ist von Natur aus wasser- und schmutzabweisend und lässt sich leicht mit einem feuchten Tuch oder Schwamm reinigen. Es sollte regelmäßig an der Luft getrocknet und aufgelockert werden, um seine Form und Textur zu erhalten. Insgesamt ist ein schwarzer Lammfell-Kissenbezug ein stilvolles und bequemes Accessoire, das den Komfort und Stil jedes Raums im Haus verbessern kann und gleichzeitig einen praktischen und funktionellen Nutzen bietet.", - }, - { - "locale": "en-GB", - "value": "This Luxe Pillow Cover is made of black shearling. Shearling is known for its softness, warmth, and insulating properties. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and a deep black color that can complement a variety of decor styles and color schemes. The shearling fabric has a plush and fluffy texture that is incredibly soft to the touch. It provides a cozy and warm surface for sleeping or lounging, making it a popular choice for colder months. The pillow cover is often used for its decorative and luxurious features, as well as for its practical and functional benefits. It can add a touch of texture and visual interest to a bed, sofa, or accent chair, while also providing a comfortable and supportive surface for the head and neck. The shearling fabric is naturally resistant to water and stains, and can be easily cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, a black shearling pillow cover is a stylish and comfortable accessory that can enhance the comfort and style of any room in the home, while also providing a practical and functional benefit.", - }, - { - "locale": "en-US", - "value": "This Luxe Pillow Cover is made of black shearling. Shearling is known for its softness, warmth, and insulating properties. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and a deep black color that can complement a variety of decor styles and color schemes. The shearling fabric has a plush and fluffy texture that is incredibly soft to the touch. It provides a cozy and warm surface for sleeping or lounging, making it a popular choice for colder months. The pillow cover is often used for its decorative and luxurious features, as well as for its practical and functional benefits. It can add a touch of texture and visual interest to a bed, sofa, or accent chair, while also providing a comfortable and supportive surface for the head and neck. The shearling fabric is naturally resistant to water and stains, and can be easily cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, a black shearling pillow cover is a stylish and comfortable accessory that can enhance the comfort and style of any room in the home, while also providing a practical and functional benefit.", - }, - ], - "key": "luxe-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4082, - "width": 6123, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Luxe_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedding", + "typeId": "category", }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "de-DE", + "value": "Dieser luxuriöse Kissenbezug ist aus schwarzem Lammfell gefertigt. Shearling ist bekannt für seine Weichheit, Wärme und isolierenden Eigenschaften. Der Kissenbezug ist so konzipiert, dass er über ein Kissen in Standardgröße passt, normalerweise etwa 18 Zoll im Quadrat. Es hat eine quadratische Form und eine tiefschwarze Farbe, die eine Vielzahl von Einrichtungsstilen und Farbschemata ergänzen kann. Der Shearling-Stoff hat eine plüschige und flauschige Textur, die sich unglaublich weich anfühlt. Es bietet eine gemütliche und warme Oberfläche zum Schlafen oder Faulenzen, was es zu einer beliebten Wahl für die kälteren Monate macht. Der Kissenbezug wird oft wegen seiner dekorativen und luxuriösen Eigenschaften sowie wegen seiner praktischen und funktionalen Vorteile verwendet. Es kann einem Bett, Sofa oder Akzentstuhl einen Hauch von Textur und visuellem Interesse verleihen und gleichzeitig eine bequeme und stützende Oberfläche für Kopf und Nacken bieten. Das Shearling-Gewebe ist von Natur aus wasser- und schmutzabweisend und lässt sich leicht mit einem feuchten Tuch oder Schwamm reinigen. Es sollte regelmäßig an der Luft getrocknet und aufgelockert werden, um seine Form und Textur zu erhalten. Insgesamt ist ein schwarzer Lammfell-Kissenbezug ein stilvolles und bequemes Accessoire, das den Komfort und Stil jedes Raums im Haus verbessern kann und gleichzeitig einen praktischen und funktionellen Nutzen bietet.", + }, + { + "locale": "en-GB", + "value": "This Luxe Pillow Cover is made of black shearling. Shearling is known for its softness, warmth, and insulating properties. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and a deep black color that can complement a variety of decor styles and color schemes. The shearling fabric has a plush and fluffy texture that is incredibly soft to the touch. It provides a cozy and warm surface for sleeping or lounging, making it a popular choice for colder months. The pillow cover is often used for its decorative and luxurious features, as well as for its practical and functional benefits. It can add a touch of texture and visual interest to a bed, sofa, or accent chair, while also providing a comfortable and supportive surface for the head and neck. The shearling fabric is naturally resistant to water and stains, and can be easily cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, a black shearling pillow cover is a stylish and comfortable accessory that can enhance the comfort and style of any room in the home, while also providing a practical and functional benefit.", + }, + { + "locale": "en-US", + "value": "This Luxe Pillow Cover is made of black shearling. Shearling is known for its softness, warmth, and insulating properties. The pillow cover is designed to fit over a standard size pillow, usually around 18 inches square. It features a square shape and a deep black color that can complement a variety of decor styles and color schemes. The shearling fabric has a plush and fluffy texture that is incredibly soft to the touch. It provides a cozy and warm surface for sleeping or lounging, making it a popular choice for colder months. The pillow cover is often used for its decorative and luxurious features, as well as for its practical and functional benefits. It can add a touch of texture and visual interest to a bed, sofa, or accent chair, while also providing a comfortable and supportive surface for the head and neck. The shearling fabric is naturally resistant to water and stains, and can be easily cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, a black shearling pillow cover is a stylish and comfortable accessory that can enhance the comfort and style of any room in the home, while also providing a practical and functional benefit.", + }, + ], + "key": "luxe-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4082, + "width": 6123, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Luxe_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LPC-011", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Luxe Pillow Cover", }, + { + "locale": "en-GB", + "value": "Luxe Pillow Cover", + }, + { + "locale": "de-DE", + "value": "Luxe Kissenbezug", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "luxe-pillow-cover", + }, + { + "locale": "en-GB", + "value": "luxe-pillow-cover", + }, + { + "locale": "de-DE", + "value": "luxuriser-kissenbezug", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LPC-011", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Luxe Pillow Cover", - }, - { - "locale": "en-GB", - "value": "Luxe Pillow Cover", - }, - { - "locale": "de-DE", - "value": "Luxe Kissenbezug", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "luxe-pillow-cover", - }, - { - "locale": "en-GB", - "value": "luxe-pillow-cover", - }, - { - "locale": "de-DE", - "value": "luxuriser-kissenbezug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/marquis-tray.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/marquis-tray.spec.ts index f821e2612..e12c2f8c4 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/marquis-tray.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/marquis-tray.spec.ts @@ -5,329 +5,329 @@ describe(`with marquisTray preset`, () => { it(`should return a marquisTray preset`, () => { const marquisTrayPreset = marquisTray().build(); expect(marquisTrayPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "cheese-trays", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses Serviertablett aus Holz ist ideal zum Servieren einer Vielzahl von Speisen und Getränken, einschließlich Vorspeisen, Hauptgerichten, Cocktails und Kaffee. Es kann sowohl in ungezwungener als auch in formeller Umgebung verwendet werden und ist eine beliebte Wahl für Mahlzeiten im Freien, Picknicks und Grillabende. Serviertabletts aus Holz sind langlebig und leicht zu reinigen, was sie zu einer praktischen Wahl für den täglichen Gebrauch macht. Sie können mit einem feuchten Tuch abgewischt oder mit Wasser und Seife gewaschen werden. Insgesamt ist ein Serviertablett aus Holz eine funktionale und stilvolle Wahl zum Servieren von Speisen und Getränken. Sein natürliches Material und seine einzigartige Textur verleihen jedem Essbereich Wärme und Charakter, während seine Vielseitigkeit und Praktikabilität es zu einem Grundnahrungsmittel in vielen Küchen und Esszimmern machen.", - "en": undefined, - "en-GB": "This wooden serving tray is ideal for serving a variety of foods and drinks, including appetizers, entrees, cocktails, and coffee. It can be used in both casual and formal settings, and are a popular choice for outdoor dining, picnics, and barbecues. Wooden serving trays are durable and easy to clean, making them a practical choice for everyday use. They can be wiped clean with a damp cloth or washed with soap and water. Overall, a wooden serving tray is a functional and stylish choice for serving food and drinks. Its natural material and unique texture add warmth and character to any dining setting, while its versatility and practicality make it a staple in many kitchens and dining rooms.", - "en-US": "This wooden serving tray is ideal for serving a variety of foods and drinks, including appetizers, entrees, cocktails, and coffee. It can be used in both casual and formal settings, and are a popular choice for outdoor dining, picnics, and barbecues. Wooden serving trays are durable and easy to clean, making them a practical choice for everyday use. They can be wiped clean with a damp cloth or washed with soap and water. Overall, a wooden serving tray is a functional and stylish choice for serving food and drinks. Its natural material and unique texture add warmth and character to any dining setting, while its versatility and practicality make it a staple in many kitchens and dining rooms.", - "fr": undefined, - }, - "key": "marquis-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Tablett", - "en-GB": "- Includes 1 tray", - "en-US": "- Includes 1 tray", + "categories": [ + { + "key": "plates", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "cheese-trays", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses Serviertablett aus Holz ist ideal zum Servieren einer Vielzahl von Speisen und Getränken, einschließlich Vorspeisen, Hauptgerichten, Cocktails und Kaffee. Es kann sowohl in ungezwungener als auch in formeller Umgebung verwendet werden und ist eine beliebte Wahl für Mahlzeiten im Freien, Picknicks und Grillabende. Serviertabletts aus Holz sind langlebig und leicht zu reinigen, was sie zu einer praktischen Wahl für den täglichen Gebrauch macht. Sie können mit einem feuchten Tuch abgewischt oder mit Wasser und Seife gewaschen werden. Insgesamt ist ein Serviertablett aus Holz eine funktionale und stilvolle Wahl zum Servieren von Speisen und Getränken. Sein natürliches Material und seine einzigartige Textur verleihen jedem Essbereich Wärme und Charakter, während seine Vielseitigkeit und Praktikabilität es zu einem Grundnahrungsmittel in vielen Küchen und Esszimmern machen.", + "en": undefined, + "en-GB": "This wooden serving tray is ideal for serving a variety of foods and drinks, including appetizers, entrees, cocktails, and coffee. It can be used in both casual and formal settings, and are a popular choice for outdoor dining, picnics, and barbecues. Wooden serving trays are durable and easy to clean, making them a practical choice for everyday use. They can be wiped clean with a damp cloth or washed with soap and water. Overall, a wooden serving tray is a functional and stylish choice for serving food and drinks. Its natural material and unique texture add warmth and character to any dining setting, while its versatility and practicality make it a staple in many kitchens and dining rooms.", + "en-US": "This wooden serving tray is ideal for serving a variety of foods and drinks, including appetizers, entrees, cocktails, and coffee. It can be used in both casual and formal settings, and are a popular choice for outdoor dining, picnics, and barbecues. Wooden serving trays are durable and easy to clean, making them a practical choice for everyday use. They can be wiped clean with a damp cloth or washed with soap and water. Overall, a wooden serving tray is a functional and stylish choice for serving food and drinks. Its natural material and unique texture add warmth and character to any dining setting, while its versatility and practicality make it a staple in many kitchens and dining rooms.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Goldene Rute:#DAA520", - "en-GB": "Golden Rod:#DAA520", - "en-US": "Golden Rod:#DAA520", + "key": "marquis-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Tablett", + "en-GB": "- Includes 1 tray", + "en-US": "- Includes 1 tray", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Goldene Rute:#DAA520", + "en-GB": "Golden Rod:#DAA520", + "en-US": "Golden Rod:#DAA520", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4784, + "w": 5056, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Marquis_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "MWT-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4784, - "w": 5056, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Marquis Tablett", + "en": undefined, + "en-GB": "Marquis Tray", + "en-US": "Marquis Tray", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Marquis_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "marquis-tablett", + "en": undefined, + "en-GB": "marquis-tray", + "en-US": "marquis-tray", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MWT-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Marquis Tablett", - "en": undefined, - "en-GB": "Marquis Tray", - "en-US": "Marquis Tray", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "marquis-tablett", - "en": undefined, - "en-GB": "marquis-tray", - "en-US": "marquis-tray", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a marquisTray preset when built for graphql`, () => { const marquisTrayPresetGraphql = marquisTray().buildGraphql(); expect(marquisTrayPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "cheese-trays", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This wooden serving tray is ideal for serving a variety of foods and drinks, including appetizers, entrees, cocktails, and coffee. It can be used in both casual and formal settings, and are a popular choice for outdoor dining, picnics, and barbecues. Wooden serving trays are durable and easy to clean, making them a practical choice for everyday use. They can be wiped clean with a damp cloth or washed with soap and water. Overall, a wooden serving tray is a functional and stylish choice for serving food and drinks. Its natural material and unique texture add warmth and character to any dining setting, while its versatility and practicality make it a staple in many kitchens and dining rooms.", - }, - { - "locale": "en-US", - "value": "This wooden serving tray is ideal for serving a variety of foods and drinks, including appetizers, entrees, cocktails, and coffee. It can be used in both casual and formal settings, and are a popular choice for outdoor dining, picnics, and barbecues. Wooden serving trays are durable and easy to clean, making them a practical choice for everyday use. They can be wiped clean with a damp cloth or washed with soap and water. Overall, a wooden serving tray is a functional and stylish choice for serving food and drinks. Its natural material and unique texture add warmth and character to any dining setting, while its versatility and practicality make it a staple in many kitchens and dining rooms.", - }, - { - "locale": "de-DE", - "value": "Dieses Serviertablett aus Holz ist ideal zum Servieren einer Vielzahl von Speisen und Getränken, einschließlich Vorspeisen, Hauptgerichten, Cocktails und Kaffee. Es kann sowohl in ungezwungener als auch in formeller Umgebung verwendet werden und ist eine beliebte Wahl für Mahlzeiten im Freien, Picknicks und Grillabende. Serviertabletts aus Holz sind langlebig und leicht zu reinigen, was sie zu einer praktischen Wahl für den täglichen Gebrauch macht. Sie können mit einem feuchten Tuch abgewischt oder mit Wasser und Seife gewaschen werden. Insgesamt ist ein Serviertablett aus Holz eine funktionale und stilvolle Wahl zum Servieren von Speisen und Getränken. Sein natürliches Material und seine einzigartige Textur verleihen jedem Essbereich Wärme und Charakter, während seine Vielseitigkeit und Praktikabilität es zu einem Grundnahrungsmittel in vielen Küchen und Esszimmern machen.", - }, - ], - "key": "marquis-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 tray","de-DE":"- Enthält 1 Tablett","en-US":"- Includes 1 tray"}", - }, - { - "name": "color", - "value": "{"en-GB":"Golden Rod:#DAA520","de-DE":"Goldene Rute:#DAA520","en-US":"Golden Rod:#DAA520"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4784, - "width": 5056, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Marquis_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "EUR", + "categories": [ + { + "key": "plates", + "typeId": "category", }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "cheese-trays", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This wooden serving tray is ideal for serving a variety of foods and drinks, including appetizers, entrees, cocktails, and coffee. It can be used in both casual and formal settings, and are a popular choice for outdoor dining, picnics, and barbecues. Wooden serving trays are durable and easy to clean, making them a practical choice for everyday use. They can be wiped clean with a damp cloth or washed with soap and water. Overall, a wooden serving tray is a functional and stylish choice for serving food and drinks. Its natural material and unique texture add warmth and character to any dining setting, while its versatility and practicality make it a staple in many kitchens and dining rooms.", + }, + { + "locale": "en-US", + "value": "This wooden serving tray is ideal for serving a variety of foods and drinks, including appetizers, entrees, cocktails, and coffee. It can be used in both casual and formal settings, and are a popular choice for outdoor dining, picnics, and barbecues. Wooden serving trays are durable and easy to clean, making them a practical choice for everyday use. They can be wiped clean with a damp cloth or washed with soap and water. Overall, a wooden serving tray is a functional and stylish choice for serving food and drinks. Its natural material and unique texture add warmth and character to any dining setting, while its versatility and practicality make it a staple in many kitchens and dining rooms.", + }, + { + "locale": "de-DE", + "value": "Dieses Serviertablett aus Holz ist ideal zum Servieren einer Vielzahl von Speisen und Getränken, einschließlich Vorspeisen, Hauptgerichten, Cocktails und Kaffee. Es kann sowohl in ungezwungener als auch in formeller Umgebung verwendet werden und ist eine beliebte Wahl für Mahlzeiten im Freien, Picknicks und Grillabende. Serviertabletts aus Holz sind langlebig und leicht zu reinigen, was sie zu einer praktischen Wahl für den täglichen Gebrauch macht. Sie können mit einem feuchten Tuch abgewischt oder mit Wasser und Seife gewaschen werden. Insgesamt ist ein Serviertablett aus Holz eine funktionale und stilvolle Wahl zum Servieren von Speisen und Getränken. Sein natürliches Material und seine einzigartige Textur verleihen jedem Essbereich Wärme und Charakter, während seine Vielseitigkeit und Praktikabilität es zu einem Grundnahrungsmittel in vielen Küchen und Esszimmern machen.", + }, + ], + "key": "marquis-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 tray","de-DE":"- Enthält 1 Tablett","en-US":"- Includes 1 tray"}", + }, + { + "name": "color", + "value": "{"en-GB":"Golden Rod:#DAA520","de-DE":"Goldene Rute:#DAA520","en-US":"Golden Rod:#DAA520"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4784, + "width": 5056, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Marquis_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MWT-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Marquis Tray", + }, + { + "locale": "en-GB", + "value": "Marquis Tray", + }, + { + "locale": "de-DE", + "value": "Marquis Tablett", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "marquis-tray", + }, + { + "locale": "en-GB", + "value": "marquis-tray", + }, + { + "locale": "de-DE", + "value": "marquis-tablett", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MWT-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Marquis Tray", - }, - { - "locale": "en-GB", - "value": "Marquis Tray", - }, - { - "locale": "de-DE", - "value": "Marquis Tablett", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "marquis-tray", - }, - { - "locale": "en-GB", - "value": "marquis-tray", - }, - { - "locale": "de-DE", - "value": "marquis-tablett", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover.spec.ts index 7eee84bf0..dbea6068d 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/maya-pillow-cover.spec.ts @@ -5,463 +5,463 @@ describe(`with mayaPillowCover preset`, () => { it(`should return a mayaPillowCover preset`, () => { const mayaPillowCoverPreset = mayaPillowCover().build(); expect(mayaPillowCoverPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein brauner Mikrofaser-Kissenbezug ist ein weicher und bequemer Kissenbezug aus synthetischen Fasern. Das Mikrofasermaterial fühlt sich weich und seidig an und bietet ein komfortables und gemütliches Schlaferlebnis. Die braune Farbe des Kissenbezugs ist typisch warm und einladend und schafft eine gemütliche und entspannende Atmosphäre in einem Schlafzimmer. Es kann auch eine vielseitige Farbe sein, die gut zu einer Vielzahl anderer Farben und Dekorstile passt. Kissenbezüge aus Mikrofaser sind bekannt für ihre Strapazierfähigkeit und Pflegeleichtigkeit. Sie sind in der Regel knitter- und schrumpffrei und somit ideal für vielbeschäftigte Haushalte. Sie sind auch hypoallergen, was sie zu einer großartigen Option für Menschen mit Allergien oder Empfindlichkeiten macht. Insgesamt ist ein brauner Kissenbezug aus Mikrofaser eine praktische und bequeme Wahl für jedes Schlafzimmer. Es ist weich, strapazierfähig und pflegeleicht und bietet eine gemütliche und einladende Schlafumgebung für einen erholsamen Schlaf.", - "en": undefined, - "en-GB": "A microfiber brown pillowcase is a soft and comfortable pillow cover made from synthetic fibers. The microfiber material is designed to be soft and silky to the touch, providing a comfortable and cozy sleeping experience. The brown color of the pillowcase is typically warm and inviting, creating a cozy and relaxing atmosphere in a bedroom. It can also be a versatile color that matches well with a variety of other colors and decor styles. Microfiber pillowcases are known for their durability and easy care. They are typically resistant to wrinkles and shrinkage, making them ideal for busy households. They are also hypoallergenic, making them a great option for people with allergies or sensitivities. Overall, a microfiber brown pillowcase is a practical and comfortable choice for any bedroom. It is soft, durable, and easy to care for, providing a cozy and inviting sleeping environment for a restful night's sleep.", - "en-US": "A microfiber brown pillowcase is a soft and comfortable pillow cover made from synthetic fibers. The microfiber material is designed to be soft and silky to the touch, providing a comfortable and cozy sleeping experience. The brown color of the pillowcase is typically warm and inviting, creating a cozy and relaxing atmosphere in a bedroom. It can also be a versatile color that matches well with a variety of other colors and decor styles. Microfiber pillowcases are known for their durability and easy care. They are typically resistant to wrinkles and shrinkage, making them ideal for busy households. They are also hypoallergenic, making them a great option for people with allergies or sensitivities. Overall, a microfiber brown pillowcase is a practical and comfortable choice for any bedroom. It is soft, durable, and easy to care for, providing a cozy and inviting sleeping environment for a restful night's sleep.", - "fr": undefined, - }, - "key": "maya-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Does not include pillow", - "en-US": "- Machine washable -- Does not include pillow", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Pflaume:#DDA0DD", - "en-GB": "Plum:#DDA0DD", - "en-US": "Plum:#DDA0DD", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "USD", - }, - }, - ], - "sku": "MPC-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Maya Kissenbezug", - "en": undefined, - "en-GB": "Maya Pillow Cover", - "en-US": "Maya Pillow Cover", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "maya-kissenbezug", - "en": undefined, - "en-GB": "maya-pillow-cover", - "en-US": "maya-pillow-cover", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Does not include pillow", - "en-US": "- Machine washable -- Does not include pillow", + "categories": [ + { + "key": "bedding", + "typeId": "category", }, - }, - { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, + { + "key": "home-decor", + "typeId": "category", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-2.1.jpeg", + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein brauner Mikrofaser-Kissenbezug ist ein weicher und bequemer Kissenbezug aus synthetischen Fasern. Das Mikrofasermaterial fühlt sich weich und seidig an und bietet ein komfortables und gemütliches Schlaferlebnis. Die braune Farbe des Kissenbezugs ist typisch warm und einladend und schafft eine gemütliche und entspannende Atmosphäre in einem Schlafzimmer. Es kann auch eine vielseitige Farbe sein, die gut zu einer Vielzahl anderer Farben und Dekorstile passt. Kissenbezüge aus Mikrofaser sind bekannt für ihre Strapazierfähigkeit und Pflegeleichtigkeit. Sie sind in der Regel knitter- und schrumpffrei und somit ideal für vielbeschäftigte Haushalte. Sie sind auch hypoallergen, was sie zu einer großartigen Option für Menschen mit Allergien oder Empfindlichkeiten macht. Insgesamt ist ein brauner Kissenbezug aus Mikrofaser eine praktische und bequeme Wahl für jedes Schlafzimmer. Es ist weich, strapazierfähig und pflegeleicht und bietet eine gemütliche und einladende Schlafumgebung für einen erholsamen Schlaf.", + "en": undefined, + "en-GB": "A microfiber brown pillowcase is a soft and comfortable pillow cover made from synthetic fibers. The microfiber material is designed to be soft and silky to the touch, providing a comfortable and cozy sleeping experience. The brown color of the pillowcase is typically warm and inviting, creating a cozy and relaxing atmosphere in a bedroom. It can also be a versatile color that matches well with a variety of other colors and decor styles. Microfiber pillowcases are known for their durability and easy care. They are typically resistant to wrinkles and shrinkage, making them ideal for busy households. They are also hypoallergenic, making them a great option for people with allergies or sensitivities. Overall, a microfiber brown pillowcase is a practical and comfortable choice for any bedroom. It is soft, durable, and easy to care for, providing a cozy and inviting sleeping environment for a restful night's sleep.", + "en-US": "A microfiber brown pillowcase is a soft and comfortable pillow cover made from synthetic fibers. The microfiber material is designed to be soft and silky to the touch, providing a comfortable and cozy sleeping experience. The brown color of the pillowcase is typically warm and inviting, creating a cozy and relaxing atmosphere in a bedroom. It can also be a versatile color that matches well with a variety of other colors and decor styles. Microfiber pillowcases are known for their durability and easy care. They are typically resistant to wrinkles and shrinkage, making them ideal for busy households. They are also hypoallergenic, making them a great option for people with allergies or sensitivities. Overall, a microfiber brown pillowcase is a practical and comfortable choice for any bedroom. It is soft, durable, and easy to care for, providing a cozy and inviting sleeping environment for a restful night's sleep.", + "fr": undefined, }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + "key": "maya-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Does not include pillow", + "en-US": "- Machine washable + - Does not include pillow", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Pflaume:#DDA0DD", + "en-GB": "Plum:#DDA0DD", + "en-US": "Plum:#DDA0DD", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "EUR", - }, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + ], + "sku": "MPC-02", }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "GBP", - }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Maya Kissenbezug", + "en": undefined, + "en-GB": "Maya Pillow Cover", + "en-US": "Maya Pillow Cover", + "fr": undefined, }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "USD", - }, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - ], - "sku": "MPC-07", - }, - ], -} -`); + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "maya-kissenbezug", + "en": undefined, + "en-GB": "maya-pillow-cover", + "en-US": "maya-pillow-cover", + "fr": undefined, + }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Does not include pillow", + "en-US": "- Machine washable + - Does not include pillow", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + ], + "sku": "MPC-07", + }, + ], + } + `); }); it(`should return a mayaPillowCover preset when built for graphql`, () => { const mayaPillowCoverPresetGraphql = mayaPillowCover().buildGraphql(); expect(mayaPillowCoverPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A microfiber brown pillowcase is a soft and comfortable pillow cover made from synthetic fibers. The microfiber material is designed to be soft and silky to the touch, providing a comfortable and cozy sleeping experience. The brown color of the pillowcase is typically warm and inviting, creating a cozy and relaxing atmosphere in a bedroom. It can also be a versatile color that matches well with a variety of other colors and decor styles. Microfiber pillowcases are known for their durability and easy care. They are typically resistant to wrinkles and shrinkage, making them ideal for busy households. They are also hypoallergenic, making them a great option for people with allergies or sensitivities. Overall, a microfiber brown pillowcase is a practical and comfortable choice for any bedroom. It is soft, durable, and easy to care for, providing a cozy and inviting sleeping environment for a restful night's sleep.", - }, - { - "locale": "en-US", - "value": "A microfiber brown pillowcase is a soft and comfortable pillow cover made from synthetic fibers. The microfiber material is designed to be soft and silky to the touch, providing a comfortable and cozy sleeping experience. The brown color of the pillowcase is typically warm and inviting, creating a cozy and relaxing atmosphere in a bedroom. It can also be a versatile color that matches well with a variety of other colors and decor styles. Microfiber pillowcases are known for their durability and easy care. They are typically resistant to wrinkles and shrinkage, making them ideal for busy households. They are also hypoallergenic, making them a great option for people with allergies or sensitivities. Overall, a microfiber brown pillowcase is a practical and comfortable choice for any bedroom. It is soft, durable, and easy to care for, providing a cozy and inviting sleeping environment for a restful night's sleep.", - }, - { - "locale": "de-DE", - "value": "Ein brauner Mikrofaser-Kissenbezug ist ein weicher und bequemer Kissenbezug aus synthetischen Fasern. Das Mikrofasermaterial fühlt sich weich und seidig an und bietet ein komfortables und gemütliches Schlaferlebnis. Die braune Farbe des Kissenbezugs ist typisch warm und einladend und schafft eine gemütliche und entspannende Atmosphäre in einem Schlafzimmer. Es kann auch eine vielseitige Farbe sein, die gut zu einer Vielzahl anderer Farben und Dekorstile passt. Kissenbezüge aus Mikrofaser sind bekannt für ihre Strapazierfähigkeit und Pflegeleichtigkeit. Sie sind in der Regel knitter- und schrumpffrei und somit ideal für vielbeschäftigte Haushalte. Sie sind auch hypoallergen, was sie zu einer großartigen Option für Menschen mit Allergien oder Empfindlichkeiten macht. Insgesamt ist ein brauner Kissenbezug aus Mikrofaser eine praktische und bequeme Wahl für jedes Schlafzimmer. Es ist weich, strapazierfähig und pflegeleicht und bietet eine gemütliche und einladende Schlafumgebung für einen erholsamen Schlaf.", - }, - ], - "key": "maya-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Does not include pillow"}", - }, - { - "name": "color", - "value": "{"en-GB":"Plum:#DDA0DD","de-DE":"Pflaume:#DDA0DD","en-US":"Plum:#DDA0DD"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedding", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "GBP", + { + "key": "home-decor", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "USD", + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A microfiber brown pillowcase is a soft and comfortable pillow cover made from synthetic fibers. The microfiber material is designed to be soft and silky to the touch, providing a comfortable and cozy sleeping experience. The brown color of the pillowcase is typically warm and inviting, creating a cozy and relaxing atmosphere in a bedroom. It can also be a versatile color that matches well with a variety of other colors and decor styles. Microfiber pillowcases are known for their durability and easy care. They are typically resistant to wrinkles and shrinkage, making them ideal for busy households. They are also hypoallergenic, making them a great option for people with allergies or sensitivities. Overall, a microfiber brown pillowcase is a practical and comfortable choice for any bedroom. It is soft, durable, and easy to care for, providing a cozy and inviting sleeping environment for a restful night's sleep.", }, - }, - }, - ], - "sku": "MPC-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Maya Pillow Cover", - }, - { - "locale": "en-GB", - "value": "Maya Pillow Cover", - }, - { - "locale": "de-DE", - "value": "Maya Kissenbezug", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "maya-pillow-cover", - }, - { - "locale": "en-GB", - "value": "maya-pillow-cover", - }, - { - "locale": "de-DE", - "value": "maya-kissenbezug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Does not include pillow"}", - }, - { - "name": "color", - "value": "{"en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, + { + "locale": "en-US", + "value": "A microfiber brown pillowcase is a soft and comfortable pillow cover made from synthetic fibers. The microfiber material is designed to be soft and silky to the touch, providing a comfortable and cozy sleeping experience. The brown color of the pillowcase is typically warm and inviting, creating a cozy and relaxing atmosphere in a bedroom. It can also be a versatile color that matches well with a variety of other colors and decor styles. Microfiber pillowcases are known for their durability and easy care. They are typically resistant to wrinkles and shrinkage, making them ideal for busy households. They are also hypoallergenic, making them a great option for people with allergies or sensitivities. Overall, a microfiber brown pillowcase is a practical and comfortable choice for any bedroom. It is soft, durable, and easy to care for, providing a cozy and inviting sleeping environment for a restful night's sleep.", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "EUR", - }, + { + "locale": "de-DE", + "value": "Ein brauner Mikrofaser-Kissenbezug ist ein weicher und bequemer Kissenbezug aus synthetischen Fasern. Das Mikrofasermaterial fühlt sich weich und seidig an und bietet ein komfortables und gemütliches Schlaferlebnis. Die braune Farbe des Kissenbezugs ist typisch warm und einladend und schafft eine gemütliche und entspannende Atmosphäre in einem Schlafzimmer. Es kann auch eine vielseitige Farbe sein, die gut zu einer Vielzahl anderer Farben und Dekorstile passt. Kissenbezüge aus Mikrofaser sind bekannt für ihre Strapazierfähigkeit und Pflegeleichtigkeit. Sie sind in der Regel knitter- und schrumpffrei und somit ideal für vielbeschäftigte Haushalte. Sie sind auch hypoallergen, was sie zu einer großartigen Option für Menschen mit Allergien oder Empfindlichkeiten macht. Insgesamt ist ein brauner Kissenbezug aus Mikrofaser eine praktische und bequeme Wahl für jedes Schlafzimmer. Es ist weich, strapazierfähig und pflegeleicht und bietet eine gemütliche und einladende Schlafumgebung für einen erholsamen Schlaf.", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + ], + "key": "maya-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Does not include pillow"}", + }, + { + "name": "color", + "value": "{"en-GB":"Plum:#DDA0DD","de-DE":"Pflaume:#DDA0DD","en-US":"Plum:#DDA0DD"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "GBP", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MPC-02", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Maya Pillow Cover", }, + { + "locale": "en-GB", + "value": "Maya Pillow Cover", + }, + { + "locale": "de-DE", + "value": "Maya Kissenbezug", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "USD", - }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "maya-pillow-cover", }, + { + "locale": "en-GB", + "value": "maya-pillow-cover", + }, + { + "locale": "de-DE", + "value": "maya-kissenbezug", + }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - ], - "sku": "MPC-07", - }, - ], -} -`); + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Does not include pillow","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Does not include pillow"}", + }, + { + "name": "color", + "value": "{"en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Maya_Pillow_Cover-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MPC-07", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/meadow-rug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/meadow-rug.spec.ts index b41ffa42d..12df6d9fe 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/meadow-rug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/meadow-rug.spec.ts @@ -5,622 +5,622 @@ describe(`with meadowRug preset`, () => { it(`should return a meadowRug preset`, () => { const meadowRugPreset = meadowRug().build(); expect(meadowRugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Plüschteppich ist eine Art von Teppich, der weich und bequem unter den Füßen liegt. Plüschteppiche zeichnen sich durch ihren dichten Flor aus. Die Fasern sind dicht gepackt und verleihen dem Teppich ein üppiges und luxuriöses Gefühl. Aufgrund ihrer Weichheit und ihres Komforts werden Plüschteppiche häufig in Schlafzimmern, Wohnzimmern und anderen Bereichen verwendet, in denen die Menschen viel Zeit sitzend oder faulenzend auf dem Boden verbringen. Sie sind auch eine beliebte Wahl für Kindergärten und Kinderzimmer, da sie einen sicheren und bequemen Spielbereich für Kinder bieten. Insgesamt ist ein Plüschteppich eine gemütliche und einladende Ergänzung für jedes Zuhause. Seine weiche Textur und sein luxuriöses Gefühl machen ihn zu einer beliebten Wahl für alle, die eine warme und einladende Atmosphäre in ihrem Wohnraum schaffen wollen.", - "en": undefined, - "en-GB": "A plush area rug is a type of rug that is designed to be soft and comfortable underfoot. Plush rugs are characterized by their thick pile. The fibers are densely packed together, giving the rug a lush and luxurious feel. Because of their softness and comfort, plush area rugs are often used in bedrooms, living rooms, and other areas where people spend a lot of time sitting or lounging on the floor. They are also a popular choice for nurseries and children's rooms, as they provide a safe and comfortable play area for kids. Overall, a plush area rug is a cozy and inviting addition to any home. Its soft texture and luxurious feel make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", - "en-US": "A plush area rug is a type of rug that is designed to be soft and comfortable underfoot. Plush rugs are characterized by their thick pile. The fibers are densely packed together, giving the rug a lush and luxurious feel. Because of their softness and comfort, plush area rugs are often used in bedrooms, living rooms, and other areas where people spend a lot of time sitting or lounging on the floor. They are also a popular choice for nurseries and children's rooms, as they provide a safe and comfortable play area for kids. Overall, a plush area rug is a cozy and inviting addition to any home. Its soft texture and luxurious feel make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", - "fr": undefined, - }, - "key": "meadow-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- 3 Fuß x 5 Fuß", - "en-GB": "- 3ft x 5ft", - "en-US": "- 3ft x 5ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Grau:#808080", - "en-GB": "Grey:#808080", - "en-US": "Gray:#808080", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MR-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Wiesenteppich", - "en": undefined, - "en-GB": "Meadow Rug", - "en-US": "Meadow Rug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "meadow-teppich", - "en": undefined, - "en-GB": "meadow-rug", - "en-US": "meadow-rug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 3 Fuß x 5 Fuß", - "en-GB": "- 3ft x 5ft", - "en-US": "- 3ft x 5ft", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "MR-08", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- 3 Fuß x 5 Fuß", - "en-GB": "- 3ft x 5ft", - "en-US": "- 3ft x 5ft", + "categories": [ + { + "key": "room-decor", + "typeId": "category", }, - }, - { - "name": "color", - "value": { - "de-DE": "Himmel blau:#87CEEB", - "en-GB": "Sky Blue:#87CEEB", - "en-US": "Sky Blue:#87CEEB", + { + "key": "rugs", + "typeId": "category", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", + { + "key": "home-decor", + "typeId": "category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Plüschteppich ist eine Art von Teppich, der weich und bequem unter den Füßen liegt. Plüschteppiche zeichnen sich durch ihren dichten Flor aus. Die Fasern sind dicht gepackt und verleihen dem Teppich ein üppiges und luxuriöses Gefühl. Aufgrund ihrer Weichheit und ihres Komforts werden Plüschteppiche häufig in Schlafzimmern, Wohnzimmern und anderen Bereichen verwendet, in denen die Menschen viel Zeit sitzend oder faulenzend auf dem Boden verbringen. Sie sind auch eine beliebte Wahl für Kindergärten und Kinderzimmer, da sie einen sicheren und bequemen Spielbereich für Kinder bieten. Insgesamt ist ein Plüschteppich eine gemütliche und einladende Ergänzung für jedes Zuhause. Seine weiche Textur und sein luxuriöses Gefühl machen ihn zu einer beliebten Wahl für alle, die eine warme und einladende Atmosphäre in ihrem Wohnraum schaffen wollen.", + "en": undefined, + "en-GB": "A plush area rug is a type of rug that is designed to be soft and comfortable underfoot. Plush rugs are characterized by their thick pile. The fibers are densely packed together, giving the rug a lush and luxurious feel. Because of their softness and comfort, plush area rugs are often used in bedrooms, living rooms, and other areas where people spend a lot of time sitting or lounging on the floor. They are also a popular choice for nurseries and children's rooms, as they provide a safe and comfortable play area for kids. Overall, a plush area rug is a cozy and inviting addition to any home. Its soft texture and luxurious feel make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", + "en-US": "A plush area rug is a type of rug that is designed to be soft and comfortable underfoot. Plush rugs are characterized by their thick pile. The fibers are densely packed together, giving the rug a lush and luxurious feel. Because of their softness and comfort, plush area rugs are often used in bedrooms, living rooms, and other areas where people spend a lot of time sitting or lounging on the floor. They are also a popular choice for nurseries and children's rooms, as they provide a safe and comfortable play area for kids. Overall, a plush area rug is a cozy and inviting addition to any home. Its soft texture and luxurious feel make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", + "fr": undefined, + }, + "key": "meadow-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 3 Fuß x 5 Fuß", + "en-GB": "- 3ft x 5ft", + "en-US": "- 3ft x 5ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grau:#808080", + "en-GB": "Grey:#808080", + "en-US": "Gray:#808080", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MR-03", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Wiesenteppich", + "en": undefined, + "en-GB": "Meadow Rug", + "en-US": "Meadow Rug", + "fr": undefined, + }, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "meadow-teppich", + "en": undefined, + "en-GB": "meadow-rug", + "en-US": "meadow-rug", + "fr": undefined, + }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 3 Fuß x 5 Fuß", + "en-GB": "- 3ft x 5ft", + "en-US": "- 3ft x 5ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MR-08", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 3 Fuß x 5 Fuß", + "en-GB": "- 3ft x 5ft", + "en-US": "- 3ft x 5ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Himmel blau:#87CEEB", + "en-GB": "Sky Blue:#87CEEB", + "en-US": "Sky Blue:#87CEEB", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MR-05", }, - }, - ], - "sku": "MR-05", - }, - ], -} -`); + ], + } + `); }); it(`should return a meadowRug preset when built for graphql`, () => { const meadowRugPresetGraphql = meadowRug().buildGraphql(); expect(meadowRugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A plush area rug is a type of rug that is designed to be soft and comfortable underfoot. Plush rugs are characterized by their thick pile. The fibers are densely packed together, giving the rug a lush and luxurious feel. Because of their softness and comfort, plush area rugs are often used in bedrooms, living rooms, and other areas where people spend a lot of time sitting or lounging on the floor. They are also a popular choice for nurseries and children's rooms, as they provide a safe and comfortable play area for kids. Overall, a plush area rug is a cozy and inviting addition to any home. Its soft texture and luxurious feel make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", - }, - { - "locale": "de-DE", - "value": "Ein Plüschteppich ist eine Art von Teppich, der weich und bequem unter den Füßen liegt. Plüschteppiche zeichnen sich durch ihren dichten Flor aus. Die Fasern sind dicht gepackt und verleihen dem Teppich ein üppiges und luxuriöses Gefühl. Aufgrund ihrer Weichheit und ihres Komforts werden Plüschteppiche häufig in Schlafzimmern, Wohnzimmern und anderen Bereichen verwendet, in denen die Menschen viel Zeit sitzend oder faulenzend auf dem Boden verbringen. Sie sind auch eine beliebte Wahl für Kindergärten und Kinderzimmer, da sie einen sicheren und bequemen Spielbereich für Kinder bieten. Insgesamt ist ein Plüschteppich eine gemütliche und einladende Ergänzung für jedes Zuhause. Seine weiche Textur und sein luxuriöses Gefühl machen ihn zu einer beliebten Wahl für alle, die eine warme und einladende Atmosphäre in ihrem Wohnraum schaffen wollen.", - }, - { - "locale": "en-US", - "value": "A plush area rug is a type of rug that is designed to be soft and comfortable underfoot. Plush rugs are characterized by their thick pile. The fibers are densely packed together, giving the rug a lush and luxurious feel. Because of their softness and comfort, plush area rugs are often used in bedrooms, living rooms, and other areas where people spend a lot of time sitting or lounging on the floor. They are also a popular choice for nurseries and children's rooms, as they provide a safe and comfortable play area for kids. Overall, a plush area rug is a cozy and inviting addition to any home. Its soft texture and luxurious feel make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", - }, - ], - "key": "meadow-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", + "categories": [ + { + "key": "room-decor", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", + { + "key": "rugs", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", + { + "key": "home-decor", + "typeId": "category", }, - }, - }, - ], - "sku": "MR-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Meadow Rug", - }, - { - "locale": "de-DE", - "value": "Wiesenteppich", - }, - { - "locale": "en-US", - "value": "Meadow Rug", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "meadow-rug", - }, - { - "locale": "de-DE", - "value": "meadow-teppich", - }, - { - "locale": "en-US", - "value": "meadow-rug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A plush area rug is a type of rug that is designed to be soft and comfortable underfoot. Plush rugs are characterized by their thick pile. The fibers are densely packed together, giving the rug a lush and luxurious feel. Because of their softness and comfort, plush area rugs are often used in bedrooms, living rooms, and other areas where people spend a lot of time sitting or lounging on the floor. They are also a popular choice for nurseries and children's rooms, as they provide a safe and comfortable play area for kids. Overall, a plush area rug is a cozy and inviting addition to any home. Its soft texture and luxurious feel make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", - }, + { + "locale": "de-DE", + "value": "Ein Plüschteppich ist eine Art von Teppich, der weich und bequem unter den Füßen liegt. Plüschteppiche zeichnen sich durch ihren dichten Flor aus. Die Fasern sind dicht gepackt und verleihen dem Teppich ein üppiges und luxuriöses Gefühl. Aufgrund ihrer Weichheit und ihres Komforts werden Plüschteppiche häufig in Schlafzimmern, Wohnzimmern und anderen Bereichen verwendet, in denen die Menschen viel Zeit sitzend oder faulenzend auf dem Boden verbringen. Sie sind auch eine beliebte Wahl für Kindergärten und Kinderzimmer, da sie einen sicheren und bequemen Spielbereich für Kinder bieten. Insgesamt ist ein Plüschteppich eine gemütliche und einladende Ergänzung für jedes Zuhause. Seine weiche Textur und sein luxuriöses Gefühl machen ihn zu einer beliebten Wahl für alle, die eine warme und einladende Atmosphäre in ihrem Wohnraum schaffen wollen.", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", - }, + { + "locale": "en-US", + "value": "A plush area rug is a type of rug that is designed to be soft and comfortable underfoot. Plush rugs are characterized by their thick pile. The fibers are densely packed together, giving the rug a lush and luxurious feel. Because of their softness and comfort, plush area rugs are often used in bedrooms, living rooms, and other areas where people spend a lot of time sitting or lounging on the floor. They are also a popular choice for nurseries and children's rooms, as they provide a safe and comfortable play area for kids. Overall, a plush area rug is a cozy and inviting addition to any home. Its soft texture and luxurious feel make it a popular choice for those who want to create a warm and inviting atmosphere in their living space.", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + ], + "key": "meadow-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Grey:#808080","de-DE":"Grau:#808080","en-US":"Gray:#808080"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MR-03", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Meadow Rug", }, - }, - ], - "sku": "MR-08", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB","en-US":"Sky Blue:#87CEEB"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, + { + "locale": "de-DE", + "value": "Wiesenteppich", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", - }, + { + "locale": "en-US", + "value": "Meadow Rug", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", - }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "meadow-rug", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", - }, + { + "locale": "de-DE", + "value": "meadow-teppich", }, - }, - ], - "sku": "MR-05", - }, - ], -} -`); + { + "locale": "en-US", + "value": "meadow-rug", + }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MR-08", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 3ft x 5ft","de-DE":"- 3 Fuß x 5 Fuß","en-US":"- 3ft x 5ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB","en-US":"Sky Blue:#87CEEB"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Meadow_Rug-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MR-05", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand.spec.ts index b3eee8330..3d5a56f7d 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/minimalist-cedar-nightstand.spec.ts @@ -6,357 +6,357 @@ describe(`with minimalistCedarNightstand preset`, () => { const minimalistCedarNightstandPreset = minimalistCedarNightstand().build(); expect(minimalistCedarNightstandPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "tables", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-minimalist", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der minimalistische Nachttisch aus Zedernholz bietet eine einfache und funktionelle Ablagefläche für Gegenstände neben dem Bett. Der Nachttisch zeichnet sich durch ein klares und schlichtes Design mit minimalen dekorativen Elementen aus, ganz im Sinne der minimalistischen Ästhetik. Der Nachttisch ist aus natürlichem Zedernholz gefertigt, das für seine Langlebigkeit, Fäulnisbeständigkeit und attraktive Maserung bekannt ist. Das Holz ist mit einer hellen Beize oder einem Klarlack behandelt, um die natürliche Schönheit des Holzes hervorzuheben. Insgesamt ist ein minimalistischer Nachttisch aus Zedernholz eine stilvolle und funktionelle Ergänzung für jedes Schlafzimmer. Sein klares und einfaches Design passt zu einer Vielzahl von Einrichtungsstilen, und die natürliche Schönheit des Zedernholzes verleiht dem Raum Wärme und Textur.", - "en": undefined, - "en-GB": "The minimalist cedar nightstand is designed to provide a simple and functional surface for placing items next to a bed. The nightstand features a clean and sleek design with minimal decorative elements, in keeping with the minimalist aesthetic. The nightstand is made from natural cedar wood, which is known for its durability, resistance to decay, and attractive grain patterns. The wood is finished with a light stain or clear coating to bring out the natural beauty of the wood. Overall, a minimalist cedar nightstand is a stylish and functional addition to any bedroom. Its clean and simple design complements a variety of decor styles, and the natural beauty of the cedar wood adds warmth and texture to the space.", - "en-US": "The minimalist cedar nightstand is designed to provide a simple and functional surface for placing items next to a bed. The nightstand features a clean and sleek design with minimal decorative elements, in keeping with the minimalist aesthetic. The nightstand is made from natural cedar wood, which is known for its durability, resistance to decay, and attractive grain patterns. The wood is finished with a light stain or clear coating to bring out the natural beauty of the wood. Overall, a minimalist cedar nightstand is a stylish and functional addition to any bedroom. Its clean and simple design complements a variety of decor styles, and the natural beauty of the cedar wood adds warmth and texture to the space.", - "fr": undefined, - }, - "key": "minimalist-cedar-nightstand", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "finish", - "value": { - "de-DE": "Gainsboro:#dcdcdc", - "en-GB": "Gainsboro:#dcdcdc", - "en-US": "Gainsboro:#dcdcdc", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6016, - "w": 4011, + "categories": [ + { + "key": "tables", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "the-minimalist", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der minimalistische Nachttisch aus Zedernholz bietet eine einfache und funktionelle Ablagefläche für Gegenstände neben dem Bett. Der Nachttisch zeichnet sich durch ein klares und schlichtes Design mit minimalen dekorativen Elementen aus, ganz im Sinne der minimalistischen Ästhetik. Der Nachttisch ist aus natürlichem Zedernholz gefertigt, das für seine Langlebigkeit, Fäulnisbeständigkeit und attraktive Maserung bekannt ist. Das Holz ist mit einer hellen Beize oder einem Klarlack behandelt, um die natürliche Schönheit des Holzes hervorzuheben. Insgesamt ist ein minimalistischer Nachttisch aus Zedernholz eine stilvolle und funktionelle Ergänzung für jedes Schlafzimmer. Sein klares und einfaches Design passt zu einer Vielzahl von Einrichtungsstilen, und die natürliche Schönheit des Zedernholzes verleiht dem Raum Wärme und Textur.", + "en": undefined, + "en-GB": "The minimalist cedar nightstand is designed to provide a simple and functional surface for placing items next to a bed. The nightstand features a clean and sleek design with minimal decorative elements, in keeping with the minimalist aesthetic. The nightstand is made from natural cedar wood, which is known for its durability, resistance to decay, and attractive grain patterns. The wood is finished with a light stain or clear coating to bring out the natural beauty of the wood. Overall, a minimalist cedar nightstand is a stylish and functional addition to any bedroom. Its clean and simple design complements a variety of decor styles, and the natural beauty of the cedar wood adds warmth and texture to the space.", + "en-US": "The minimalist cedar nightstand is designed to provide a simple and functional surface for placing items next to a bed. The nightstand features a clean and sleek design with minimal decorative elements, in keeping with the minimalist aesthetic. The nightstand is made from natural cedar wood, which is known for its durability, resistance to decay, and attractive grain patterns. The wood is finished with a light stain or clear coating to bring out the natural beauty of the wood. Overall, a minimalist cedar nightstand is a stylish and functional addition to any bedroom. Its clean and simple design complements a variety of decor styles, and the natural beauty of the cedar wood adds warmth and texture to the space.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.3.jpeg", - }, - { - "dimensions": { - "h": 6016, - "w": 4011, + "key": "minimalist-cedar-nightstand", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "finish", + "value": { + "de-DE": "Gainsboro:#dcdcdc", + "en-GB": "Gainsboro:#dcdcdc", + "en-US": "Gainsboro:#dcdcdc", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6016, + "w": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.3.jpeg", + }, + { + "dimensions": { + "h": 6016, + "w": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.1.jpeg", + }, + { + "dimensions": { + "h": 6016, + "w": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 7900, + "currencyCode": "USD", + }, + }, + ], + "sku": "CNS-0434", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.1.jpeg", - }, - { - "dimensions": { - "h": 6016, - "w": 4011, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Minimalistischer Zedernholz Nachttisch", + "en": undefined, + "en-GB": "Minimalist Cedar Nightstand", + "en-US": "Minimalist Cedar Nightstand", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "minimalistischer-nachttisch-aus-zedernholz", + "en": undefined, + "en-GB": "minimalist-cedar-nightstand", + "en-US": "minimalist-cedar-nightstand", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 7900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CNS-0434", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Minimalistischer Zedernholz Nachttisch", - "en": undefined, - "en-GB": "Minimalist Cedar Nightstand", - "en-US": "Minimalist Cedar Nightstand", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "minimalistischer-nachttisch-aus-zedernholz", - "en": undefined, - "en-GB": "minimalist-cedar-nightstand", - "en-US": "minimalist-cedar-nightstand", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a minimalistCedarNightstand preset when built for graphql`, () => { const minimalistCedarNightstandPresetGraphql = minimalistCedarNightstand().buildGraphql(); expect(minimalistCedarNightstandPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "tables", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-minimalist", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "The minimalist cedar nightstand is designed to provide a simple and functional surface for placing items next to a bed. The nightstand features a clean and sleek design with minimal decorative elements, in keeping with the minimalist aesthetic. The nightstand is made from natural cedar wood, which is known for its durability, resistance to decay, and attractive grain patterns. The wood is finished with a light stain or clear coating to bring out the natural beauty of the wood. Overall, a minimalist cedar nightstand is a stylish and functional addition to any bedroom. Its clean and simple design complements a variety of decor styles, and the natural beauty of the cedar wood adds warmth and texture to the space.", - }, - { - "locale": "de-DE", - "value": "Der minimalistische Nachttisch aus Zedernholz bietet eine einfache und funktionelle Ablagefläche für Gegenstände neben dem Bett. Der Nachttisch zeichnet sich durch ein klares und schlichtes Design mit minimalen dekorativen Elementen aus, ganz im Sinne der minimalistischen Ästhetik. Der Nachttisch ist aus natürlichem Zedernholz gefertigt, das für seine Langlebigkeit, Fäulnisbeständigkeit und attraktive Maserung bekannt ist. Das Holz ist mit einer hellen Beize oder einem Klarlack behandelt, um die natürliche Schönheit des Holzes hervorzuheben. Insgesamt ist ein minimalistischer Nachttisch aus Zedernholz eine stilvolle und funktionelle Ergänzung für jedes Schlafzimmer. Sein klares und einfaches Design passt zu einer Vielzahl von Einrichtungsstilen, und die natürliche Schönheit des Zedernholzes verleiht dem Raum Wärme und Textur.", - }, - { - "locale": "en-US", - "value": "The minimalist cedar nightstand is designed to provide a simple and functional surface for placing items next to a bed. The nightstand features a clean and sleek design with minimal decorative elements, in keeping with the minimalist aesthetic. The nightstand is made from natural cedar wood, which is known for its durability, resistance to decay, and attractive grain patterns. The wood is finished with a light stain or clear coating to bring out the natural beauty of the wood. Overall, a minimalist cedar nightstand is a stylish and functional addition to any bedroom. Its clean and simple design complements a variety of decor styles, and the natural beauty of the cedar wood adds warmth and texture to the space.", - }, - ], - "key": "minimalist-cedar-nightstand", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "finish", - "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 6016, - "width": 4011, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.3.jpeg", - }, - { - "dimensions": { - "height": 6016, - "width": 4011, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.1.jpeg", - }, - { - "dimensions": { - "height": 6016, - "width": 4011, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7900, - "currencyCode": "EUR", + "categories": [ + { + "key": "tables", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "the-minimalist", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "The minimalist cedar nightstand is designed to provide a simple and functional surface for placing items next to a bed. The nightstand features a clean and sleek design with minimal decorative elements, in keeping with the minimalist aesthetic. The nightstand is made from natural cedar wood, which is known for its durability, resistance to decay, and attractive grain patterns. The wood is finished with a light stain or clear coating to bring out the natural beauty of the wood. Overall, a minimalist cedar nightstand is a stylish and functional addition to any bedroom. Its clean and simple design complements a variety of decor styles, and the natural beauty of the cedar wood adds warmth and texture to the space.", + }, + { + "locale": "de-DE", + "value": "Der minimalistische Nachttisch aus Zedernholz bietet eine einfache und funktionelle Ablagefläche für Gegenstände neben dem Bett. Der Nachttisch zeichnet sich durch ein klares und schlichtes Design mit minimalen dekorativen Elementen aus, ganz im Sinne der minimalistischen Ästhetik. Der Nachttisch ist aus natürlichem Zedernholz gefertigt, das für seine Langlebigkeit, Fäulnisbeständigkeit und attraktive Maserung bekannt ist. Das Holz ist mit einer hellen Beize oder einem Klarlack behandelt, um die natürliche Schönheit des Holzes hervorzuheben. Insgesamt ist ein minimalistischer Nachttisch aus Zedernholz eine stilvolle und funktionelle Ergänzung für jedes Schlafzimmer. Sein klares und einfaches Design passt zu einer Vielzahl von Einrichtungsstilen, und die natürliche Schönheit des Zedernholzes verleiht dem Raum Wärme und Textur.", + }, + { + "locale": "en-US", + "value": "The minimalist cedar nightstand is designed to provide a simple and functional surface for placing items next to a bed. The nightstand features a clean and sleek design with minimal decorative elements, in keeping with the minimalist aesthetic. The nightstand is made from natural cedar wood, which is known for its durability, resistance to decay, and attractive grain patterns. The wood is finished with a light stain or clear coating to bring out the natural beauty of the wood. Overall, a minimalist cedar nightstand is a stylish and functional addition to any bedroom. Its clean and simple design complements a variety of decor styles, and the natural beauty of the cedar wood adds warmth and texture to the space.", + }, + ], + "key": "minimalist-cedar-nightstand", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "finish", + "value": "{"en-GB":"Gainsboro:#dcdcdc","de-DE":"Gainsboro:#dcdcdc","en-US":"Gainsboro:#dcdcdc"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6016, + "width": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.3.jpeg", + }, + { + "dimensions": { + "height": 6016, + "width": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.1.jpeg", + }, + { + "dimensions": { + "height": 6016, + "width": 4011, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Cedar_Nightstand-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "7900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 7900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "CNS-0434", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Minimalist Cedar Nightstand", + }, + { + "locale": "de-DE", + "value": "Minimalistischer Zedernholz Nachttisch", }, + { + "locale": "en-US", + "value": "Minimalist Cedar Nightstand", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 7900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "minimalist-cedar-nightstand", + }, + { + "locale": "de-DE", + "value": "minimalistischer-nachttisch-aus-zedernholz", + }, + { + "locale": "en-US", + "value": "minimalist-cedar-nightstand", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "CNS-0434", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Minimalist Cedar Nightstand", - }, - { - "locale": "de-DE", - "value": "Minimalistischer Zedernholz Nachttisch", - }, - { - "locale": "en-US", - "value": "Minimalist Cedar Nightstand", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "minimalist-cedar-nightstand", - }, - { - "locale": "de-DE", - "value": "minimalistischer-nachttisch-aus-zedernholz", - }, - { - "locale": "en-US", - "value": "minimalist-cedar-nightstand", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table.spec.ts index bbbbdcfc1..a8e6adf58 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/minimalist-modern-side-table.spec.ts @@ -6,525 +6,525 @@ describe(`with minimalistModernSideTable preset`, () => { const minimalistModernSideTablePreset = minimalistModernSideTable().build(); expect(minimalistModernSideTablePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "tables", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-minimalist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein minimalistischer Beistelltisch mit runder Platte und 4 schräg gestellten, konischen Beinen ist ein einfaches und stilvolles Möbelstück, das jedem Wohnraum einen Hauch zeitgenössischer Eleganz verleihen kann. Der Tisch hat eine runde oder kreisförmige Platte aus Holz. Die Tischplatte wird von vier leicht schräg gestellten, konischen Beinen getragen, die dem Tisch einen einzigartigen und modernen Look verleihen. Die Beine sind aus Holz gefertigt. Das minimalistische Design des Beistelltischs unterstreicht die Schlichtheit und Funktionalität, mit einem klaren und übersichtlichen Look, der sowohl stilvoll als auch praktisch ist. Die kompakte Größe des Tisches macht ihn zu einer idealen Wahl für kleine Wohnräume oder als Akzent in einem größeren Raum. Der Tisch kann zur Präsentation von Dekorationsgegenständen wie Vasen, Bilderrahmen oder Skulpturen oder als funktionale Ablagefläche für Getränke, Snacks oder Bücher genutzt werden. Durch sein schlichtes und unaufdringliches Design fügt er sich nahtlos in eine Vielzahl von Einrichtungsstilen ein, von modern und zeitgenössisch bis hin zu traditionell und rustikal. Insgesamt ist der minimalistische Beistelltisch mit runder Platte und 4 schräg gestellten, konischen Beinen ein stilvolles und vielseitiges Möbelstück, das jedem Wohnraum einen Hauch von Raffinesse verleihen kann. Sein schlankes und einfaches Design in Kombination mit seinen funktionalen Eigenschaften machen ihn zu einer praktischen und stilvollen Wahl für jedes Zuhause.", - "en": undefined, - "en-GB": "A minimalist side table with a round top and 4 tapered legs at a slant is a simple and stylish piece of furniture that can add a touch of contemporary elegance to any living space. The table features a round or circular top that is made of wood. The top of the table is supported by four tapered legs that are set at a slight angle, giving the table a unique and modern look. The legs are made of wood. The minimalist design of the side table emphasizes simplicity and functionality, with a clean and uncluttered look that is both stylish and practical. The table's compact size makes it an ideal choice for small living spaces or as an accent piece in a larger room. The table can be used to display decorative items such as vases, picture frames, or sculptures, or as a functional surface for drinks, snacks, or books. Its simple and unobtrusive design allows it to blend seamlessly with a variety of interior design styles, from modern and contemporary to traditional and rustic. Overall, a minimalist side table with a round top and 4 tapered legs at a slant is a stylish and versatile piece of furniture that can add a touch of sophistication to any living space. Its sleek and simple design, combined with its functional features, make it a practical and stylish choice for any home.", - "en-US": "A minimalist side table with a round top and 4 tapered legs at a slant is a simple and stylish piece of furniture that can add a touch of contemporary elegance to any living space. The table features a round or circular top that is made of wood. The top of the table is supported by four tapered legs that are set at a slight angle, giving the table a unique and modern look. The legs are made of wood. The minimalist design of the side table emphasizes simplicity and functionality, with a clean and uncluttered look that is both stylish and practical. The table's compact size makes it an ideal choice for small living spaces or as an accent piece in a larger room. The table can be used to display decorative items such as vases, picture frames, or sculptures, or as a functional surface for drinks, snacks, or books. Its simple and unobtrusive design allows it to blend seamlessly with a variety of interior design styles, from modern and contemporary to traditional and rustic. Overall, a minimalist side table with a round top and 4 tapered legs at a slant is a stylish and versatile piece of furniture that can add a touch of sophistication to any living space. Its sleek and simple design, combined with its functional features, make it a practical and stylish choice for any home.", - "fr": undefined, - }, - "key": "minimalist-modern-side-table", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "White:#FFFFFF", - "en-GB": "Weiß:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Saddle Brown:#8b4513", - "en-GB": "Sattel braun:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- 4 legged side table -- Walnut legs -- Pre-assembled", - "en-GB": "- 4 legged side table -- Walnut legs -- Pre-assembled", - "en-US": "- 4 legged side table -- Walnut legs -- Pre-assembled", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6232, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MMST-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Minimalistischer Moderner Beistelltisch", - "en": undefined, - "en-GB": "Minimalist Modern Side Table", - "en-US": "Minimalist Modern Side Table", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "minimalistischer-moderner-beistelltisch", - "en": undefined, - "en-GB": "minimalist-modern-side-table", - "en-US": "minimalist-modern-side-table", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Golden Rod:#DAA520", - "en-GB": "Goldene Rute:#DAA520", - "en-US": "Golden Rod:#DAA520", + "categories": [ + { + "key": "tables", + "typeId": "category", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Saddle Brown:#8b4513", - "en-GB": "Sattel braun:#8b4513", - "en-US": "Saddle Brown:#8b4513", + { + "key": "living-room-furniture", + "typeId": "category", }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- 4 legged side table -- Walnut legs -- Pre-assembled", - "en-GB": "- 4 legged side table -- Walnut legs -- Pre-assembled", - "en-US": "- 4 legged side table -- Walnut legs -- Pre-assembled", + { + "key": "furniture", + "typeId": "category", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6026, - "w": 5883, + { + "key": "new-arrivals", + "typeId": "category", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4999, - "currencyCode": "EUR", + { + "key": "collections", + "typeId": "category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4999, - "currencyCode": "GBP", + { + "key": "the-minimalist", + "typeId": "category", }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein minimalistischer Beistelltisch mit runder Platte und 4 schräg gestellten, konischen Beinen ist ein einfaches und stilvolles Möbelstück, das jedem Wohnraum einen Hauch zeitgenössischer Eleganz verleihen kann. Der Tisch hat eine runde oder kreisförmige Platte aus Holz. Die Tischplatte wird von vier leicht schräg gestellten, konischen Beinen getragen, die dem Tisch einen einzigartigen und modernen Look verleihen. Die Beine sind aus Holz gefertigt. Das minimalistische Design des Beistelltischs unterstreicht die Schlichtheit und Funktionalität, mit einem klaren und übersichtlichen Look, der sowohl stilvoll als auch praktisch ist. Die kompakte Größe des Tisches macht ihn zu einer idealen Wahl für kleine Wohnräume oder als Akzent in einem größeren Raum. Der Tisch kann zur Präsentation von Dekorationsgegenständen wie Vasen, Bilderrahmen oder Skulpturen oder als funktionale Ablagefläche für Getränke, Snacks oder Bücher genutzt werden. Durch sein schlichtes und unaufdringliches Design fügt er sich nahtlos in eine Vielzahl von Einrichtungsstilen ein, von modern und zeitgenössisch bis hin zu traditionell und rustikal. Insgesamt ist der minimalistische Beistelltisch mit runder Platte und 4 schräg gestellten, konischen Beinen ein stilvolles und vielseitiges Möbelstück, das jedem Wohnraum einen Hauch von Raffinesse verleihen kann. Sein schlankes und einfaches Design in Kombination mit seinen funktionalen Eigenschaften machen ihn zu einer praktischen und stilvollen Wahl für jedes Zuhause.", + "en": undefined, + "en-GB": "A minimalist side table with a round top and 4 tapered legs at a slant is a simple and stylish piece of furniture that can add a touch of contemporary elegance to any living space. The table features a round or circular top that is made of wood. The top of the table is supported by four tapered legs that are set at a slight angle, giving the table a unique and modern look. The legs are made of wood. The minimalist design of the side table emphasizes simplicity and functionality, with a clean and uncluttered look that is both stylish and practical. The table's compact size makes it an ideal choice for small living spaces or as an accent piece in a larger room. The table can be used to display decorative items such as vases, picture frames, or sculptures, or as a functional surface for drinks, snacks, or books. Its simple and unobtrusive design allows it to blend seamlessly with a variety of interior design styles, from modern and contemporary to traditional and rustic. Overall, a minimalist side table with a round top and 4 tapered legs at a slant is a stylish and versatile piece of furniture that can add a touch of sophistication to any living space. Its sleek and simple design, combined with its functional features, make it a practical and stylish choice for any home.", + "en-US": "A minimalist side table with a round top and 4 tapered legs at a slant is a simple and stylish piece of furniture that can add a touch of contemporary elegance to any living space. The table features a round or circular top that is made of wood. The top of the table is supported by four tapered legs that are set at a slight angle, giving the table a unique and modern look. The legs are made of wood. The minimalist design of the side table emphasizes simplicity and functionality, with a clean and uncluttered look that is both stylish and practical. The table's compact size makes it an ideal choice for small living spaces or as an accent piece in a larger room. The table can be used to display decorative items such as vases, picture frames, or sculptures, or as a functional surface for drinks, snacks, or books. Its simple and unobtrusive design allows it to blend seamlessly with a variety of interior design styles, from modern and contemporary to traditional and rustic. Overall, a minimalist side table with a round top and 4 tapered legs at a slant is a stylish and versatile piece of furniture that can add a touch of sophistication to any living space. Its sleek and simple design, combined with its functional features, make it a practical and stylish choice for any home.", + "fr": undefined, }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + "key": "minimalist-modern-side-table", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "White:#FFFFFF", + "en-GB": "Weiß:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Saddle Brown:#8b4513", + "en-GB": "Sattel braun:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- 4 legged side table + - Walnut legs + - Pre-assembled", + "en-GB": "- 4 legged side table + - Walnut legs + - Pre-assembled", + "en-US": "- 4 legged side table + - Walnut legs + - Pre-assembled", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6232, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4999, - "currencyCode": "USD", - }, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MMST-01", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Minimalistischer Moderner Beistelltisch", + "en": undefined, + "en-GB": "Minimalist Modern Side Table", + "en-US": "Minimalist Modern Side Table", + "fr": undefined, + }, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - ], - "sku": "MMST-02", - }, - ], -} -`); + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "minimalistischer-moderner-beistelltisch", + "en": undefined, + "en-GB": "minimalist-modern-side-table", + "en-US": "minimalist-modern-side-table", + "fr": undefined, + }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Golden Rod:#DAA520", + "en-GB": "Goldene Rute:#DAA520", + "en-US": "Golden Rod:#DAA520", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Saddle Brown:#8b4513", + "en-GB": "Sattel braun:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- 4 legged side table + - Walnut legs + - Pre-assembled", + "en-GB": "- 4 legged side table + - Walnut legs + - Pre-assembled", + "en-US": "- 4 legged side table + - Walnut legs + - Pre-assembled", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6026, + "w": 5883, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4999, + "currencyCode": "USD", + }, + }, + ], + "sku": "MMST-02", + }, + ], + } + `); }); it(`should return a minimalistModernSideTable preset when built for graphql`, () => { const minimalistModernSideTablePresetGraphql = minimalistModernSideTable().buildGraphql(); expect(minimalistModernSideTablePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "tables", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-minimalist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A minimalist side table with a round top and 4 tapered legs at a slant is a simple and stylish piece of furniture that can add a touch of contemporary elegance to any living space. The table features a round or circular top that is made of wood. The top of the table is supported by four tapered legs that are set at a slight angle, giving the table a unique and modern look. The legs are made of wood. The minimalist design of the side table emphasizes simplicity and functionality, with a clean and uncluttered look that is both stylish and practical. The table's compact size makes it an ideal choice for small living spaces or as an accent piece in a larger room. The table can be used to display decorative items such as vases, picture frames, or sculptures, or as a functional surface for drinks, snacks, or books. Its simple and unobtrusive design allows it to blend seamlessly with a variety of interior design styles, from modern and contemporary to traditional and rustic. Overall, a minimalist side table with a round top and 4 tapered legs at a slant is a stylish and versatile piece of furniture that can add a touch of sophistication to any living space. Its sleek and simple design, combined with its functional features, make it a practical and stylish choice for any home.", - }, - { - "locale": "de-DE", - "value": "Ein minimalistischer Beistelltisch mit runder Platte und 4 schräg gestellten, konischen Beinen ist ein einfaches und stilvolles Möbelstück, das jedem Wohnraum einen Hauch zeitgenössischer Eleganz verleihen kann. Der Tisch hat eine runde oder kreisförmige Platte aus Holz. Die Tischplatte wird von vier leicht schräg gestellten, konischen Beinen getragen, die dem Tisch einen einzigartigen und modernen Look verleihen. Die Beine sind aus Holz gefertigt. Das minimalistische Design des Beistelltischs unterstreicht die Schlichtheit und Funktionalität, mit einem klaren und übersichtlichen Look, der sowohl stilvoll als auch praktisch ist. Die kompakte Größe des Tisches macht ihn zu einer idealen Wahl für kleine Wohnräume oder als Akzent in einem größeren Raum. Der Tisch kann zur Präsentation von Dekorationsgegenständen wie Vasen, Bilderrahmen oder Skulpturen oder als funktionale Ablagefläche für Getränke, Snacks oder Bücher genutzt werden. Durch sein schlichtes und unaufdringliches Design fügt er sich nahtlos in eine Vielzahl von Einrichtungsstilen ein, von modern und zeitgenössisch bis hin zu traditionell und rustikal. Insgesamt ist der minimalistische Beistelltisch mit runder Platte und 4 schräg gestellten, konischen Beinen ein stilvolles und vielseitiges Möbelstück, das jedem Wohnraum einen Hauch von Raffinesse verleihen kann. Sein schlankes und einfaches Design in Kombination mit seinen funktionalen Eigenschaften machen ihn zu einer praktischen und stilvollen Wahl für jedes Zuhause.", - }, - { - "locale": "en-US", - "value": "A minimalist side table with a round top and 4 tapered legs at a slant is a simple and stylish piece of furniture that can add a touch of contemporary elegance to any living space. The table features a round or circular top that is made of wood. The top of the table is supported by four tapered legs that are set at a slight angle, giving the table a unique and modern look. The legs are made of wood. The minimalist design of the side table emphasizes simplicity and functionality, with a clean and uncluttered look that is both stylish and practical. The table's compact size makes it an ideal choice for small living spaces or as an accent piece in a larger room. The table can be used to display decorative items such as vases, picture frames, or sculptures, or as a functional surface for drinks, snacks, or books. Its simple and unobtrusive design allows it to blend seamlessly with a variety of interior design styles, from modern and contemporary to traditional and rustic. Overall, a minimalist side table with a round top and 4 tapered legs at a slant is a stylish and versatile piece of furniture that can add a touch of sophistication to any living space. Its sleek and simple design, combined with its functional features, make it a practical and stylish choice for any home.", - }, - ], - "key": "minimalist-modern-side-table", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"Weiß:#FFFFFF","de-DE":"White:#FFFFFF"}", - }, { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Sattel braun:#8b4513","de-DE":"Saddle Brown:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","en-GB":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","de-DE":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 6232, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12000, - "currencyCode": "EUR", + "categories": [ + { + "key": "tables", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12000, - "currencyCode": "GBP", + { + "key": "living-room-furniture", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12000, - "currencyCode": "USD", + { + "key": "furniture", + "typeId": "category", }, - }, - }, - ], - "sku": "MMST-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Minimalist Modern Side Table", - }, - { - "locale": "de-DE", - "value": "Minimalistischer Moderner Beistelltisch", - }, - { - "locale": "en-US", - "value": "Minimalist Modern Side Table", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "minimalist-modern-side-table", - }, - { - "locale": "de-DE", - "value": "minimalistischer-moderner-beistelltisch", - }, - { - "locale": "en-US", - "value": "minimalist-modern-side-table", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Golden Rod:#DAA520","en-GB":"Goldene Rute:#DAA520","de-DE":"Golden Rod:#DAA520"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Sattel braun:#8b4513","de-DE":"Saddle Brown:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","en-GB":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","de-DE":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 6026, - "width": 5883, + { + "key": "new-arrivals", + "typeId": "category", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4999, - "currencyCode": "EUR", - }, + { + "key": "collections", + "typeId": "category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + { + "key": "the-minimalist", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A minimalist side table with a round top and 4 tapered legs at a slant is a simple and stylish piece of furniture that can add a touch of contemporary elegance to any living space. The table features a round or circular top that is made of wood. The top of the table is supported by four tapered legs that are set at a slight angle, giving the table a unique and modern look. The legs are made of wood. The minimalist design of the side table emphasizes simplicity and functionality, with a clean and uncluttered look that is both stylish and practical. The table's compact size makes it an ideal choice for small living spaces or as an accent piece in a larger room. The table can be used to display decorative items such as vases, picture frames, or sculptures, or as a functional surface for drinks, snacks, or books. Its simple and unobtrusive design allows it to blend seamlessly with a variety of interior design styles, from modern and contemporary to traditional and rustic. Overall, a minimalist side table with a round top and 4 tapered legs at a slant is a stylish and versatile piece of furniture that can add a touch of sophistication to any living space. Its sleek and simple design, combined with its functional features, make it a practical and stylish choice for any home.", + }, + { + "locale": "de-DE", + "value": "Ein minimalistischer Beistelltisch mit runder Platte und 4 schräg gestellten, konischen Beinen ist ein einfaches und stilvolles Möbelstück, das jedem Wohnraum einen Hauch zeitgenössischer Eleganz verleihen kann. Der Tisch hat eine runde oder kreisförmige Platte aus Holz. Die Tischplatte wird von vier leicht schräg gestellten, konischen Beinen getragen, die dem Tisch einen einzigartigen und modernen Look verleihen. Die Beine sind aus Holz gefertigt. Das minimalistische Design des Beistelltischs unterstreicht die Schlichtheit und Funktionalität, mit einem klaren und übersichtlichen Look, der sowohl stilvoll als auch praktisch ist. Die kompakte Größe des Tisches macht ihn zu einer idealen Wahl für kleine Wohnräume oder als Akzent in einem größeren Raum. Der Tisch kann zur Präsentation von Dekorationsgegenständen wie Vasen, Bilderrahmen oder Skulpturen oder als funktionale Ablagefläche für Getränke, Snacks oder Bücher genutzt werden. Durch sein schlichtes und unaufdringliches Design fügt er sich nahtlos in eine Vielzahl von Einrichtungsstilen ein, von modern und zeitgenössisch bis hin zu traditionell und rustikal. Insgesamt ist der minimalistische Beistelltisch mit runder Platte und 4 schräg gestellten, konischen Beinen ein stilvolles und vielseitiges Möbelstück, das jedem Wohnraum einen Hauch von Raffinesse verleihen kann. Sein schlankes und einfaches Design in Kombination mit seinen funktionalen Eigenschaften machen ihn zu einer praktischen und stilvollen Wahl für jedes Zuhause.", + }, + { + "locale": "en-US", + "value": "A minimalist side table with a round top and 4 tapered legs at a slant is a simple and stylish piece of furniture that can add a touch of contemporary elegance to any living space. The table features a round or circular top that is made of wood. The top of the table is supported by four tapered legs that are set at a slight angle, giving the table a unique and modern look. The legs are made of wood. The minimalist design of the side table emphasizes simplicity and functionality, with a clean and uncluttered look that is both stylish and practical. The table's compact size makes it an ideal choice for small living spaces or as an accent piece in a larger room. The table can be used to display decorative items such as vases, picture frames, or sculptures, or as a functional surface for drinks, snacks, or books. Its simple and unobtrusive design allows it to blend seamlessly with a variety of interior design styles, from modern and contemporary to traditional and rustic. Overall, a minimalist side table with a round top and 4 tapered legs at a slant is a stylish and versatile piece of furniture that can add a touch of sophistication to any living space. Its sleek and simple design, combined with its functional features, make it a practical and stylish choice for any home.", + }, + ], + "key": "minimalist-modern-side-table", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"Weiß:#FFFFFF","de-DE":"White:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Sattel braun:#8b4513","de-DE":"Saddle Brown:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","en-GB":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","de-DE":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6232, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4999, - "currencyCode": "GBP", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12000, + "currencyCode": "USD", + }, + }, }, + ], + "sku": "MMST-01", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Minimalist Modern Side Table", + }, + { + "locale": "de-DE", + "value": "Minimalistischer Moderner Beistelltisch", }, + { + "locale": "en-US", + "value": "Minimalist Modern Side Table", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4999, - "currencyCode": "USD", - }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "minimalist-modern-side-table", + }, + { + "locale": "de-DE", + "value": "minimalistischer-moderner-beistelltisch", }, + { + "locale": "en-US", + "value": "minimalist-modern-side-table", + }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - ], - "sku": "MMST-02", - }, - ], -} -`); + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Golden Rod:#DAA520","en-GB":"Goldene Rute:#DAA520","de-DE":"Golden Rod:#DAA520"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Sattel braun:#8b4513","de-DE":"Saddle Brown:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","en-GB":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled","de-DE":"- 4 legged side table\\n- Walnut legs\\n- Pre-assembled"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6026, + "width": 5883, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Minimalist_Modern_Side_Table-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MMST-02", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster.spec.ts index 317f5dd64..a67310ed4 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-black-coaster.spec.ts @@ -6,321 +6,321 @@ describe(`with modernBlackCoaster preset`, () => { const modernBlackCoasterPreset = modernBlackCoaster().build(); expect(modernBlackCoasterPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein runder schwarzer Untersetzer ist ein kleines, flaches, scheibenförmiges Objekt, das unter ein Trinkglas oder eine Tasse gestellt wird, um die Oberfläche eines Tisches oder anderer Möbel vor Wasserringen oder Verschüttungen zu schützen. Der Untersetzer hat eine runde Form und ist einfarbig schwarz, was ihm ein schlichtes und minimalistisches Aussehen verleiht. Seine Oberfläche ist glatt, damit das Glas oder die Tasse rutschfest steht. Die Ränder sind mit einer Nahtverzierung versehen, die die Ästhetik des Untersetzers unterstreicht. Insgesamt ist ein runder schwarzer Untersetzer ein funktionelles und stilvolles Accessoire, das sich perfekt für jedes Zuhause oder Büro eignet.", - "en": undefined, - "en-GB": "A round black coaster is a small, flat disc-shaped object, which is placed under a drinking glass or cup to protect the surface of a table or other furniture from water rings or spills. The coaster is circular in shape and has a solid black color, giving it a sleek and minimalist appearance. Its surface is smooth to provide a non-slip grip for the glass or cup. The edges include a stitching ornamentation, adding to the coaster's aesthetic appeal. Overall, a round black coaster is a functional and stylish accessory that is perfect for any home or office setting.", - "en-US": "A round black coaster is a small, flat disc-shaped object, which is placed under a drinking glass or cup to protect the surface of a table or other furniture from water rings or spills. The coaster is circular in shape and has a solid black color, giving it a sleek and minimalist appearance. Its surface is smooth to provide a non-slip grip for the glass or cup. The edges include a stitching ornamentation, adding to the coaster's aesthetic appeal. Overall, a round black coaster is a functional and stylish accessory that is perfect for any home or office setting.", - "fr": undefined, - }, - "key": "modern-black-coaster", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 4 Untersetzer", - "en-GB": "- Set includes 4 coasters", - "en-US": "- Set includes 4 coasters", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein runder schwarzer Untersetzer ist ein kleines, flaches, scheibenförmiges Objekt, das unter ein Trinkglas oder eine Tasse gestellt wird, um die Oberfläche eines Tisches oder anderer Möbel vor Wasserringen oder Verschüttungen zu schützen. Der Untersetzer hat eine runde Form und ist einfarbig schwarz, was ihm ein schlichtes und minimalistisches Aussehen verleiht. Seine Oberfläche ist glatt, damit das Glas oder die Tasse rutschfest steht. Die Ränder sind mit einer Nahtverzierung versehen, die die Ästhetik des Untersetzers unterstreicht. Insgesamt ist ein runder schwarzer Untersetzer ein funktionelles und stilvolles Accessoire, das sich perfekt für jedes Zuhause oder Büro eignet.", + "en": undefined, + "en-GB": "A round black coaster is a small, flat disc-shaped object, which is placed under a drinking glass or cup to protect the surface of a table or other furniture from water rings or spills. The coaster is circular in shape and has a solid black color, giving it a sleek and minimalist appearance. Its surface is smooth to provide a non-slip grip for the glass or cup. The edges include a stitching ornamentation, adding to the coaster's aesthetic appeal. Overall, a round black coaster is a functional and stylish accessory that is perfect for any home or office setting.", + "en-US": "A round black coaster is a small, flat disc-shaped object, which is placed under a drinking glass or cup to protect the surface of a table or other furniture from water rings or spills. The coaster is circular in shape and has a solid black color, giving it a sleek and minimalist appearance. Its surface is smooth to provide a non-slip grip for the glass or cup. The edges include a stitching ornamentation, adding to the coaster's aesthetic appeal. Overall, a round black coaster is a functional and stylish accessory that is perfect for any home or office setting.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2912, - "w": 2912, + "key": "modern-black-coaster", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 4 Untersetzer", + "en-GB": "- Set includes 4 coasters", + "en-US": "- Set includes 4 coasters", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2912, + "w": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.1.jpeg", + }, + { + "dimensions": { + "h": 2912, + "w": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "BCOAS-08", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.1.jpeg", - }, - { - "dimensions": { - "h": 2912, - "w": 2912, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Moderner schwarzer Untersetzer", + "en": undefined, + "en-GB": "Modern Black Coaster", + "en-US": "Modern Black Coaster", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "moderner-schwarzer-untersetzer", + "en": undefined, + "en-GB": "modern-black-coaster", + "en-US": "modern-black-coaster", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BCOAS-08", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Moderner schwarzer Untersetzer", - "en": undefined, - "en-GB": "Modern Black Coaster", - "en-US": "Modern Black Coaster", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "moderner-schwarzer-untersetzer", - "en": undefined, - "en-GB": "modern-black-coaster", - "en-US": "modern-black-coaster", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a modernBlackCoaster preset when built for graphql`, () => { const modernBlackCoasterPresetGraphql = modernBlackCoaster().buildGraphql(); expect(modernBlackCoasterPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A round black coaster is a small, flat disc-shaped object, which is placed under a drinking glass or cup to protect the surface of a table or other furniture from water rings or spills. The coaster is circular in shape and has a solid black color, giving it a sleek and minimalist appearance. Its surface is smooth to provide a non-slip grip for the glass or cup. The edges include a stitching ornamentation, adding to the coaster's aesthetic appeal. Overall, a round black coaster is a functional and stylish accessory that is perfect for any home or office setting.", - }, - { - "locale": "de-DE", - "value": "Ein runder schwarzer Untersetzer ist ein kleines, flaches, scheibenförmiges Objekt, das unter ein Trinkglas oder eine Tasse gestellt wird, um die Oberfläche eines Tisches oder anderer Möbel vor Wasserringen oder Verschüttungen zu schützen. Der Untersetzer hat eine runde Form und ist einfarbig schwarz, was ihm ein schlichtes und minimalistisches Aussehen verleiht. Seine Oberfläche ist glatt, damit das Glas oder die Tasse rutschfest steht. Die Ränder sind mit einer Nahtverzierung versehen, die die Ästhetik des Untersetzers unterstreicht. Insgesamt ist ein runder schwarzer Untersetzer ein funktionelles und stilvolles Accessoire, das sich perfekt für jedes Zuhause oder Büro eignet.", - }, - { - "locale": "en-US", - "value": "A round black coaster is a small, flat disc-shaped object, which is placed under a drinking glass or cup to protect the surface of a table or other furniture from water rings or spills. The coaster is circular in shape and has a solid black color, giving it a sleek and minimalist appearance. Its surface is smooth to provide a non-slip grip for the glass or cup. The edges include a stitching ornamentation, adding to the coaster's aesthetic appeal. Overall, a round black coaster is a functional and stylish accessory that is perfect for any home or office setting.", - }, - ], - "key": "modern-black-coaster", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 4 coasters","de-DE":"- Das Set enthält 4 Untersetzer","en-US":"- Set includes 4 coasters"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2912, - "width": 2912, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.1.jpeg", - }, { - "dimensions": { - "height": 2912, - "width": 2912, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A round black coaster is a small, flat disc-shaped object, which is placed under a drinking glass or cup to protect the surface of a table or other furniture from water rings or spills. The coaster is circular in shape and has a solid black color, giving it a sleek and minimalist appearance. Its surface is smooth to provide a non-slip grip for the glass or cup. The edges include a stitching ornamentation, adding to the coaster's aesthetic appeal. Overall, a round black coaster is a functional and stylish accessory that is perfect for any home or office setting.", + }, + { + "locale": "de-DE", + "value": "Ein runder schwarzer Untersetzer ist ein kleines, flaches, scheibenförmiges Objekt, das unter ein Trinkglas oder eine Tasse gestellt wird, um die Oberfläche eines Tisches oder anderer Möbel vor Wasserringen oder Verschüttungen zu schützen. Der Untersetzer hat eine runde Form und ist einfarbig schwarz, was ihm ein schlichtes und minimalistisches Aussehen verleiht. Seine Oberfläche ist glatt, damit das Glas oder die Tasse rutschfest steht. Die Ränder sind mit einer Nahtverzierung versehen, die die Ästhetik des Untersetzers unterstreicht. Insgesamt ist ein runder schwarzer Untersetzer ein funktionelles und stilvolles Accessoire, das sich perfekt für jedes Zuhause oder Büro eignet.", + }, + { + "locale": "en-US", + "value": "A round black coaster is a small, flat disc-shaped object, which is placed under a drinking glass or cup to protect the surface of a table or other furniture from water rings or spills. The coaster is circular in shape and has a solid black color, giving it a sleek and minimalist appearance. Its surface is smooth to provide a non-slip grip for the glass or cup. The edges include a stitching ornamentation, adding to the coaster's aesthetic appeal. Overall, a round black coaster is a functional and stylish accessory that is perfect for any home or office setting.", }, + ], + "key": "modern-black-coaster", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 4 coasters","de-DE":"- Das Set enthält 4 Untersetzer","en-US":"- Set includes 4 coasters"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2912, + "width": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.1.jpeg", + }, + { + "dimensions": { + "height": 2912, + "width": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Black_Coaster-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BCOAS-08", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Modern Black Coaster", + }, + { + "locale": "de-DE", + "value": "Moderner schwarzer Untersetzer", + }, + { + "locale": "en-US", + "value": "Modern Black Coaster", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "modern-black-coaster", + }, + { + "locale": "de-DE", + "value": "moderner-schwarzer-untersetzer", + }, + { + "locale": "en-US", + "value": "modern-black-coaster", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BCOAS-08", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Modern Black Coaster", - }, - { - "locale": "de-DE", - "value": "Moderner schwarzer Untersetzer", - }, - { - "locale": "en-US", - "value": "Modern Black Coaster", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "modern-black-coaster", - }, - { - "locale": "de-DE", - "value": "moderner-schwarzer-untersetzer", - }, - { - "locale": "en-US", - "value": "modern-black-coaster", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-bookcase.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-bookcase.spec.ts index bc3b0be10..6c878d0de 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-bookcase.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-bookcase.spec.ts @@ -5,329 +5,329 @@ describe(`with modernBookcase preset`, () => { it(`should return a modernBookcase preset`, () => { const modernBookcasePreset = modernBookcase().build(); expect(modernBookcasePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses moderne Bücherregal hat ein einfaches und elegantes Design, das sich gut in die moderne Einrichtung einfügt. Es hat klare Linien. Das Bücherregal ist aus Holz gefertigt und mahagonifarben lackiert. Die offenen und geräumigen Regalböden bieten reichlich Platz zum Aufbewahren und Ausstellen von Büchern, Dekorationsobjekten und anderen Gegenständen. Ein minimalistisches Bücherregal erfüllt nicht nur einen funktionalen Zweck, sondern dient auch als dekoratives Möbelstück. Es ist so konzipiert, dass es sich nahtlos in seine Umgebung einfügt, ohne zu viel Aufmerksamkeit auf sich zu ziehen. Daher ist es eine ausgezeichnete Wahl für alle, die eine stilvolle, aber unauffällige Aufbewahrungslösung suchen.", - "en": undefined, - "en-GB": "This Modern bookcase is designed with a simple and sleek look that blends well with modern decor. It has clean lines. The bookcase is made of wood and has a mahogany finish. The shelves are open and spacious, providing ample space to store and display books, decorative objects, and other items. In addition to its functional purpose, a minimalist bookcase also serves as a decorative piece of furniture. It is designed to blend seamlessly with its surroundings, without drawing too much attention to itself. As such, it is an excellent choice for those who want a stylish yet unobtrusive storage solution.", - "en-US": "This Modern bookcase is designed with a simple and sleek look that blends well with modern decor. It has clean lines. The bookcase is made of wood and has a mahogany finish. The shelves are open and spacious, providing ample space to store and display books, decorative objects, and other items. In addition to its functional purpose, a minimalist bookcase also serves as a decorative piece of furniture. It is designed to blend seamlessly with its surroundings, without drawing too much attention to itself. As such, it is an excellent choice for those who want a stylish yet unobtrusive storage solution.", - "fr": undefined, - }, - "key": "modern-bookcase", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses moderne Bücherregal hat ein einfaches und elegantes Design, das sich gut in die moderne Einrichtung einfügt. Es hat klare Linien. Das Bücherregal ist aus Holz gefertigt und mahagonifarben lackiert. Die offenen und geräumigen Regalböden bieten reichlich Platz zum Aufbewahren und Ausstellen von Büchern, Dekorationsobjekten und anderen Gegenständen. Ein minimalistisches Bücherregal erfüllt nicht nur einen funktionalen Zweck, sondern dient auch als dekoratives Möbelstück. Es ist so konzipiert, dass es sich nahtlos in seine Umgebung einfügt, ohne zu viel Aufmerksamkeit auf sich zu ziehen. Daher ist es eine ausgezeichnete Wahl für alle, die eine stilvolle, aber unauffällige Aufbewahrungslösung suchen.", + "en": undefined, + "en-GB": "This Modern bookcase is designed with a simple and sleek look that blends well with modern decor. It has clean lines. The bookcase is made of wood and has a mahogany finish. The shelves are open and spacious, providing ample space to store and display books, decorative objects, and other items. In addition to its functional purpose, a minimalist bookcase also serves as a decorative piece of furniture. It is designed to blend seamlessly with its surroundings, without drawing too much attention to itself. As such, it is an excellent choice for those who want a stylish yet unobtrusive storage solution.", + "en-US": "This Modern bookcase is designed with a simple and sleek look that blends well with modern decor. It has clean lines. The bookcase is made of wood and has a mahogany finish. The shelves are open and spacious, providing ample space to store and display books, decorative objects, and other items. In addition to its functional purpose, a minimalist bookcase also serves as a decorative piece of furniture. It is designed to blend seamlessly with its surroundings, without drawing too much attention to itself. As such, it is an excellent choice for those who want a stylish yet unobtrusive storage solution.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", + "key": "modern-bookcase", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4600, + "w": 2760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Bookcase-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MB-0973", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4600, - "w": 2760, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Modernes Bücherregal", + "en": undefined, + "en-GB": "Modern Bookcase", + "en-US": "Modern Bookcase", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Bookcase-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "modernes-bcherregal", + "en": undefined, + "en-GB": "modern-bookcase", + "en-US": "modern-bookcase", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MB-0973", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Modernes Bücherregal", - "en": undefined, - "en-GB": "Modern Bookcase", - "en-US": "Modern Bookcase", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "modernes-bcherregal", - "en": undefined, - "en-GB": "modern-bookcase", - "en-US": "modern-bookcase", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a modernBookcase preset when built for graphql`, () => { const modernBookcasePresetGraphql = modernBookcase().buildGraphql(); expect(modernBookcasePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This Modern bookcase is designed with a simple and sleek look that blends well with modern decor. It has clean lines. The bookcase is made of wood and has a mahogany finish. The shelves are open and spacious, providing ample space to store and display books, decorative objects, and other items. In addition to its functional purpose, a minimalist bookcase also serves as a decorative piece of furniture. It is designed to blend seamlessly with its surroundings, without drawing too much attention to itself. As such, it is an excellent choice for those who want a stylish yet unobtrusive storage solution.", - }, - { - "locale": "de-DE", - "value": "Dieses moderne Bücherregal hat ein einfaches und elegantes Design, das sich gut in die moderne Einrichtung einfügt. Es hat klare Linien. Das Bücherregal ist aus Holz gefertigt und mahagonifarben lackiert. Die offenen und geräumigen Regalböden bieten reichlich Platz zum Aufbewahren und Ausstellen von Büchern, Dekorationsobjekten und anderen Gegenständen. Ein minimalistisches Bücherregal erfüllt nicht nur einen funktionalen Zweck, sondern dient auch als dekoratives Möbelstück. Es ist so konzipiert, dass es sich nahtlos in seine Umgebung einfügt, ohne zu viel Aufmerksamkeit auf sich zu ziehen. Daher ist es eine ausgezeichnete Wahl für alle, die eine stilvolle, aber unauffällige Aufbewahrungslösung suchen.", - }, - { - "locale": "en-US", - "value": "This Modern bookcase is designed with a simple and sleek look that blends well with modern decor. It has clean lines. The bookcase is made of wood and has a mahogany finish. The shelves are open and spacious, providing ample space to store and display books, decorative objects, and other items. In addition to its functional purpose, a minimalist bookcase also serves as a decorative piece of furniture. It is designed to blend seamlessly with its surroundings, without drawing too much attention to itself. As such, it is an excellent choice for those who want a stylish yet unobtrusive storage solution.", - }, - ], - "key": "modern-bookcase", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten","en-US":"- Assembly included in delivery"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4600, - "width": 2760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Bookcase-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", }, + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This Modern bookcase is designed with a simple and sleek look that blends well with modern decor. It has clean lines. The bookcase is made of wood and has a mahogany finish. The shelves are open and spacious, providing ample space to store and display books, decorative objects, and other items. In addition to its functional purpose, a minimalist bookcase also serves as a decorative piece of furniture. It is designed to blend seamlessly with its surroundings, without drawing too much attention to itself. As such, it is an excellent choice for those who want a stylish yet unobtrusive storage solution.", + }, + { + "locale": "de-DE", + "value": "Dieses moderne Bücherregal hat ein einfaches und elegantes Design, das sich gut in die moderne Einrichtung einfügt. Es hat klare Linien. Das Bücherregal ist aus Holz gefertigt und mahagonifarben lackiert. Die offenen und geräumigen Regalböden bieten reichlich Platz zum Aufbewahren und Ausstellen von Büchern, Dekorationsobjekten und anderen Gegenständen. Ein minimalistisches Bücherregal erfüllt nicht nur einen funktionalen Zweck, sondern dient auch als dekoratives Möbelstück. Es ist so konzipiert, dass es sich nahtlos in seine Umgebung einfügt, ohne zu viel Aufmerksamkeit auf sich zu ziehen. Daher ist es eine ausgezeichnete Wahl für alle, die eine stilvolle, aber unauffällige Aufbewahrungslösung suchen.", + }, + { + "locale": "en-US", + "value": "This Modern bookcase is designed with a simple and sleek look that blends well with modern decor. It has clean lines. The bookcase is made of wood and has a mahogany finish. The shelves are open and spacious, providing ample space to store and display books, decorative objects, and other items. In addition to its functional purpose, a minimalist bookcase also serves as a decorative piece of furniture. It is designed to blend seamlessly with its surroundings, without drawing too much attention to itself. As such, it is an excellent choice for those who want a stylish yet unobtrusive storage solution.", + }, + ], + "key": "modern-bookcase", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten","en-US":"- Assembly included in delivery"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4600, + "width": 2760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Bookcase-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MB-0973", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Modern Bookcase", + }, + { + "locale": "de-DE", + "value": "Modernes Bücherregal", + }, + { + "locale": "en-US", + "value": "Modern Bookcase", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "modern-bookcase", + }, + { + "locale": "de-DE", + "value": "modernes-bcherregal", + }, + { + "locale": "en-US", + "value": "modern-bookcase", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MB-0973", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Modern Bookcase", - }, - { - "locale": "de-DE", - "value": "Modernes Bücherregal", - }, - { - "locale": "en-US", - "value": "Modern Bookcase", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "modern-bookcase", - }, - { - "locale": "de-DE", - "value": "modernes-bcherregal", - }, - { - "locale": "en-US", - "value": "modern-bookcase", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate.spec.ts index 9659258d9..4d300c38b 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-ceramic-plate.spec.ts @@ -6,329 +6,329 @@ describe(`with modernCeramicPlate preset`, () => { const modernCeramicPlatePreset = modernCeramicPlate().build(); expect(modernCeramicPlatePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "cheese-trays", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Keramikteller ist ein klassischer und vielseitiger Teller, der zum Servieren einer Vielzahl von Speisen verwendet wird. Der Teller hat eine flache, runde Oberfläche mit einer leicht erhöhten Lippe an den Rändern, um ein Überschwappen der Speisen zu verhindern. Keramische Essteller eignen sich ideal zum Servieren einer Vielzahl von Gerichten, darunter Vorspeisen, Beilagen, Salate und Desserts. Sie können sowohl in zwanglosem als auch in formellem Rahmen verwendet werden und sind sowohl in Restaurants als auch in Privathaushalten eine beliebte Wahl. Keramische Essteller sind langlebig und leicht zu reinigen, was sie zu einer praktischen Wahl für den täglichen Gebrauch macht. Sie können in der Spülmaschine oder von Hand mit Wasser und Seife gereinigt werden. Insgesamt ist ein Keramikteller eine klassische und funktionelle Wahl für das Servieren von Speisen. Seine Schlichtheit und Langlebigkeit machen ihn zu einem Grundnahrungsmittel in vielen Küchen und Esszimmern, und seine Vielseitigkeit macht ihn für eine Reihe von Essanlässen geeignet.", - "en": undefined, - "en-GB": "A ceramic dinner plate is a classic and versatile dish that is used to serve a variety of meals. The plate has a flat, circular surface with a slightly raised lip around the edges to prevent food from spilling over. Ceramic dinner plates are ideal for serving a variety of dishes, including entrees, sides, salads, and desserts. They can be used in both casual and formal settings, and are a popular choice in restaurants and homes alike. Ceramic dinner plates are durable and easy to clean, making them a practical choice for everyday use. They can be washed in a dishwasher or hand washed with soap and water. Overall, a ceramic dinner plate is a classic and functional choice for serving food. Its simplicity and durability make it a staple in many kitchens and dining rooms, and its versatility makes it suitable for a range of dining occasions.", - "en-US": "A ceramic dinner plate is a classic and versatile dish that is used to serve a variety of meals. The plate has a flat, circular surface with a slightly raised lip around the edges to prevent food from spilling over. Ceramic dinner plates are ideal for serving a variety of dishes, including entrees, sides, salads, and desserts. They can be used in both casual and formal settings, and are a popular choice in restaurants and homes alike. Ceramic dinner plates are durable and easy to clean, making them a practical choice for everyday use. They can be washed in a dishwasher or hand washed with soap and water. Overall, a ceramic dinner plate is a classic and functional choice for serving food. Its simplicity and durability make it a staple in many kitchens and dining rooms, and its versatility makes it suitable for a range of dining occasions.", - "fr": undefined, - }, - "key": "modern-ceramic-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Teller", - "en-GB": "- Includes 1 plate", - "en-US": "- Includes 1 plate", + "categories": [ + { + "key": "plates", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "cheese-trays", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Keramikteller ist ein klassischer und vielseitiger Teller, der zum Servieren einer Vielzahl von Speisen verwendet wird. Der Teller hat eine flache, runde Oberfläche mit einer leicht erhöhten Lippe an den Rändern, um ein Überschwappen der Speisen zu verhindern. Keramische Essteller eignen sich ideal zum Servieren einer Vielzahl von Gerichten, darunter Vorspeisen, Beilagen, Salate und Desserts. Sie können sowohl in zwanglosem als auch in formellem Rahmen verwendet werden und sind sowohl in Restaurants als auch in Privathaushalten eine beliebte Wahl. Keramische Essteller sind langlebig und leicht zu reinigen, was sie zu einer praktischen Wahl für den täglichen Gebrauch macht. Sie können in der Spülmaschine oder von Hand mit Wasser und Seife gereinigt werden. Insgesamt ist ein Keramikteller eine klassische und funktionelle Wahl für das Servieren von Speisen. Seine Schlichtheit und Langlebigkeit machen ihn zu einem Grundnahrungsmittel in vielen Küchen und Esszimmern, und seine Vielseitigkeit macht ihn für eine Reihe von Essanlässen geeignet.", + "en": undefined, + "en-GB": "A ceramic dinner plate is a classic and versatile dish that is used to serve a variety of meals. The plate has a flat, circular surface with a slightly raised lip around the edges to prevent food from spilling over. Ceramic dinner plates are ideal for serving a variety of dishes, including entrees, sides, salads, and desserts. They can be used in both casual and formal settings, and are a popular choice in restaurants and homes alike. Ceramic dinner plates are durable and easy to clean, making them a practical choice for everyday use. They can be washed in a dishwasher or hand washed with soap and water. Overall, a ceramic dinner plate is a classic and functional choice for serving food. Its simplicity and durability make it a staple in many kitchens and dining rooms, and its versatility makes it suitable for a range of dining occasions.", + "en-US": "A ceramic dinner plate is a classic and versatile dish that is used to serve a variety of meals. The plate has a flat, circular surface with a slightly raised lip around the edges to prevent food from spilling over. Ceramic dinner plates are ideal for serving a variety of dishes, including entrees, sides, salads, and desserts. They can be used in both casual and formal settings, and are a popular choice in restaurants and homes alike. Ceramic dinner plates are durable and easy to clean, making them a practical choice for everyday use. They can be washed in a dishwasher or hand washed with soap and water. Overall, a ceramic dinner plate is a classic and functional choice for serving food. Its simplicity and durability make it a staple in many kitchens and dining rooms, and its versatility makes it suitable for a range of dining occasions.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "key": "modern-ceramic-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Teller", + "en-GB": "- Includes 1 plate", + "en-US": "- Includes 1 plate", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4576, + "w": 5088, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Ceramic_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "MCP-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4576, - "w": 5088, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Moderne Keramikplatte", + "en": undefined, + "en-GB": "Modern Ceramic Plate", + "en-US": "Modern Ceramic Plate", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Ceramic_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "moderne-keramikplatte", + "en": undefined, + "en-GB": "modern-ceramic-plate", + "en-US": "modern-ceramic-plate", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MCP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Moderne Keramikplatte", - "en": undefined, - "en-GB": "Modern Ceramic Plate", - "en-US": "Modern Ceramic Plate", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "moderne-keramikplatte", - "en": undefined, - "en-GB": "modern-ceramic-plate", - "en-US": "modern-ceramic-plate", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a modernCeramicPlate preset when built for graphql`, () => { const modernCeramicPlatePresetGraphql = modernCeramicPlate().buildGraphql(); expect(modernCeramicPlatePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "cheese-trays", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A ceramic dinner plate is a classic and versatile dish that is used to serve a variety of meals. The plate has a flat, circular surface with a slightly raised lip around the edges to prevent food from spilling over. Ceramic dinner plates are ideal for serving a variety of dishes, including entrees, sides, salads, and desserts. They can be used in both casual and formal settings, and are a popular choice in restaurants and homes alike. Ceramic dinner plates are durable and easy to clean, making them a practical choice for everyday use. They can be washed in a dishwasher or hand washed with soap and water. Overall, a ceramic dinner plate is a classic and functional choice for serving food. Its simplicity and durability make it a staple in many kitchens and dining rooms, and its versatility makes it suitable for a range of dining occasions.", - }, - { - "locale": "de-DE", - "value": "Ein Keramikteller ist ein klassischer und vielseitiger Teller, der zum Servieren einer Vielzahl von Speisen verwendet wird. Der Teller hat eine flache, runde Oberfläche mit einer leicht erhöhten Lippe an den Rändern, um ein Überschwappen der Speisen zu verhindern. Keramische Essteller eignen sich ideal zum Servieren einer Vielzahl von Gerichten, darunter Vorspeisen, Beilagen, Salate und Desserts. Sie können sowohl in zwanglosem als auch in formellem Rahmen verwendet werden und sind sowohl in Restaurants als auch in Privathaushalten eine beliebte Wahl. Keramische Essteller sind langlebig und leicht zu reinigen, was sie zu einer praktischen Wahl für den täglichen Gebrauch macht. Sie können in der Spülmaschine oder von Hand mit Wasser und Seife gereinigt werden. Insgesamt ist ein Keramikteller eine klassische und funktionelle Wahl für das Servieren von Speisen. Seine Schlichtheit und Langlebigkeit machen ihn zu einem Grundnahrungsmittel in vielen Küchen und Esszimmern, und seine Vielseitigkeit macht ihn für eine Reihe von Essanlässen geeignet.", - }, - { - "locale": "en-US", - "value": "A ceramic dinner plate is a classic and versatile dish that is used to serve a variety of meals. The plate has a flat, circular surface with a slightly raised lip around the edges to prevent food from spilling over. Ceramic dinner plates are ideal for serving a variety of dishes, including entrees, sides, salads, and desserts. They can be used in both casual and formal settings, and are a popular choice in restaurants and homes alike. Ceramic dinner plates are durable and easy to clean, making them a practical choice for everyday use. They can be washed in a dishwasher or hand washed with soap and water. Overall, a ceramic dinner plate is a classic and functional choice for serving food. Its simplicity and durability make it a staple in many kitchens and dining rooms, and its versatility makes it suitable for a range of dining occasions.", - }, - ], - "key": "modern-ceramic-plate", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4576, - "width": 5088, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Ceramic_Plate-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", + "categories": [ + { + "key": "plates", + "typeId": "category", }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "cheese-trays", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A ceramic dinner plate is a classic and versatile dish that is used to serve a variety of meals. The plate has a flat, circular surface with a slightly raised lip around the edges to prevent food from spilling over. Ceramic dinner plates are ideal for serving a variety of dishes, including entrees, sides, salads, and desserts. They can be used in both casual and formal settings, and are a popular choice in restaurants and homes alike. Ceramic dinner plates are durable and easy to clean, making them a practical choice for everyday use. They can be washed in a dishwasher or hand washed with soap and water. Overall, a ceramic dinner plate is a classic and functional choice for serving food. Its simplicity and durability make it a staple in many kitchens and dining rooms, and its versatility makes it suitable for a range of dining occasions.", + }, + { + "locale": "de-DE", + "value": "Ein Keramikteller ist ein klassischer und vielseitiger Teller, der zum Servieren einer Vielzahl von Speisen verwendet wird. Der Teller hat eine flache, runde Oberfläche mit einer leicht erhöhten Lippe an den Rändern, um ein Überschwappen der Speisen zu verhindern. Keramische Essteller eignen sich ideal zum Servieren einer Vielzahl von Gerichten, darunter Vorspeisen, Beilagen, Salate und Desserts. Sie können sowohl in zwanglosem als auch in formellem Rahmen verwendet werden und sind sowohl in Restaurants als auch in Privathaushalten eine beliebte Wahl. Keramische Essteller sind langlebig und leicht zu reinigen, was sie zu einer praktischen Wahl für den täglichen Gebrauch macht. Sie können in der Spülmaschine oder von Hand mit Wasser und Seife gereinigt werden. Insgesamt ist ein Keramikteller eine klassische und funktionelle Wahl für das Servieren von Speisen. Seine Schlichtheit und Langlebigkeit machen ihn zu einem Grundnahrungsmittel in vielen Küchen und Esszimmern, und seine Vielseitigkeit macht ihn für eine Reihe von Essanlässen geeignet.", + }, + { + "locale": "en-US", + "value": "A ceramic dinner plate is a classic and versatile dish that is used to serve a variety of meals. The plate has a flat, circular surface with a slightly raised lip around the edges to prevent food from spilling over. Ceramic dinner plates are ideal for serving a variety of dishes, including entrees, sides, salads, and desserts. They can be used in both casual and formal settings, and are a popular choice in restaurants and homes alike. Ceramic dinner plates are durable and easy to clean, making them a practical choice for everyday use. They can be washed in a dishwasher or hand washed with soap and water. Overall, a ceramic dinner plate is a classic and functional choice for serving food. Its simplicity and durability make it a staple in many kitchens and dining rooms, and its versatility makes it suitable for a range of dining occasions.", + }, + ], + "key": "modern-ceramic-plate", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 plate","de-DE":"- Enthält 1 Teller","en-US":"- Includes 1 plate"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4576, + "width": 5088, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Ceramic_Plate-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MCP-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Modern Ceramic Plate", + }, + { + "locale": "de-DE", + "value": "Moderne Keramikplatte", + }, + { + "locale": "en-US", + "value": "Modern Ceramic Plate", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "modern-ceramic-plate", + }, + { + "locale": "de-DE", + "value": "moderne-keramikplatte", + }, + { + "locale": "en-US", + "value": "modern-ceramic-plate", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MCP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Modern Ceramic Plate", - }, - { - "locale": "de-DE", - "value": "Moderne Keramikplatte", - }, - { - "locale": "en-US", - "value": "Modern Ceramic Plate", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "modern-ceramic-plate", - }, - { - "locale": "de-DE", - "value": "moderne-keramikplatte", - }, - { - "locale": "en-US", - "value": "modern-ceramic-plate", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser.spec.ts index 45ca3e645..bf4fda6c4 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-glam-dresser.spec.ts @@ -5,359 +5,359 @@ describe(`with modernGlamDresser preset`, () => { it(`should return a modernGlamDresser preset`, () => { const modernGlamDresserPreset = modernGlamDresser().build(); expect(modernGlamDresserPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Eine moderne glamouröse Kommode ist ein stilvolles und elegantes Möbelstück, das modernes Design mit glamourösen Akzenten verbindet. Sie zeichnet sich durch klare Linien, glatte Oberflächen und Metallic-Finish aus, wodurch ein schickes und anspruchsvolles Aussehen entsteht, das jedem Schlafzimmer einen Hauch von Luxus verleiht. Die Kommode ist aus hochwertigen Materialien gefertigt. Die Schubladen sind geräumig und lassen sich leicht öffnen und schließen und bieten reichlich Stauraum für Kleidung, Accessoires und andere Gegenstände. Die Kommode verfügt außerdem über glamouröse Metallgriffe, die dem Möbelstück einen Hauch von Eleganz und Raffinesse verleihen. Das Gesamtdesign der Kommode ist schlank und minimalistisch, mit einem Schwerpunkt auf klaren Linien und einfachen Formen. Eine moderne, glamouröse Kommode ist eine schöne Ergänzung für jedes Schlafzimmer und verleiht dem Raum einen Hauch von Luxus und Raffinesse. Die klaren Linien, die metallischen Oberflächen und die glamourösen Akzente sorgen für einen modernen und eleganten Look, der eine Vielzahl von Einrichtungsstilen ergänzen kann.", - "en": undefined, - "en-GB": "A modern glam dresser is a stylish and elegant piece of furniture that combines modern design with glamorous accents. It features clean lines, sleek surfaces, and metallic finishes, creating a chic and sophisticated look that adds a touch of luxury to any bedroom. The dresser is made of high-quality materials. The drawers are spacious and easy to open and close, providing ample storage space for clothing, accessories, and other items. The dresser also features glamorous metal accents handles, adding a touch of elegance and sophistication to the piece. The overall design of the dresser is sleek and minimalist, with an emphasis on clean lines and simple shapes. A modern glam dresser can be a beautiful addition to any bedroom, adding a touch of luxury and sophistication to the space. Its clean lines, metallic finishes, and glamorous accents create a modern and elegant look that can complement a variety of decor styles.", - "en-US": "A modern glam dresser is a stylish and elegant piece of furniture that combines modern design with glamorous accents. It features clean lines, sleek surfaces, and metallic finishes, creating a chic and sophisticated look that adds a touch of luxury to any bedroom. The dresser is made of high-quality materials. The drawers are spacious and easy to open and close, providing ample storage space for clothing, accessories, and other items. The dresser also features glamorous metal accents handles, adding a touch of elegance and sophistication to the piece. The overall design of the dresser is sleek and minimalist, with an emphasis on clean lines and simple shapes. A modern glam dresser can be a beautiful addition to any bedroom, adding a touch of luxury and sophistication to the space. Its clean lines, metallic finishes, and glamorous accents create a modern and elegant look that can complement a variety of decor styles.", - "fr": undefined, - }, - "key": "modern-glam-dresser", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- 3 large drawers -- suede and nickel finish on drawer handles -- assembly on site", - "en-GB": "- 3 large drawers -- suede and nickel finish on drawer handles -- assembly on site", - "en-US": "- 3 large drawers -- suede and nickel finish on drawer handles -- assembly on site", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Eine moderne glamouröse Kommode ist ein stilvolles und elegantes Möbelstück, das modernes Design mit glamourösen Akzenten verbindet. Sie zeichnet sich durch klare Linien, glatte Oberflächen und Metallic-Finish aus, wodurch ein schickes und anspruchsvolles Aussehen entsteht, das jedem Schlafzimmer einen Hauch von Luxus verleiht. Die Kommode ist aus hochwertigen Materialien gefertigt. Die Schubladen sind geräumig und lassen sich leicht öffnen und schließen und bieten reichlich Stauraum für Kleidung, Accessoires und andere Gegenstände. Die Kommode verfügt außerdem über glamouröse Metallgriffe, die dem Möbelstück einen Hauch von Eleganz und Raffinesse verleihen. Das Gesamtdesign der Kommode ist schlank und minimalistisch, mit einem Schwerpunkt auf klaren Linien und einfachen Formen. Eine moderne, glamouröse Kommode ist eine schöne Ergänzung für jedes Schlafzimmer und verleiht dem Raum einen Hauch von Luxus und Raffinesse. Die klaren Linien, die metallischen Oberflächen und die glamourösen Akzente sorgen für einen modernen und eleganten Look, der eine Vielzahl von Einrichtungsstilen ergänzen kann.", + "en": undefined, + "en-GB": "A modern glam dresser is a stylish and elegant piece of furniture that combines modern design with glamorous accents. It features clean lines, sleek surfaces, and metallic finishes, creating a chic and sophisticated look that adds a touch of luxury to any bedroom. The dresser is made of high-quality materials. The drawers are spacious and easy to open and close, providing ample storage space for clothing, accessories, and other items. The dresser also features glamorous metal accents handles, adding a touch of elegance and sophistication to the piece. The overall design of the dresser is sleek and minimalist, with an emphasis on clean lines and simple shapes. A modern glam dresser can be a beautiful addition to any bedroom, adding a touch of luxury and sophistication to the space. Its clean lines, metallic finishes, and glamorous accents create a modern and elegant look that can complement a variety of decor styles.", + "en-US": "A modern glam dresser is a stylish and elegant piece of furniture that combines modern design with glamorous accents. It features clean lines, sleek surfaces, and metallic finishes, creating a chic and sophisticated look that adds a touch of luxury to any bedroom. The dresser is made of high-quality materials. The drawers are spacious and easy to open and close, providing ample storage space for clothing, accessories, and other items. The dresser also features glamorous metal accents handles, adding a touch of elegance and sophistication to the piece. The overall design of the dresser is sleek and minimalist, with an emphasis on clean lines and simple shapes. A modern glam dresser can be a beautiful addition to any bedroom, adding a touch of luxury and sophistication to the space. Its clean lines, metallic finishes, and glamorous accents create a modern and elegant look that can complement a variety of decor styles.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "key": "modern-glam-dresser", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- 3 large drawers + - suede and nickel finish on drawer handles + - assembly on site", + "en-GB": "- 3 large drawers + - suede and nickel finish on drawer handles + - assembly on site", + "en-US": "- 3 large drawers + - suede and nickel finish on drawer handles + - assembly on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.2.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 179900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 179900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 179900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MGD-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.2.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Moderne glamouröse Kommode", + "en": undefined, + "en-GB": "Modern Glam Dresser", + "en-US": "Modern Glam Dresser", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 179900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 179900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "moderne-glamourse-kommode", + "en": undefined, + "en-GB": "modern-glam-dresser", + "en-US": "modern-glam-dresser", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 179900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MGD-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Moderne glamouröse Kommode", - "en": undefined, - "en-GB": "Modern Glam Dresser", - "en-US": "Modern Glam Dresser", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "moderne-glamourse-kommode", - "en": undefined, - "en-GB": "modern-glam-dresser", - "en-US": "modern-glam-dresser", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a modernGlamDresser preset when built for graphql`, () => { const modernGlamDresserPresetGraphql = modernGlamDresser().buildGraphql(); expect(modernGlamDresserPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A modern glam dresser is a stylish and elegant piece of furniture that combines modern design with glamorous accents. It features clean lines, sleek surfaces, and metallic finishes, creating a chic and sophisticated look that adds a touch of luxury to any bedroom. The dresser is made of high-quality materials. The drawers are spacious and easy to open and close, providing ample storage space for clothing, accessories, and other items. The dresser also features glamorous metal accents handles, adding a touch of elegance and sophistication to the piece. The overall design of the dresser is sleek and minimalist, with an emphasis on clean lines and simple shapes. A modern glam dresser can be a beautiful addition to any bedroom, adding a touch of luxury and sophistication to the space. Its clean lines, metallic finishes, and glamorous accents create a modern and elegant look that can complement a variety of decor styles.", - }, - { - "locale": "de-DE", - "value": "Eine moderne glamouröse Kommode ist ein stilvolles und elegantes Möbelstück, das modernes Design mit glamourösen Akzenten verbindet. Sie zeichnet sich durch klare Linien, glatte Oberflächen und Metallic-Finish aus, wodurch ein schickes und anspruchsvolles Aussehen entsteht, das jedem Schlafzimmer einen Hauch von Luxus verleiht. Die Kommode ist aus hochwertigen Materialien gefertigt. Die Schubladen sind geräumig und lassen sich leicht öffnen und schließen und bieten reichlich Stauraum für Kleidung, Accessoires und andere Gegenstände. Die Kommode verfügt außerdem über glamouröse Metallgriffe, die dem Möbelstück einen Hauch von Eleganz und Raffinesse verleihen. Das Gesamtdesign der Kommode ist schlank und minimalistisch, mit einem Schwerpunkt auf klaren Linien und einfachen Formen. Eine moderne, glamouröse Kommode ist eine schöne Ergänzung für jedes Schlafzimmer und verleiht dem Raum einen Hauch von Luxus und Raffinesse. Die klaren Linien, die metallischen Oberflächen und die glamourösen Akzente sorgen für einen modernen und eleganten Look, der eine Vielzahl von Einrichtungsstilen ergänzen kann.", - }, - { - "locale": "en-US", - "value": "A modern glam dresser is a stylish and elegant piece of furniture that combines modern design with glamorous accents. It features clean lines, sleek surfaces, and metallic finishes, creating a chic and sophisticated look that adds a touch of luxury to any bedroom. The dresser is made of high-quality materials. The drawers are spacious and easy to open and close, providing ample storage space for clothing, accessories, and other items. The dresser also features glamorous metal accents handles, adding a touch of elegance and sophistication to the piece. The overall design of the dresser is sleek and minimalist, with an emphasis on clean lines and simple shapes. A modern glam dresser can be a beautiful addition to any bedroom, adding a touch of luxury and sophistication to the space. Its clean lines, metallic finishes, and glamorous accents create a modern and elegant look that can complement a variety of decor styles.", - }, - ], - "key": "modern-glam-dresser", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Brown:#a52a2a","en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site","en-GB":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site","de-DE":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.1.jpeg", - }, { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.2.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 179900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A modern glam dresser is a stylish and elegant piece of furniture that combines modern design with glamorous accents. It features clean lines, sleek surfaces, and metallic finishes, creating a chic and sophisticated look that adds a touch of luxury to any bedroom. The dresser is made of high-quality materials. The drawers are spacious and easy to open and close, providing ample storage space for clothing, accessories, and other items. The dresser also features glamorous metal accents handles, adding a touch of elegance and sophistication to the piece. The overall design of the dresser is sleek and minimalist, with an emphasis on clean lines and simple shapes. A modern glam dresser can be a beautiful addition to any bedroom, adding a touch of luxury and sophistication to the space. Its clean lines, metallic finishes, and glamorous accents create a modern and elegant look that can complement a variety of decor styles.", }, + { + "locale": "de-DE", + "value": "Eine moderne glamouröse Kommode ist ein stilvolles und elegantes Möbelstück, das modernes Design mit glamourösen Akzenten verbindet. Sie zeichnet sich durch klare Linien, glatte Oberflächen und Metallic-Finish aus, wodurch ein schickes und anspruchsvolles Aussehen entsteht, das jedem Schlafzimmer einen Hauch von Luxus verleiht. Die Kommode ist aus hochwertigen Materialien gefertigt. Die Schubladen sind geräumig und lassen sich leicht öffnen und schließen und bieten reichlich Stauraum für Kleidung, Accessoires und andere Gegenstände. Die Kommode verfügt außerdem über glamouröse Metallgriffe, die dem Möbelstück einen Hauch von Eleganz und Raffinesse verleihen. Das Gesamtdesign der Kommode ist schlank und minimalistisch, mit einem Schwerpunkt auf klaren Linien und einfachen Formen. Eine moderne, glamouröse Kommode ist eine schöne Ergänzung für jedes Schlafzimmer und verleiht dem Raum einen Hauch von Luxus und Raffinesse. Die klaren Linien, die metallischen Oberflächen und die glamourösen Akzente sorgen für einen modernen und eleganten Look, der eine Vielzahl von Einrichtungsstilen ergänzen kann.", + }, + { + "locale": "en-US", + "value": "A modern glam dresser is a stylish and elegant piece of furniture that combines modern design with glamorous accents. It features clean lines, sleek surfaces, and metallic finishes, creating a chic and sophisticated look that adds a touch of luxury to any bedroom. The dresser is made of high-quality materials. The drawers are spacious and easy to open and close, providing ample storage space for clothing, accessories, and other items. The dresser also features glamorous metal accents handles, adding a touch of elegance and sophistication to the piece. The overall design of the dresser is sleek and minimalist, with an emphasis on clean lines and simple shapes. A modern glam dresser can be a beautiful addition to any bedroom, adding a touch of luxury and sophistication to the space. Its clean lines, metallic finishes, and glamorous accents create a modern and elegant look that can complement a variety of decor styles.", + }, + ], + "key": "modern-glam-dresser", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Brown:#a52a2a","en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site","en-GB":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site","de-DE":"- 3 large drawers\\n- suede and nickel finish on drawer handles\\n- assembly on site"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.2.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Glam_Dresser-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 179900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 179900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "179900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 179900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MGD-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 179900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Modern Glam Dresser", + }, + { + "locale": "de-DE", + "value": "Moderne glamouröse Kommode", }, + { + "locale": "en-US", + "value": "Modern Glam Dresser", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 179900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "modern-glam-dresser", + }, + { + "locale": "de-DE", + "value": "moderne-glamourse-kommode", + }, + { + "locale": "en-US", + "value": "modern-glam-dresser", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MGD-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Modern Glam Dresser", - }, - { - "locale": "de-DE", - "value": "Moderne glamouröse Kommode", - }, - { - "locale": "en-US", - "value": "Modern Glam Dresser", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "modern-glam-dresser", - }, - { - "locale": "de-DE", - "value": "moderne-glamourse-kommode", - }, - { - "locale": "en-US", - "value": "modern-glam-dresser", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table.spec.ts index b9054d885..843198de4 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-gold-coffee-table.spec.ts @@ -6,396 +6,396 @@ describe(`with modernGoldCoffeeTable preset`, () => { const modernGoldCoffeeTablePreset = modernGoldCoffeeTable().build(); expect(modernGoldCoffeeTablePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "tables", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der moderne goldene Couchtisch mit 2 Ebenen aus Quarzplatten ist ein atemberaubendes und stilvolles Möbelstück, das jedes Wohnzimmer oder jeden Sitzbereich aufwerten kann. Der Tisch zeichnet sich durch ein schlankes und stromlinienförmiges Design aus, mit klaren Linien und minimalistischen Details. Der Couchtisch verfügt über ein robustes Metallgestell, das in einer luxuriösen Goldfarbe ausgeführt ist und einen Hauch von Raffinesse und Glamour vermittelt. Das Gestell ist so konzipiert, dass es zwei Ebenen von Tischplatten trägt, die beide aus hochwertigem Quarzmaterial bestehen. Die Quarz-Tischplatten sind rechteckig geschnitten und haben eine glatte und glänzende Oberfläche, die dem Tisch einen Hauch von Eleganz verleiht. Die zwei Ebenen der Tischplatten bieten reichlich Ablage- und Ausstellungsfläche, so dass Sie dekorative Gegenstände wie Bücher, Kerzen oder Vasen präsentieren können, während Sie gleichzeitig genügend Platz für Getränke und Snacks haben. Das zweistufige Design verleiht dem Tisch auch visuelles Interesse und Dimensionen und schafft einen einzigartigen und auffälligen Look. Der moderne Couchtisch in Gold ist ein vielseitiges Möbelstück, das zu einer Reihe von Einrichtungsstilen passt, von modern und minimalistisch bis hin zu traditionell und eklektisch. Er kann mit einer Vielzahl von Sitzgelegenheiten kombiniert werden, von Sofas und Stühlen bis hin zu Bänken und Hockern, um einen zusammenhängenden und stilvollen Wohnbereich zu schaffen. Insgesamt ist ein moderner goldener Couchtisch ein schickes und elegantes Möbelstück, das jedem Wohnzimmer oder jeder Sitzecke einen Hauch von Luxus und Raffinesse verleihen kann. Sein schlankes Design, die hochwertigen Materialien und die praktischen Funktionen machen ihn zu einer funktionalen und stilvollen Wahl für jedes Zuhause.", - "en": undefined, - "en-GB": "A modern gold coffee table with 2 tiers of quartz table tops is a stunning and stylish piece of furniture that can elevate the look of any living room or sitting area. The table is characterized by a sleek and streamlined design, with clean lines and minimalistic details. The coffee table features a sturdy metal frame that is finished in a luxurious gold color, providing a touch of sophistication and glamour. The frame is designed to support two tiers of table tops, both made of high-quality quartz material. The quartz table tops are cut in a rectangular shape, with a smooth and glossy surface that adds a touch of elegance to the table. The two tiers of table tops provide ample storage and display space, allowing you to showcase decorative items such as books, candles, or vases, while still providing plenty of room for drinks and snacks. The two-tier design also adds visual interest and dimension to the table, creating a unique and eye-catching look. The modern gold coffee table is a versatile piece of furniture that can complement a range of interior design styles, from contemporary and minimalist to more traditional and eclectic. It can be paired with a variety of seating options, from sofas and chairs to benches and stools, to create a cohesive and stylish living space. Overall, a modern gold coffee table is a chic and elegant piece of furniture that can add a touch of luxury and sophistication to any living room or sitting area. Its sleek design, high-quality materials, and practical features make it a functional and stylish choice for any home.", - "en-US": "A modern gold coffee table with 2 tiers of quartz table tops is a stunning and stylish piece of furniture that can elevate the look of any living room or sitting area. The table is characterized by a sleek and streamlined design, with clean lines and minimalistic details. The coffee table features a sturdy metal frame that is finished in a luxurious gold color, providing a touch of sophistication and glamour. The frame is designed to support two tiers of table tops, both made of high-quality quartz material. The quartz table tops are cut in a rectangular shape, with a smooth and glossy surface that adds a touch of elegance to the table. The two tiers of table tops provide ample storage and display space, allowing you to showcase decorative items such as books, candles, or vases, while still providing plenty of room for drinks and snacks. The two-tier design also adds visual interest and dimension to the table, creating a unique and eye-catching look. The modern gold coffee table is a versatile piece of furniture that can complement a range of interior design styles, from contemporary and minimalist to more traditional and eclectic. It can be paired with a variety of seating options, from sofas and chairs to benches and stools, to create a cohesive and stylish living space. Overall, a modern gold coffee table is a chic and elegant piece of furniture that can add a touch of luxury and sophistication to any living room or sitting area. Its sleek design, high-quality materials, and practical features make it a functional and stylish choice for any home.", - "fr": undefined, - }, - "key": "modern-gold-coffee-table", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Length: 5 feet -- Width: 3 feet -- Height: 2 feet -- Tables made of plastic laminate on manufactured wood -- Gold finish on legs -- Preassembled", - "en-GB": "- Length: 5 feet -- Width: 3 feet -- Height: 2 feet -- Tables made of plastic laminate on manufactured wood -- Gold finish on legs -- Preassembled", - "en-US": "- Length: 5 feet -- Width: 3 feet -- Height: 2 feet -- Tables made of plastic laminate on manufactured wood -- Gold finish on legs -- Preassembled", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.2.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "categories": [ + { + "key": "tables", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der moderne goldene Couchtisch mit 2 Ebenen aus Quarzplatten ist ein atemberaubendes und stilvolles Möbelstück, das jedes Wohnzimmer oder jeden Sitzbereich aufwerten kann. Der Tisch zeichnet sich durch ein schlankes und stromlinienförmiges Design aus, mit klaren Linien und minimalistischen Details. Der Couchtisch verfügt über ein robustes Metallgestell, das in einer luxuriösen Goldfarbe ausgeführt ist und einen Hauch von Raffinesse und Glamour vermittelt. Das Gestell ist so konzipiert, dass es zwei Ebenen von Tischplatten trägt, die beide aus hochwertigem Quarzmaterial bestehen. Die Quarz-Tischplatten sind rechteckig geschnitten und haben eine glatte und glänzende Oberfläche, die dem Tisch einen Hauch von Eleganz verleiht. Die zwei Ebenen der Tischplatten bieten reichlich Ablage- und Ausstellungsfläche, so dass Sie dekorative Gegenstände wie Bücher, Kerzen oder Vasen präsentieren können, während Sie gleichzeitig genügend Platz für Getränke und Snacks haben. Das zweistufige Design verleiht dem Tisch auch visuelles Interesse und Dimensionen und schafft einen einzigartigen und auffälligen Look. Der moderne Couchtisch in Gold ist ein vielseitiges Möbelstück, das zu einer Reihe von Einrichtungsstilen passt, von modern und minimalistisch bis hin zu traditionell und eklektisch. Er kann mit einer Vielzahl von Sitzgelegenheiten kombiniert werden, von Sofas und Stühlen bis hin zu Bänken und Hockern, um einen zusammenhängenden und stilvollen Wohnbereich zu schaffen. Insgesamt ist ein moderner goldener Couchtisch ein schickes und elegantes Möbelstück, das jedem Wohnzimmer oder jeder Sitzecke einen Hauch von Luxus und Raffinesse verleihen kann. Sein schlankes Design, die hochwertigen Materialien und die praktischen Funktionen machen ihn zu einer funktionalen und stilvollen Wahl für jedes Zuhause.", + "en": undefined, + "en-GB": "A modern gold coffee table with 2 tiers of quartz table tops is a stunning and stylish piece of furniture that can elevate the look of any living room or sitting area. The table is characterized by a sleek and streamlined design, with clean lines and minimalistic details. The coffee table features a sturdy metal frame that is finished in a luxurious gold color, providing a touch of sophistication and glamour. The frame is designed to support two tiers of table tops, both made of high-quality quartz material. The quartz table tops are cut in a rectangular shape, with a smooth and glossy surface that adds a touch of elegance to the table. The two tiers of table tops provide ample storage and display space, allowing you to showcase decorative items such as books, candles, or vases, while still providing plenty of room for drinks and snacks. The two-tier design also adds visual interest and dimension to the table, creating a unique and eye-catching look. The modern gold coffee table is a versatile piece of furniture that can complement a range of interior design styles, from contemporary and minimalist to more traditional and eclectic. It can be paired with a variety of seating options, from sofas and chairs to benches and stools, to create a cohesive and stylish living space. Overall, a modern gold coffee table is a chic and elegant piece of furniture that can add a touch of luxury and sophistication to any living room or sitting area. Its sleek design, high-quality materials, and practical features make it a functional and stylish choice for any home.", + "en-US": "A modern gold coffee table with 2 tiers of quartz table tops is a stunning and stylish piece of furniture that can elevate the look of any living room or sitting area. The table is characterized by a sleek and streamlined design, with clean lines and minimalistic details. The coffee table features a sturdy metal frame that is finished in a luxurious gold color, providing a touch of sophistication and glamour. The frame is designed to support two tiers of table tops, both made of high-quality quartz material. The quartz table tops are cut in a rectangular shape, with a smooth and glossy surface that adds a touch of elegance to the table. The two tiers of table tops provide ample storage and display space, allowing you to showcase decorative items such as books, candles, or vases, while still providing plenty of room for drinks and snacks. The two-tier design also adds visual interest and dimension to the table, creating a unique and eye-catching look. The modern gold coffee table is a versatile piece of furniture that can complement a range of interior design styles, from contemporary and minimalist to more traditional and eclectic. It can be paired with a variety of seating options, from sofas and chairs to benches and stools, to create a cohesive and stylish living space. Overall, a modern gold coffee table is a chic and elegant piece of furniture that can add a touch of luxury and sophistication to any living room or sitting area. Its sleek design, high-quality materials, and practical features make it a functional and stylish choice for any home.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.3.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "key": "modern-gold-coffee-table", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Length: 5 feet + - Width: 3 feet + - Height: 2 feet + - Tables made of plastic laminate on manufactured wood + - Gold finish on legs + - Preassembled", + "en-GB": "- Length: 5 feet + - Width: 3 feet + - Height: 2 feet + - Tables made of plastic laminate on manufactured wood + - Gold finish on legs + - Preassembled", + "en-US": "- Length: 5 feet + - Width: 3 feet + - Height: 2 feet + - Tables made of plastic laminate on manufactured wood + - Gold finish on legs + - Preassembled", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.2.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.3.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.4.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 25999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 25999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 25999, + "currencyCode": "USD", + }, + }, + ], + "sku": "GMCT-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Moderner Gold Couchtisch", + "en": undefined, + "en-GB": "Modern Gold Coffee Table", + "en-US": "Modern Gold Coffee Table", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.4.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 25999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 25999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "moderner-couchtisch-in-gold", + "en": undefined, + "en-GB": "modern-gold-coffee-table", + "en-US": "modern-gold-coffee-table", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 25999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "GMCT-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Moderner Gold Couchtisch", - "en": undefined, - "en-GB": "Modern Gold Coffee Table", - "en-US": "Modern Gold Coffee Table", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "moderner-couchtisch-in-gold", - "en": undefined, - "en-GB": "modern-gold-coffee-table", - "en-US": "modern-gold-coffee-table", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a modernGoldCoffeeTable preset when built for graphql`, () => { const modernGoldCoffeeTablePresetGraphql = modernGoldCoffeeTable().buildGraphql(); expect(modernGoldCoffeeTablePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "tables", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A modern gold coffee table with 2 tiers of quartz table tops is a stunning and stylish piece of furniture that can elevate the look of any living room or sitting area. The table is characterized by a sleek and streamlined design, with clean lines and minimalistic details. The coffee table features a sturdy metal frame that is finished in a luxurious gold color, providing a touch of sophistication and glamour. The frame is designed to support two tiers of table tops, both made of high-quality quartz material. The quartz table tops are cut in a rectangular shape, with a smooth and glossy surface that adds a touch of elegance to the table. The two tiers of table tops provide ample storage and display space, allowing you to showcase decorative items such as books, candles, or vases, while still providing plenty of room for drinks and snacks. The two-tier design also adds visual interest and dimension to the table, creating a unique and eye-catching look. The modern gold coffee table is a versatile piece of furniture that can complement a range of interior design styles, from contemporary and minimalist to more traditional and eclectic. It can be paired with a variety of seating options, from sofas and chairs to benches and stools, to create a cohesive and stylish living space. Overall, a modern gold coffee table is a chic and elegant piece of furniture that can add a touch of luxury and sophistication to any living room or sitting area. Its sleek design, high-quality materials, and practical features make it a functional and stylish choice for any home.", - }, - { - "locale": "de-DE", - "value": "Der moderne goldene Couchtisch mit 2 Ebenen aus Quarzplatten ist ein atemberaubendes und stilvolles Möbelstück, das jedes Wohnzimmer oder jeden Sitzbereich aufwerten kann. Der Tisch zeichnet sich durch ein schlankes und stromlinienförmiges Design aus, mit klaren Linien und minimalistischen Details. Der Couchtisch verfügt über ein robustes Metallgestell, das in einer luxuriösen Goldfarbe ausgeführt ist und einen Hauch von Raffinesse und Glamour vermittelt. Das Gestell ist so konzipiert, dass es zwei Ebenen von Tischplatten trägt, die beide aus hochwertigem Quarzmaterial bestehen. Die Quarz-Tischplatten sind rechteckig geschnitten und haben eine glatte und glänzende Oberfläche, die dem Tisch einen Hauch von Eleganz verleiht. Die zwei Ebenen der Tischplatten bieten reichlich Ablage- und Ausstellungsfläche, so dass Sie dekorative Gegenstände wie Bücher, Kerzen oder Vasen präsentieren können, während Sie gleichzeitig genügend Platz für Getränke und Snacks haben. Das zweistufige Design verleiht dem Tisch auch visuelles Interesse und Dimensionen und schafft einen einzigartigen und auffälligen Look. Der moderne Couchtisch in Gold ist ein vielseitiges Möbelstück, das zu einer Reihe von Einrichtungsstilen passt, von modern und minimalistisch bis hin zu traditionell und eklektisch. Er kann mit einer Vielzahl von Sitzgelegenheiten kombiniert werden, von Sofas und Stühlen bis hin zu Bänken und Hockern, um einen zusammenhängenden und stilvollen Wohnbereich zu schaffen. Insgesamt ist ein moderner goldener Couchtisch ein schickes und elegantes Möbelstück, das jedem Wohnzimmer oder jeder Sitzecke einen Hauch von Luxus und Raffinesse verleihen kann. Sein schlankes Design, die hochwertigen Materialien und die praktischen Funktionen machen ihn zu einer funktionalen und stilvollen Wahl für jedes Zuhause.", - }, - { - "locale": "en-US", - "value": "A modern gold coffee table with 2 tiers of quartz table tops is a stunning and stylish piece of furniture that can elevate the look of any living room or sitting area. The table is characterized by a sleek and streamlined design, with clean lines and minimalistic details. The coffee table features a sturdy metal frame that is finished in a luxurious gold color, providing a touch of sophistication and glamour. The frame is designed to support two tiers of table tops, both made of high-quality quartz material. The quartz table tops are cut in a rectangular shape, with a smooth and glossy surface that adds a touch of elegance to the table. The two tiers of table tops provide ample storage and display space, allowing you to showcase decorative items such as books, candles, or vases, while still providing plenty of room for drinks and snacks. The two-tier design also adds visual interest and dimension to the table, creating a unique and eye-catching look. The modern gold coffee table is a versatile piece of furniture that can complement a range of interior design styles, from contemporary and minimalist to more traditional and eclectic. It can be paired with a variety of seating options, from sofas and chairs to benches and stools, to create a cohesive and stylish living space. Overall, a modern gold coffee table is a chic and elegant piece of furniture that can add a touch of luxury and sophistication to any living room or sitting area. Its sleek design, high-quality materials, and practical features make it a functional and stylish choice for any home.", - }, - ], - "key": "modern-gold-coffee-table", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled","en-GB":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled","de-DE":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled"}", - }, - ], - "images": [ { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.2.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.3.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.1.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.4.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 25999, - "currencyCode": "EUR", + "categories": [ + { + "key": "tables", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", }, + { + "key": "the-modernist", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A modern gold coffee table with 2 tiers of quartz table tops is a stunning and stylish piece of furniture that can elevate the look of any living room or sitting area. The table is characterized by a sleek and streamlined design, with clean lines and minimalistic details. The coffee table features a sturdy metal frame that is finished in a luxurious gold color, providing a touch of sophistication and glamour. The frame is designed to support two tiers of table tops, both made of high-quality quartz material. The quartz table tops are cut in a rectangular shape, with a smooth and glossy surface that adds a touch of elegance to the table. The two tiers of table tops provide ample storage and display space, allowing you to showcase decorative items such as books, candles, or vases, while still providing plenty of room for drinks and snacks. The two-tier design also adds visual interest and dimension to the table, creating a unique and eye-catching look. The modern gold coffee table is a versatile piece of furniture that can complement a range of interior design styles, from contemporary and minimalist to more traditional and eclectic. It can be paired with a variety of seating options, from sofas and chairs to benches and stools, to create a cohesive and stylish living space. Overall, a modern gold coffee table is a chic and elegant piece of furniture that can add a touch of luxury and sophistication to any living room or sitting area. Its sleek design, high-quality materials, and practical features make it a functional and stylish choice for any home.", + }, + { + "locale": "de-DE", + "value": "Der moderne goldene Couchtisch mit 2 Ebenen aus Quarzplatten ist ein atemberaubendes und stilvolles Möbelstück, das jedes Wohnzimmer oder jeden Sitzbereich aufwerten kann. Der Tisch zeichnet sich durch ein schlankes und stromlinienförmiges Design aus, mit klaren Linien und minimalistischen Details. Der Couchtisch verfügt über ein robustes Metallgestell, das in einer luxuriösen Goldfarbe ausgeführt ist und einen Hauch von Raffinesse und Glamour vermittelt. Das Gestell ist so konzipiert, dass es zwei Ebenen von Tischplatten trägt, die beide aus hochwertigem Quarzmaterial bestehen. Die Quarz-Tischplatten sind rechteckig geschnitten und haben eine glatte und glänzende Oberfläche, die dem Tisch einen Hauch von Eleganz verleiht. Die zwei Ebenen der Tischplatten bieten reichlich Ablage- und Ausstellungsfläche, so dass Sie dekorative Gegenstände wie Bücher, Kerzen oder Vasen präsentieren können, während Sie gleichzeitig genügend Platz für Getränke und Snacks haben. Das zweistufige Design verleiht dem Tisch auch visuelles Interesse und Dimensionen und schafft einen einzigartigen und auffälligen Look. Der moderne Couchtisch in Gold ist ein vielseitiges Möbelstück, das zu einer Reihe von Einrichtungsstilen passt, von modern und minimalistisch bis hin zu traditionell und eklektisch. Er kann mit einer Vielzahl von Sitzgelegenheiten kombiniert werden, von Sofas und Stühlen bis hin zu Bänken und Hockern, um einen zusammenhängenden und stilvollen Wohnbereich zu schaffen. Insgesamt ist ein moderner goldener Couchtisch ein schickes und elegantes Möbelstück, das jedem Wohnzimmer oder jeder Sitzecke einen Hauch von Luxus und Raffinesse verleihen kann. Sein schlankes Design, die hochwertigen Materialien und die praktischen Funktionen machen ihn zu einer funktionalen und stilvollen Wahl für jedes Zuhause.", + }, + { + "locale": "en-US", + "value": "A modern gold coffee table with 2 tiers of quartz table tops is a stunning and stylish piece of furniture that can elevate the look of any living room or sitting area. The table is characterized by a sleek and streamlined design, with clean lines and minimalistic details. The coffee table features a sturdy metal frame that is finished in a luxurious gold color, providing a touch of sophistication and glamour. The frame is designed to support two tiers of table tops, both made of high-quality quartz material. The quartz table tops are cut in a rectangular shape, with a smooth and glossy surface that adds a touch of elegance to the table. The two tiers of table tops provide ample storage and display space, allowing you to showcase decorative items such as books, candles, or vases, while still providing plenty of room for drinks and snacks. The two-tier design also adds visual interest and dimension to the table, creating a unique and eye-catching look. The modern gold coffee table is a versatile piece of furniture that can complement a range of interior design styles, from contemporary and minimalist to more traditional and eclectic. It can be paired with a variety of seating options, from sofas and chairs to benches and stools, to create a cohesive and stylish living space. Overall, a modern gold coffee table is a chic and elegant piece of furniture that can add a touch of luxury and sophistication to any living room or sitting area. Its sleek design, high-quality materials, and practical features make it a functional and stylish choice for any home.", + }, + ], + "key": "modern-gold-coffee-table", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Gold:#FFD700","en-GB":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled","en-GB":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled","de-DE":"- Length: 5 feet\\n- Width: 3 feet\\n- Height: 2 feet\\n- Tables made of plastic laminate on manufactured wood\\n- Gold finish on legs\\n- Preassembled"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.2.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.3.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Gold_Coffee_Table-1.4.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 25999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 25999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "25999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 25999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "GMCT-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 25999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Modern Gold Coffee Table", }, + { + "locale": "de-DE", + "value": "Moderner Gold Couchtisch", + }, + { + "locale": "en-US", + "value": "Modern Gold Coffee Table", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 25999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "modern-gold-coffee-table", + }, + { + "locale": "de-DE", + "value": "moderner-couchtisch-in-gold", + }, + { + "locale": "en-US", + "value": "modern-gold-coffee-table", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "GMCT-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Modern Gold Coffee Table", - }, - { - "locale": "de-DE", - "value": "Moderner Gold Couchtisch", - }, - { - "locale": "en-US", - "value": "Modern Gold Coffee Table", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "modern-gold-coffee-table", - }, - { - "locale": "de-DE", - "value": "moderner-couchtisch-in-gold", - }, - { - "locale": "en-US", - "value": "modern-gold-coffee-table", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting.spec.ts index a6578944e..e4c490e4c 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-landscape-painting.spec.ts @@ -6,311 +6,311 @@ describe(`with modernLandscapePainting preset`, () => { const modernLandscapePaintingPreset = modernLandscapePainting().build(); expect(modernLandscapePaintingPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein modernes kubistisches Landschaftsgemälde ist ein eindrucksvolles und dynamisches Kunstwerk, das Elemente der traditionellen Landschaftsmalerei mit dem gebrochenen und abstrakten Stil des Kubismus verbindet. Das Gemälde wurde mit Ölfarben auf Leinwand gemalt und weist eine Reihe kräftiger Farben und geometrischer Formen auf. Die Komposition des Gemäldes ist eine Landschaftsszene, die eine natürliche Umgebung darstellt. Die Szene ist jedoch fragmentiert und abstrahiert, mit sich überlagernden Farbflächen und geometrischen Formen, die die Landschaft verzerren und zerbrechen. Die Farbgebung des Gemäldes ist lebhaft und kräftig, mit starken Kontrasten zwischen hellen und dunklen Bereichen. Der Künstler hat möglicherweise eine Reihe von Techniken angewandt, wie z. B. Schichtung, Überblendung oder Tupfen, um ein dynamisches und visuell interessantes Werk zu schaffen. Der moderne und abstrakte Charakter des Gemäldes macht es zu einer perfekten Ergänzung für zeitgenössische Innenarchitekturen. Insgesamt ist ein modernes kubistisches Landschaftsgemälde ein kühnes und innovatives Kunstwerk, das jedem Raum ein Gefühl von Energie und Dynamik verleihen kann. Die fragmentierte und abstrahierte Komposition lädt den Betrachter dazu ein, das Gemälde auf seine eigene Weise zu interpretieren und mit ihm in Verbindung zu treten, während die Verwendung kräftiger Farben und geometrischer Formen ein Gefühl von Dramatik und Aufregung erzeugt.", - "en": undefined, - "en-GB": "A modern cubist landscape painting is a striking and dynamic work of art that combines elements of traditional landscape painting with the fractured and abstract style of cubism. The painting is created with oil paints on canvas, and features a range of bold colors and geometric shapes. The composition of the painting is a landscape scene, depicting a natural setting. However, the scene is fragmented and abstracted, with overlapping planes of color and geometric shapes that distort and fracture the landscape. The use of color in the painting is vibrant and bold, with strong contrasts between light and dark areas. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The modern and abstract nature of the painting makes it a perfect addition to contemporary interior design schemes. Overall, a modern cubist landscape painting is a bold and innovative work of art that can add a sense of energy and dynamism to any space. Its fragmented and abstracted composition invites viewers to interpret and connect with the painting in their own way, while the use of bold colors and geometric shapes creates a sense of drama and excitement.", - "en-US": "A modern cubist landscape painting is a striking and dynamic work of art that combines elements of traditional landscape painting with the fractured and abstract style of cubism. The painting is created with oil paints on canvas, and features a range of bold colors and geometric shapes. The composition of the painting is a landscape scene, depicting a natural setting. However, the scene is fragmented and abstracted, with overlapping planes of color and geometric shapes that distort and fracture the landscape. The use of color in the painting is vibrant and bold, with strong contrasts between light and dark areas. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The modern and abstract nature of the painting makes it a perfect addition to contemporary interior design schemes. Overall, a modern cubist landscape painting is a bold and innovative work of art that can add a sense of energy and dynamism to any space. Its fragmented and abstracted composition invites viewers to interpret and connect with the painting in their own way, while the use of bold colors and geometric shapes creates a sense of drama and excitement.", - "fr": undefined, - }, - "key": "modern-landscape-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Öl auf Leinwand -- Rahmen nicht im Lieferumfang enthalten -- 3 Fuß mal 4 Fuß", - "en-GB": "- Oil on canvas -- Frame not included -- 3ft by 4ft", - "en-US": "- Oil on canvas -- Frame not included -- 3ft by 4ft", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein modernes kubistisches Landschaftsgemälde ist ein eindrucksvolles und dynamisches Kunstwerk, das Elemente der traditionellen Landschaftsmalerei mit dem gebrochenen und abstrakten Stil des Kubismus verbindet. Das Gemälde wurde mit Ölfarben auf Leinwand gemalt und weist eine Reihe kräftiger Farben und geometrischer Formen auf. Die Komposition des Gemäldes ist eine Landschaftsszene, die eine natürliche Umgebung darstellt. Die Szene ist jedoch fragmentiert und abstrahiert, mit sich überlagernden Farbflächen und geometrischen Formen, die die Landschaft verzerren und zerbrechen. Die Farbgebung des Gemäldes ist lebhaft und kräftig, mit starken Kontrasten zwischen hellen und dunklen Bereichen. Der Künstler hat möglicherweise eine Reihe von Techniken angewandt, wie z. B. Schichtung, Überblendung oder Tupfen, um ein dynamisches und visuell interessantes Werk zu schaffen. Der moderne und abstrakte Charakter des Gemäldes macht es zu einer perfekten Ergänzung für zeitgenössische Innenarchitekturen. Insgesamt ist ein modernes kubistisches Landschaftsgemälde ein kühnes und innovatives Kunstwerk, das jedem Raum ein Gefühl von Energie und Dynamik verleihen kann. Die fragmentierte und abstrahierte Komposition lädt den Betrachter dazu ein, das Gemälde auf seine eigene Weise zu interpretieren und mit ihm in Verbindung zu treten, während die Verwendung kräftiger Farben und geometrischer Formen ein Gefühl von Dramatik und Aufregung erzeugt.", + "en": undefined, + "en-GB": "A modern cubist landscape painting is a striking and dynamic work of art that combines elements of traditional landscape painting with the fractured and abstract style of cubism. The painting is created with oil paints on canvas, and features a range of bold colors and geometric shapes. The composition of the painting is a landscape scene, depicting a natural setting. However, the scene is fragmented and abstracted, with overlapping planes of color and geometric shapes that distort and fracture the landscape. The use of color in the painting is vibrant and bold, with strong contrasts between light and dark areas. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The modern and abstract nature of the painting makes it a perfect addition to contemporary interior design schemes. Overall, a modern cubist landscape painting is a bold and innovative work of art that can add a sense of energy and dynamism to any space. Its fragmented and abstracted composition invites viewers to interpret and connect with the painting in their own way, while the use of bold colors and geometric shapes creates a sense of drama and excitement.", + "en-US": "A modern cubist landscape painting is a striking and dynamic work of art that combines elements of traditional landscape painting with the fractured and abstract style of cubism. The painting is created with oil paints on canvas, and features a range of bold colors and geometric shapes. The composition of the painting is a landscape scene, depicting a natural setting. However, the scene is fragmented and abstracted, with overlapping planes of color and geometric shapes that distort and fracture the landscape. The use of color in the painting is vibrant and bold, with strong contrasts between light and dark areas. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The modern and abstract nature of the painting makes it a perfect addition to contemporary interior design schemes. Overall, a modern cubist landscape painting is a bold and innovative work of art that can add a sense of energy and dynamism to any space. Its fragmented and abstracted composition invites viewers to interpret and connect with the painting in their own way, while the use of bold colors and geometric shapes creates a sense of drama and excitement.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Himmel blau:#87CEEB", - "en-GB": "Sky Blue:#87CEEB", - "en-US": "Sky Blue:#87CEEB", + "key": "modern-landscape-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Öl auf Leinwand + - Rahmen nicht im Lieferumfang enthalten + - 3 Fuß mal 4 Fuß", + "en-GB": "- Oil on canvas + - Frame not included + - 3ft by 4ft", + "en-US": "- Oil on canvas + - Frame not included + - 3ft by 4ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Himmel blau:#87CEEB", + "en-GB": "Sky Blue:#87CEEB", + "en-US": "Sky Blue:#87CEEB", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5355, + "w": 5313, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Landscape_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5299, + "currencyCode": "USD", + }, + }, + ], + "sku": "MLP-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5355, - "w": 5313, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Moderne Landschaftsmalerei", + "en": undefined, + "en-GB": "Modern Landscape Painting", + "en-US": "Modern Landscape Painting", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Landscape_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "moderne-landschaftsmalerei", + "en": undefined, + "en-GB": "modern-landscape-painting", + "en-US": "modern-landscape-painting", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MLP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Moderne Landschaftsmalerei", - "en": undefined, - "en-GB": "Modern Landscape Painting", - "en-US": "Modern Landscape Painting", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "moderne-landschaftsmalerei", - "en": undefined, - "en-GB": "modern-landscape-painting", - "en-US": "modern-landscape-painting", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a modernLandscapePainting preset when built for graphql`, () => { const modernLandscapePaintingPresetGraphql = modernLandscapePainting().buildGraphql(); expect(modernLandscapePaintingPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A modern cubist landscape painting is a striking and dynamic work of art that combines elements of traditional landscape painting with the fractured and abstract style of cubism. The painting is created with oil paints on canvas, and features a range of bold colors and geometric shapes. The composition of the painting is a landscape scene, depicting a natural setting. However, the scene is fragmented and abstracted, with overlapping planes of color and geometric shapes that distort and fracture the landscape. The use of color in the painting is vibrant and bold, with strong contrasts between light and dark areas. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The modern and abstract nature of the painting makes it a perfect addition to contemporary interior design schemes. Overall, a modern cubist landscape painting is a bold and innovative work of art that can add a sense of energy and dynamism to any space. Its fragmented and abstracted composition invites viewers to interpret and connect with the painting in their own way, while the use of bold colors and geometric shapes creates a sense of drama and excitement.", - }, - { - "locale": "de-DE", - "value": "Ein modernes kubistisches Landschaftsgemälde ist ein eindrucksvolles und dynamisches Kunstwerk, das Elemente der traditionellen Landschaftsmalerei mit dem gebrochenen und abstrakten Stil des Kubismus verbindet. Das Gemälde wurde mit Ölfarben auf Leinwand gemalt und weist eine Reihe kräftiger Farben und geometrischer Formen auf. Die Komposition des Gemäldes ist eine Landschaftsszene, die eine natürliche Umgebung darstellt. Die Szene ist jedoch fragmentiert und abstrahiert, mit sich überlagernden Farbflächen und geometrischen Formen, die die Landschaft verzerren und zerbrechen. Die Farbgebung des Gemäldes ist lebhaft und kräftig, mit starken Kontrasten zwischen hellen und dunklen Bereichen. Der Künstler hat möglicherweise eine Reihe von Techniken angewandt, wie z. B. Schichtung, Überblendung oder Tupfen, um ein dynamisches und visuell interessantes Werk zu schaffen. Der moderne und abstrakte Charakter des Gemäldes macht es zu einer perfekten Ergänzung für zeitgenössische Innenarchitekturen. Insgesamt ist ein modernes kubistisches Landschaftsgemälde ein kühnes und innovatives Kunstwerk, das jedem Raum ein Gefühl von Energie und Dynamik verleihen kann. Die fragmentierte und abstrahierte Komposition lädt den Betrachter dazu ein, das Gemälde auf seine eigene Weise zu interpretieren und mit ihm in Verbindung zu treten, während die Verwendung kräftiger Farben und geometrischer Formen ein Gefühl von Dramatik und Aufregung erzeugt.", - }, - { - "locale": "en-US", - "value": "A modern cubist landscape painting is a striking and dynamic work of art that combines elements of traditional landscape painting with the fractured and abstract style of cubism. The painting is created with oil paints on canvas, and features a range of bold colors and geometric shapes. The composition of the painting is a landscape scene, depicting a natural setting. However, the scene is fragmented and abstracted, with overlapping planes of color and geometric shapes that distort and fracture the landscape. The use of color in the painting is vibrant and bold, with strong contrasts between light and dark areas. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The modern and abstract nature of the painting makes it a perfect addition to contemporary interior design schemes. Overall, a modern cubist landscape painting is a bold and innovative work of art that can add a sense of energy and dynamism to any space. Its fragmented and abstracted composition invites viewers to interpret and connect with the painting in their own way, while the use of bold colors and geometric shapes creates a sense of drama and excitement.", - }, - ], - "key": "modern-landscape-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Oil on canvas\\n- Frame not included\\n- 3ft by 4ft","de-DE":"- Öl auf Leinwand\\n- Rahmen nicht im Lieferumfang enthalten\\n- 3 Fuß mal 4 Fuß","en-US":"- Oil on canvas\\n- Frame not included\\n- 3ft by 4ft"}", - }, - { - "name": "color", - "value": "{"en-US":"Sky Blue:#87CEEB","en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5355, - "width": 5313, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Landscape_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5299, - "currencyCode": "EUR", + "categories": [ + { + "key": "home-accents", + "typeId": "category", }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A modern cubist landscape painting is a striking and dynamic work of art that combines elements of traditional landscape painting with the fractured and abstract style of cubism. The painting is created with oil paints on canvas, and features a range of bold colors and geometric shapes. The composition of the painting is a landscape scene, depicting a natural setting. However, the scene is fragmented and abstracted, with overlapping planes of color and geometric shapes that distort and fracture the landscape. The use of color in the painting is vibrant and bold, with strong contrasts between light and dark areas. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The modern and abstract nature of the painting makes it a perfect addition to contemporary interior design schemes. Overall, a modern cubist landscape painting is a bold and innovative work of art that can add a sense of energy and dynamism to any space. Its fragmented and abstracted composition invites viewers to interpret and connect with the painting in their own way, while the use of bold colors and geometric shapes creates a sense of drama and excitement.", + }, + { + "locale": "de-DE", + "value": "Ein modernes kubistisches Landschaftsgemälde ist ein eindrucksvolles und dynamisches Kunstwerk, das Elemente der traditionellen Landschaftsmalerei mit dem gebrochenen und abstrakten Stil des Kubismus verbindet. Das Gemälde wurde mit Ölfarben auf Leinwand gemalt und weist eine Reihe kräftiger Farben und geometrischer Formen auf. Die Komposition des Gemäldes ist eine Landschaftsszene, die eine natürliche Umgebung darstellt. Die Szene ist jedoch fragmentiert und abstrahiert, mit sich überlagernden Farbflächen und geometrischen Formen, die die Landschaft verzerren und zerbrechen. Die Farbgebung des Gemäldes ist lebhaft und kräftig, mit starken Kontrasten zwischen hellen und dunklen Bereichen. Der Künstler hat möglicherweise eine Reihe von Techniken angewandt, wie z. B. Schichtung, Überblendung oder Tupfen, um ein dynamisches und visuell interessantes Werk zu schaffen. Der moderne und abstrakte Charakter des Gemäldes macht es zu einer perfekten Ergänzung für zeitgenössische Innenarchitekturen. Insgesamt ist ein modernes kubistisches Landschaftsgemälde ein kühnes und innovatives Kunstwerk, das jedem Raum ein Gefühl von Energie und Dynamik verleihen kann. Die fragmentierte und abstrahierte Komposition lädt den Betrachter dazu ein, das Gemälde auf seine eigene Weise zu interpretieren und mit ihm in Verbindung zu treten, während die Verwendung kräftiger Farben und geometrischer Formen ein Gefühl von Dramatik und Aufregung erzeugt.", + }, + { + "locale": "en-US", + "value": "A modern cubist landscape painting is a striking and dynamic work of art that combines elements of traditional landscape painting with the fractured and abstract style of cubism. The painting is created with oil paints on canvas, and features a range of bold colors and geometric shapes. The composition of the painting is a landscape scene, depicting a natural setting. However, the scene is fragmented and abstracted, with overlapping planes of color and geometric shapes that distort and fracture the landscape. The use of color in the painting is vibrant and bold, with strong contrasts between light and dark areas. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The modern and abstract nature of the painting makes it a perfect addition to contemporary interior design schemes. Overall, a modern cubist landscape painting is a bold and innovative work of art that can add a sense of energy and dynamism to any space. Its fragmented and abstracted composition invites viewers to interpret and connect with the painting in their own way, while the use of bold colors and geometric shapes creates a sense of drama and excitement.", + }, + ], + "key": "modern-landscape-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Oil on canvas\\n- Frame not included\\n- 3ft by 4ft","de-DE":"- Öl auf Leinwand\\n- Rahmen nicht im Lieferumfang enthalten\\n- 3 Fuß mal 4 Fuß","en-US":"- Oil on canvas\\n- Frame not included\\n- 3ft by 4ft"}", + }, + { + "name": "color", + "value": "{"en-US":"Sky Blue:#87CEEB","en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5355, + "width": 5313, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Landscape_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MLP-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Modern Landscape Painting", }, + { + "locale": "de-DE", + "value": "Moderne Landschaftsmalerei", + }, + { + "locale": "en-US", + "value": "Modern Landscape Painting", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "modern-landscape-painting", + }, + { + "locale": "de-DE", + "value": "moderne-landschaftsmalerei", + }, + { + "locale": "en-US", + "value": "modern-landscape-painting", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MLP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Modern Landscape Painting", - }, - { - "locale": "de-DE", - "value": "Moderne Landschaftsmalerei", - }, - { - "locale": "en-US", - "value": "Modern Landscape Painting", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "modern-landscape-painting", - }, - { - "locale": "de-DE", - "value": "moderne-landschaftsmalerei", - }, - { - "locale": "en-US", - "value": "modern-landscape-painting", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa.spec.ts index 5f6ecf03f..a1673f99a 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-three-seater-sofa.spec.ts @@ -6,387 +6,387 @@ describe(`with modernThreeSeaterSofa preset`, () => { const modernThreeSeaterSofaPreset = modernThreeSeaterSofa().build(); expect(modernThreeSeaterSofaPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das Dreisitzer-Sofa im modernen Stil mit Nackenkissen ist ein elegantes und stilvolles Möbelstück, das jedem Wohnraum einen Hauch von zeitgenössischer Raffinesse verleihen kann. Das Sofa besteht aus einem Holzrahmen, der mit einer weichen und strapazierfähigen Polsterung überzogen ist. Das Design des Sofas zeichnet sich durch klare Linien und einfache Formen aus, mit einem niedrigen Profil, das einen modernen und minimalistischen Look erzeugt. Die Rückenlehne und die Sitzkissen sind mit dem Rahmen verbunden, so dass ein nahtloses und stromlinienförmiges Erscheinungsbild entsteht, das die schlichte Ästhetik des Sofas unterstreicht. Das Sofa ist häufig mit Nackenkissen ausgestattet. Das sind lange, zylindrische Kissen, die als Armlehnen oder zur Unterstützung des unteren Rückens beim Sitzen verwendet werden können. Die Nackenkissen sind mit dem gleichen Bezugsstoff wie der Rest des Sofas bezogen, wodurch ein einheitliches und abgestimmtes Aussehen entsteht. Die vier Beine des Sofas sind aus Holz und haben ein einfaches und schnörkelloses Design, das die moderne Ästhetik des Sofas ergänzt. Die Größe des Sofas als Dreisitzer bietet ausreichend Platz für drei Personen und ist damit die ideale Wahl für ein kleines bis mittelgroßes Wohnzimmer oder ein Familienzimmer. Das Sofa kann mit einer Reihe von Akzentstühlen, Couchtischen und anderen Möbelstücken kombiniert werden, um einen zusammenhängenden und stilvollen Wohnraum zu schaffen. Insgesamt ist ein Dreisitzer-Sofa im modernen Stil ein elegantes und anspruchsvolles Möbelstück, das jedem Wohnraum einen Hauch von zeitgenössischem Stil verleihen kann. Seine klaren Linien, einfachen Formen und sein minimalistisches Design machen es zu einer vielseitigen und stilvollen Wahl für jedes moderne Zuhause.", - "en": undefined, - "en-GB": "A three seater sofa in modern style with bolster cushions is a sleek and stylish piece of furniture that can add a touch of contemporary sophistication to any living space. The sofa features a wooden frame that is covered in soft and durable upholstery. The sofa's design is characterized by clean lines and simple shapes, with a low profile that creates a modern and minimalist look. The backrest and seat cushions are attached to the frame, with a seamless and streamlined appearance that enhances the sofa's sleek aesthetic. The sofa is often equipped with bolster cushions, which are long, cylindrical cushions that can be used as armrests or to support the lower back while seated. The bolster cushions are covered in the same upholstery fabric as the rest of the sofa, creating a cohesive and coordinated look. The four legs of the sofa are made of wood, with a simple and unadorned design that complements the sofa's modern aesthetic. The three-seater size of the sofa provides ample seating space for three people, making it an ideal choice for a small to medium-sized living room or family room. The sofa can be paired with a range of accent chairs, coffee tables, and other furniture pieces to create a cohesive and stylish living space. Overall, a three seater sofa in modern style is a sleek and sophisticated piece of furniture that can add a touch of contemporary style to any living space. Its clean lines, simple shapes, and minimalistic design make it a versatile and stylish choice for any modern home.", - "en-US": "A three seater sofa in modern style with bolster cushions is a sleek and stylish piece of furniture that can add a touch of contemporary sophistication to any living space. The sofa features a wooden frame that is covered in soft and durable upholstery. The sofa's design is characterized by clean lines and simple shapes, with a low profile that creates a modern and minimalist look. The backrest and seat cushions are attached to the frame, with a seamless and streamlined appearance that enhances the sofa's sleek aesthetic. The sofa is often equipped with bolster cushions, which are long, cylindrical cushions that can be used as armrests or to support the lower back while seated. The bolster cushions are covered in the same upholstery fabric as the rest of the sofa, creating a cohesive and coordinated look. The four legs of the sofa are made of wood, with a simple and unadorned design that complements the sofa's modern aesthetic. The three-seater size of the sofa provides ample seating space for three people, making it an ideal choice for a small to medium-sized living room or family room. The sofa can be paired with a range of accent chairs, coffee tables, and other furniture pieces to create a cohesive and stylish living space. Overall, a three seater sofa in modern style is a sleek and sophisticated piece of furniture that can add a touch of contemporary style to any living space. Its clean lines, simple shapes, and minimalistic design make it a versatile and stylish choice for any modern home.", - "fr": undefined, - }, - "key": "modern-three-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Dunkles Schiefer grau:#2F4F4F", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Dark Slate Gray:#2F4F4F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Velvet upholstery -- 3-seater sofa -- Assembled on site", - "en-GB": "- Velvet upholstery -- 3-seater sofa -- Assembled on site", - "en-US": "- Velvet upholstery -- 3-seater sofa -- Assembled on site", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das Dreisitzer-Sofa im modernen Stil mit Nackenkissen ist ein elegantes und stilvolles Möbelstück, das jedem Wohnraum einen Hauch von zeitgenössischer Raffinesse verleihen kann. Das Sofa besteht aus einem Holzrahmen, der mit einer weichen und strapazierfähigen Polsterung überzogen ist. Das Design des Sofas zeichnet sich durch klare Linien und einfache Formen aus, mit einem niedrigen Profil, das einen modernen und minimalistischen Look erzeugt. Die Rückenlehne und die Sitzkissen sind mit dem Rahmen verbunden, so dass ein nahtloses und stromlinienförmiges Erscheinungsbild entsteht, das die schlichte Ästhetik des Sofas unterstreicht. Das Sofa ist häufig mit Nackenkissen ausgestattet. Das sind lange, zylindrische Kissen, die als Armlehnen oder zur Unterstützung des unteren Rückens beim Sitzen verwendet werden können. Die Nackenkissen sind mit dem gleichen Bezugsstoff wie der Rest des Sofas bezogen, wodurch ein einheitliches und abgestimmtes Aussehen entsteht. Die vier Beine des Sofas sind aus Holz und haben ein einfaches und schnörkelloses Design, das die moderne Ästhetik des Sofas ergänzt. Die Größe des Sofas als Dreisitzer bietet ausreichend Platz für drei Personen und ist damit die ideale Wahl für ein kleines bis mittelgroßes Wohnzimmer oder ein Familienzimmer. Das Sofa kann mit einer Reihe von Akzentstühlen, Couchtischen und anderen Möbelstücken kombiniert werden, um einen zusammenhängenden und stilvollen Wohnraum zu schaffen. Insgesamt ist ein Dreisitzer-Sofa im modernen Stil ein elegantes und anspruchsvolles Möbelstück, das jedem Wohnraum einen Hauch von zeitgenössischem Stil verleihen kann. Seine klaren Linien, einfachen Formen und sein minimalistisches Design machen es zu einer vielseitigen und stilvollen Wahl für jedes moderne Zuhause.", + "en": undefined, + "en-GB": "A three seater sofa in modern style with bolster cushions is a sleek and stylish piece of furniture that can add a touch of contemporary sophistication to any living space. The sofa features a wooden frame that is covered in soft and durable upholstery. The sofa's design is characterized by clean lines and simple shapes, with a low profile that creates a modern and minimalist look. The backrest and seat cushions are attached to the frame, with a seamless and streamlined appearance that enhances the sofa's sleek aesthetic. The sofa is often equipped with bolster cushions, which are long, cylindrical cushions that can be used as armrests or to support the lower back while seated. The bolster cushions are covered in the same upholstery fabric as the rest of the sofa, creating a cohesive and coordinated look. The four legs of the sofa are made of wood, with a simple and unadorned design that complements the sofa's modern aesthetic. The three-seater size of the sofa provides ample seating space for three people, making it an ideal choice for a small to medium-sized living room or family room. The sofa can be paired with a range of accent chairs, coffee tables, and other furniture pieces to create a cohesive and stylish living space. Overall, a three seater sofa in modern style is a sleek and sophisticated piece of furniture that can add a touch of contemporary style to any living space. Its clean lines, simple shapes, and minimalistic design make it a versatile and stylish choice for any modern home.", + "en-US": "A three seater sofa in modern style with bolster cushions is a sleek and stylish piece of furniture that can add a touch of contemporary sophistication to any living space. The sofa features a wooden frame that is covered in soft and durable upholstery. The sofa's design is characterized by clean lines and simple shapes, with a low profile that creates a modern and minimalist look. The backrest and seat cushions are attached to the frame, with a seamless and streamlined appearance that enhances the sofa's sleek aesthetic. The sofa is often equipped with bolster cushions, which are long, cylindrical cushions that can be used as armrests or to support the lower back while seated. The bolster cushions are covered in the same upholstery fabric as the rest of the sofa, creating a cohesive and coordinated look. The four legs of the sofa are made of wood, with a simple and unadorned design that complements the sofa's modern aesthetic. The three-seater size of the sofa provides ample seating space for three people, making it an ideal choice for a small to medium-sized living room or family room. The sofa can be paired with a range of accent chairs, coffee tables, and other furniture pieces to create a cohesive and stylish living space. Overall, a three seater sofa in modern style is a sleek and sophisticated piece of furniture that can add a touch of contemporary style to any living space. Its clean lines, simple shapes, and minimalistic design make it a versatile and stylish choice for any modern home.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "key": "modern-three-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Dunkles Schiefer grau:#2F4F4F", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Dark Slate Gray:#2F4F4F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Velvet upholstery + - 3-seater sofa + - Assembled on site", + "en-GB": "- Velvet upholstery + - 3-seater sofa + - Assembled on site", + "en-US": "- Velvet upholstery + - 3-seater sofa + - Assembled on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.4.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 249900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 249900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 249900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MTSS-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.4.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Modernes Dreisitzer-Sofa", + "en": undefined, + "en-GB": "Modern Three Seater Sofa", + "en-US": "Modern Three Seater Sofa", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 249900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 249900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "modernes-dreisitzer-sofa", + "en": undefined, + "en-GB": "modern-three-seater-sofa", + "en-US": "modern-three-seater-sofa", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 249900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MTSS-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Modernes Dreisitzer-Sofa", - "en": undefined, - "en-GB": "Modern Three Seater Sofa", - "en-US": "Modern Three Seater Sofa", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "modernes-dreisitzer-sofa", - "en": undefined, - "en-GB": "modern-three-seater-sofa", - "en-US": "modern-three-seater-sofa", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a modernThreeSeaterSofa preset when built for graphql`, () => { const modernThreeSeaterSofaPresetGraphql = modernThreeSeaterSofa().buildGraphql(); expect(modernThreeSeaterSofaPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A three seater sofa in modern style with bolster cushions is a sleek and stylish piece of furniture that can add a touch of contemporary sophistication to any living space. The sofa features a wooden frame that is covered in soft and durable upholstery. The sofa's design is characterized by clean lines and simple shapes, with a low profile that creates a modern and minimalist look. The backrest and seat cushions are attached to the frame, with a seamless and streamlined appearance that enhances the sofa's sleek aesthetic. The sofa is often equipped with bolster cushions, which are long, cylindrical cushions that can be used as armrests or to support the lower back while seated. The bolster cushions are covered in the same upholstery fabric as the rest of the sofa, creating a cohesive and coordinated look. The four legs of the sofa are made of wood, with a simple and unadorned design that complements the sofa's modern aesthetic. The three-seater size of the sofa provides ample seating space for three people, making it an ideal choice for a small to medium-sized living room or family room. The sofa can be paired with a range of accent chairs, coffee tables, and other furniture pieces to create a cohesive and stylish living space. Overall, a three seater sofa in modern style is a sleek and sophisticated piece of furniture that can add a touch of contemporary style to any living space. Its clean lines, simple shapes, and minimalistic design make it a versatile and stylish choice for any modern home.", - }, - { - "locale": "de-DE", - "value": "Das Dreisitzer-Sofa im modernen Stil mit Nackenkissen ist ein elegantes und stilvolles Möbelstück, das jedem Wohnraum einen Hauch von zeitgenössischer Raffinesse verleihen kann. Das Sofa besteht aus einem Holzrahmen, der mit einer weichen und strapazierfähigen Polsterung überzogen ist. Das Design des Sofas zeichnet sich durch klare Linien und einfache Formen aus, mit einem niedrigen Profil, das einen modernen und minimalistischen Look erzeugt. Die Rückenlehne und die Sitzkissen sind mit dem Rahmen verbunden, so dass ein nahtloses und stromlinienförmiges Erscheinungsbild entsteht, das die schlichte Ästhetik des Sofas unterstreicht. Das Sofa ist häufig mit Nackenkissen ausgestattet. Das sind lange, zylindrische Kissen, die als Armlehnen oder zur Unterstützung des unteren Rückens beim Sitzen verwendet werden können. Die Nackenkissen sind mit dem gleichen Bezugsstoff wie der Rest des Sofas bezogen, wodurch ein einheitliches und abgestimmtes Aussehen entsteht. Die vier Beine des Sofas sind aus Holz und haben ein einfaches und schnörkelloses Design, das die moderne Ästhetik des Sofas ergänzt. Die Größe des Sofas als Dreisitzer bietet ausreichend Platz für drei Personen und ist damit die ideale Wahl für ein kleines bis mittelgroßes Wohnzimmer oder ein Familienzimmer. Das Sofa kann mit einer Reihe von Akzentstühlen, Couchtischen und anderen Möbelstücken kombiniert werden, um einen zusammenhängenden und stilvollen Wohnraum zu schaffen. Insgesamt ist ein Dreisitzer-Sofa im modernen Stil ein elegantes und anspruchsvolles Möbelstück, das jedem Wohnraum einen Hauch von zeitgenössischem Stil verleihen kann. Seine klaren Linien, einfachen Formen und sein minimalistisches Design machen es zu einer vielseitigen und stilvollen Wahl für jedes moderne Zuhause.", - }, - { - "locale": "en-US", - "value": "A three seater sofa in modern style with bolster cushions is a sleek and stylish piece of furniture that can add a touch of contemporary sophistication to any living space. The sofa features a wooden frame that is covered in soft and durable upholstery. The sofa's design is characterized by clean lines and simple shapes, with a low profile that creates a modern and minimalist look. The backrest and seat cushions are attached to the frame, with a seamless and streamlined appearance that enhances the sofa's sleek aesthetic. The sofa is often equipped with bolster cushions, which are long, cylindrical cushions that can be used as armrests or to support the lower back while seated. The bolster cushions are covered in the same upholstery fabric as the rest of the sofa, creating a cohesive and coordinated look. The four legs of the sofa are made of wood, with a simple and unadorned design that complements the sofa's modern aesthetic. The three-seater size of the sofa provides ample seating space for three people, making it an ideal choice for a small to medium-sized living room or family room. The sofa can be paired with a range of accent chairs, coffee tables, and other furniture pieces to create a cohesive and stylish living space. Overall, a three seater sofa in modern style is a sleek and sophisticated piece of furniture that can add a touch of contemporary style to any living space. Its clean lines, simple shapes, and minimalistic design make it a versatile and stylish choice for any modern home.", - }, - ], - "key": "modern-three-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Dark Slate Gray:#2F4F4F","en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site","en-GB":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site","de-DE":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site"}", - }, - ], - "images": [ { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.4.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 249900, - "currencyCode": "EUR", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", }, + { + "key": "the-modernist", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A three seater sofa in modern style with bolster cushions is a sleek and stylish piece of furniture that can add a touch of contemporary sophistication to any living space. The sofa features a wooden frame that is covered in soft and durable upholstery. The sofa's design is characterized by clean lines and simple shapes, with a low profile that creates a modern and minimalist look. The backrest and seat cushions are attached to the frame, with a seamless and streamlined appearance that enhances the sofa's sleek aesthetic. The sofa is often equipped with bolster cushions, which are long, cylindrical cushions that can be used as armrests or to support the lower back while seated. The bolster cushions are covered in the same upholstery fabric as the rest of the sofa, creating a cohesive and coordinated look. The four legs of the sofa are made of wood, with a simple and unadorned design that complements the sofa's modern aesthetic. The three-seater size of the sofa provides ample seating space for three people, making it an ideal choice for a small to medium-sized living room or family room. The sofa can be paired with a range of accent chairs, coffee tables, and other furniture pieces to create a cohesive and stylish living space. Overall, a three seater sofa in modern style is a sleek and sophisticated piece of furniture that can add a touch of contemporary style to any living space. Its clean lines, simple shapes, and minimalistic design make it a versatile and stylish choice for any modern home.", + }, + { + "locale": "de-DE", + "value": "Das Dreisitzer-Sofa im modernen Stil mit Nackenkissen ist ein elegantes und stilvolles Möbelstück, das jedem Wohnraum einen Hauch von zeitgenössischer Raffinesse verleihen kann. Das Sofa besteht aus einem Holzrahmen, der mit einer weichen und strapazierfähigen Polsterung überzogen ist. Das Design des Sofas zeichnet sich durch klare Linien und einfache Formen aus, mit einem niedrigen Profil, das einen modernen und minimalistischen Look erzeugt. Die Rückenlehne und die Sitzkissen sind mit dem Rahmen verbunden, so dass ein nahtloses und stromlinienförmiges Erscheinungsbild entsteht, das die schlichte Ästhetik des Sofas unterstreicht. Das Sofa ist häufig mit Nackenkissen ausgestattet. Das sind lange, zylindrische Kissen, die als Armlehnen oder zur Unterstützung des unteren Rückens beim Sitzen verwendet werden können. Die Nackenkissen sind mit dem gleichen Bezugsstoff wie der Rest des Sofas bezogen, wodurch ein einheitliches und abgestimmtes Aussehen entsteht. Die vier Beine des Sofas sind aus Holz und haben ein einfaches und schnörkelloses Design, das die moderne Ästhetik des Sofas ergänzt. Die Größe des Sofas als Dreisitzer bietet ausreichend Platz für drei Personen und ist damit die ideale Wahl für ein kleines bis mittelgroßes Wohnzimmer oder ein Familienzimmer. Das Sofa kann mit einer Reihe von Akzentstühlen, Couchtischen und anderen Möbelstücken kombiniert werden, um einen zusammenhängenden und stilvollen Wohnraum zu schaffen. Insgesamt ist ein Dreisitzer-Sofa im modernen Stil ein elegantes und anspruchsvolles Möbelstück, das jedem Wohnraum einen Hauch von zeitgenössischem Stil verleihen kann. Seine klaren Linien, einfachen Formen und sein minimalistisches Design machen es zu einer vielseitigen und stilvollen Wahl für jedes moderne Zuhause.", + }, + { + "locale": "en-US", + "value": "A three seater sofa in modern style with bolster cushions is a sleek and stylish piece of furniture that can add a touch of contemporary sophistication to any living space. The sofa features a wooden frame that is covered in soft and durable upholstery. The sofa's design is characterized by clean lines and simple shapes, with a low profile that creates a modern and minimalist look. The backrest and seat cushions are attached to the frame, with a seamless and streamlined appearance that enhances the sofa's sleek aesthetic. The sofa is often equipped with bolster cushions, which are long, cylindrical cushions that can be used as armrests or to support the lower back while seated. The bolster cushions are covered in the same upholstery fabric as the rest of the sofa, creating a cohesive and coordinated look. The four legs of the sofa are made of wood, with a simple and unadorned design that complements the sofa's modern aesthetic. The three-seater size of the sofa provides ample seating space for three people, making it an ideal choice for a small to medium-sized living room or family room. The sofa can be paired with a range of accent chairs, coffee tables, and other furniture pieces to create a cohesive and stylish living space. Overall, a three seater sofa in modern style is a sleek and sophisticated piece of furniture that can add a touch of contemporary style to any living space. Its clean lines, simple shapes, and minimalistic design make it a versatile and stylish choice for any modern home.", + }, + ], + "key": "modern-three-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Dark Slate Gray:#2F4F4F","en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site","en-GB":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site","de-DE":"- Velvet upholstery\\n- 3-seater sofa\\n- Assembled on site"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.4.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Three_Seater_Sofa-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 249900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 249900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "249900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 249900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MTSS-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 249900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Modern Three Seater Sofa", }, + { + "locale": "de-DE", + "value": "Modernes Dreisitzer-Sofa", + }, + { + "locale": "en-US", + "value": "Modern Three Seater Sofa", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 249900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "modern-three-seater-sofa", + }, + { + "locale": "de-DE", + "value": "modernes-dreisitzer-sofa", + }, + { + "locale": "en-US", + "value": "modern-three-seater-sofa", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MTSS-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Modern Three Seater Sofa", - }, - { - "locale": "de-DE", - "value": "Modernes Dreisitzer-Sofa", - }, - { - "locale": "en-US", - "value": "Modern Three Seater Sofa", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "modern-three-seater-sofa", - }, - { - "locale": "de-DE", - "value": "modernes-dreisitzer-sofa", - }, - { - "locale": "en-US", - "value": "modern-three-seater-sofa", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed.spec.ts index 2df82cb5c..40c6bd3bc 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-queen-bed.spec.ts @@ -6,339 +6,339 @@ describe(`with modernUpholsteredQueenBed preset`, () => { const modernUpholsteredQueenBedPreset = modernUpholsteredQueenBed().build(); expect(modernUpholsteredQueenBedPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein mit Samtstoff gepolstertes Bett mit Messingnägeln und Tufting ist ein luxuriöses und elegantes Möbelstück, das jedem Schlafzimmer einen Hauch von Glamour und Raffinesse verleihen kann. Das Bett besteht aus einem Holzrahmen, der mit einem weichen und plüschigen Samtbezug überzogen ist. Das Kopfteil des Bettes ist der Mittelpunkt des Designs und weist ein getuftetes oder gestepptes Muster auf, das eine weiche und einladende Oberfläche zum Anlehnen bietet. Die Tuftings sind mit Messingnägeln akzentuiert, die dem Design einen Hauch von metallischem Glanz und Textur verleihen. Das Fußteil und die Seitengitter des Bettes sind ebenfalls mit demselben Samtstoff bezogen und mit Messingnagelköpfen verziert, wodurch ein einheitliches und stilvolles Erscheinungsbild entsteht. Die Beine des Bettes sind aus Holz. Die Größe des Bettes bietet reichlich Platz für eine komfortable Nachtruhe, während die luxuriöse Samtpolsterung und die Messingakzente dem Raum einen Hauch von Glamour und Raffinesse verleihen. Das Bett kann mit einer Reihe von Bettwaren und Accessoires, wie z. B. Plüschkissen und weichen Decken, kombiniert werden, um eine gemütliche und einladende Atmosphäre zu schaffen. Insgesamt ist ein mit Samtstoff gepolstertes Bett mit Messingnägeln und Tufting ein atemberaubendes und stilvolles Möbelstück, das jedes Schlafzimmer in einen luxuriösen und eleganten Raum verwandeln kann. Die plüschige Polsterung, die raffinierten Tuftings und die metallischen Akzente machen es zu einem herausragenden Möbelstück, das Sie sicher beeindrucken und begeistern wird.", - "en": undefined, - "en-GB": "A queen bed upholstered with velvet fabric and brass nails and tufting is a luxurious and elegant piece of furniture that can add a touch of glamour and sophistication to any bedroom. The bed features a wooden frame that is covered with soft and plush velvet upholstery. The headboard of the bed is the focal point of the design, featuring a tufted or quilted pattern that creates a plush and inviting surface to lean against. The tufting is accentuated with brass nailhead trim, which adds a touch of metallic shine and texture to the design. The footboard and side rails of the bed are also upholstered in the same velvet fabric and trimmed with brass nailheads, creating a cohesive and stylish look. The legs of the bed are wood. The queen size of the bed provides ample space for a comfortable night's sleep, while the luxurious velvet upholstery and brass accents add an element of glamour and sophistication to the room. The bed can be paired with a range of bedding and accessories, such as plush pillows and soft blankets, to create a cozy and inviting atmosphere. Overall, a queen bed upholstered with velvet fabric and brass nails and tufting is a stunning and stylish piece of furniture that can transform any bedroom into a luxurious and elegant space. Its plush upholstery, intricate tufting, and metallic accents make it a standout piece that is sure to impress and delight.", - "en-US": "A queen bed upholstered with velvet fabric and brass nails and tufting is a luxurious and elegant piece of furniture that can add a touch of glamour and sophistication to any bedroom. The bed features a wooden frame that is covered with soft and plush velvet upholstery. The headboard of the bed is the focal point of the design, featuring a tufted or quilted pattern that creates a plush and inviting surface to lean against. The tufting is accentuated with brass nailhead trim, which adds a touch of metallic shine and texture to the design. The footboard and side rails of the bed are also upholstered in the same velvet fabric and trimmed with brass nailheads, creating a cohesive and stylish look. The legs of the bed are wood. The queen size of the bed provides ample space for a comfortable night's sleep, while the luxurious velvet upholstery and brass accents add an element of glamour and sophistication to the room. The bed can be paired with a range of bedding and accessories, such as plush pillows and soft blankets, to create a cozy and inviting atmosphere. Overall, a queen bed upholstered with velvet fabric and brass nails and tufting is a stunning and stylish piece of furniture that can transform any bedroom into a luxurious and elegant space. Its plush upholstery, intricate tufting, and metallic accents make it a standout piece that is sure to impress and delight.", - "fr": undefined, - }, - "key": "modern-upholstered-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein mit Samtstoff gepolstertes Bett mit Messingnägeln und Tufting ist ein luxuriöses und elegantes Möbelstück, das jedem Schlafzimmer einen Hauch von Glamour und Raffinesse verleihen kann. Das Bett besteht aus einem Holzrahmen, der mit einem weichen und plüschigen Samtbezug überzogen ist. Das Kopfteil des Bettes ist der Mittelpunkt des Designs und weist ein getuftetes oder gestepptes Muster auf, das eine weiche und einladende Oberfläche zum Anlehnen bietet. Die Tuftings sind mit Messingnägeln akzentuiert, die dem Design einen Hauch von metallischem Glanz und Textur verleihen. Das Fußteil und die Seitengitter des Bettes sind ebenfalls mit demselben Samtstoff bezogen und mit Messingnagelköpfen verziert, wodurch ein einheitliches und stilvolles Erscheinungsbild entsteht. Die Beine des Bettes sind aus Holz. Die Größe des Bettes bietet reichlich Platz für eine komfortable Nachtruhe, während die luxuriöse Samtpolsterung und die Messingakzente dem Raum einen Hauch von Glamour und Raffinesse verleihen. Das Bett kann mit einer Reihe von Bettwaren und Accessoires, wie z. B. Plüschkissen und weichen Decken, kombiniert werden, um eine gemütliche und einladende Atmosphäre zu schaffen. Insgesamt ist ein mit Samtstoff gepolstertes Bett mit Messingnägeln und Tufting ein atemberaubendes und stilvolles Möbelstück, das jedes Schlafzimmer in einen luxuriösen und eleganten Raum verwandeln kann. Die plüschige Polsterung, die raffinierten Tuftings und die metallischen Akzente machen es zu einem herausragenden Möbelstück, das Sie sicher beeindrucken und begeistern wird.", + "en": undefined, + "en-GB": "A queen bed upholstered with velvet fabric and brass nails and tufting is a luxurious and elegant piece of furniture that can add a touch of glamour and sophistication to any bedroom. The bed features a wooden frame that is covered with soft and plush velvet upholstery. The headboard of the bed is the focal point of the design, featuring a tufted or quilted pattern that creates a plush and inviting surface to lean against. The tufting is accentuated with brass nailhead trim, which adds a touch of metallic shine and texture to the design. The footboard and side rails of the bed are also upholstered in the same velvet fabric and trimmed with brass nailheads, creating a cohesive and stylish look. The legs of the bed are wood. The queen size of the bed provides ample space for a comfortable night's sleep, while the luxurious velvet upholstery and brass accents add an element of glamour and sophistication to the room. The bed can be paired with a range of bedding and accessories, such as plush pillows and soft blankets, to create a cozy and inviting atmosphere. Overall, a queen bed upholstered with velvet fabric and brass nails and tufting is a stunning and stylish piece of furniture that can transform any bedroom into a luxurious and elegant space. Its plush upholstery, intricate tufting, and metallic accents make it a standout piece that is sure to impress and delight.", + "en-US": "A queen bed upholstered with velvet fabric and brass nails and tufting is a luxurious and elegant piece of furniture that can add a touch of glamour and sophistication to any bedroom. The bed features a wooden frame that is covered with soft and plush velvet upholstery. The headboard of the bed is the focal point of the design, featuring a tufted or quilted pattern that creates a plush and inviting surface to lean against. The tufting is accentuated with brass nailhead trim, which adds a touch of metallic shine and texture to the design. The footboard and side rails of the bed are also upholstered in the same velvet fabric and trimmed with brass nailheads, creating a cohesive and stylish look. The legs of the bed are wood. The queen size of the bed provides ample space for a comfortable night's sleep, while the luxurious velvet upholstery and brass accents add an element of glamour and sophistication to the room. The bed can be paired with a range of bedding and accessories, such as plush pillows and soft blankets, to create a cozy and inviting atmosphere. Overall, a queen bed upholstered with velvet fabric and brass nails and tufting is a stunning and stylish piece of furniture that can transform any bedroom into a luxurious and elegant space. Its plush upholstery, intricate tufting, and metallic accents make it a standout piece that is sure to impress and delight.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + "key": "modern-upholstered-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Cotton Upholstery + - Standard Queen size + - Assembly on site", + "en-GB": "- Cotton Upholstery + - Standard Queen size + - Assembly on site", + "en-US": "- Cotton Upholstery + - Standard Queen size + - Assembly on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6000, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUQB-01", }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Cotton Upholstery -- Standard Queen size -- Assembly on site", - "en-GB": "- Cotton Upholstery -- Standard Queen size -- Assembly on site", - "en-US": "- Cotton Upholstery -- Standard Queen size -- Assembly on site", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Modernes gepolstertes Queensize-Bett", + "en": undefined, + "en-GB": "Modern Upholstered Queen Bed", + "en-US": "Modern Upholstered Queen Bed", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6000, - "w": 6000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "modernes-gepolstertes-queensize-bett", + "en": undefined, + "en-GB": "modern-upholstered-queen-bed", + "en-US": "modern-upholstered-queen-bed", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 259900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MUQB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Modernes gepolstertes Queensize-Bett", - "en": undefined, - "en-GB": "Modern Upholstered Queen Bed", - "en-US": "Modern Upholstered Queen Bed", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "modernes-gepolstertes-queensize-bett", - "en": undefined, - "en-GB": "modern-upholstered-queen-bed", - "en-US": "modern-upholstered-queen-bed", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a modernUpholsteredQueenBed preset when built for graphql`, () => { const modernUpholsteredQueenBedPresetGraphql = modernUpholsteredQueenBed().buildGraphql(); expect(modernUpholsteredQueenBedPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A queen bed upholstered with velvet fabric and brass nails and tufting is a luxurious and elegant piece of furniture that can add a touch of glamour and sophistication to any bedroom. The bed features a wooden frame that is covered with soft and plush velvet upholstery. The headboard of the bed is the focal point of the design, featuring a tufted or quilted pattern that creates a plush and inviting surface to lean against. The tufting is accentuated with brass nailhead trim, which adds a touch of metallic shine and texture to the design. The footboard and side rails of the bed are also upholstered in the same velvet fabric and trimmed with brass nailheads, creating a cohesive and stylish look. The legs of the bed are wood. The queen size of the bed provides ample space for a comfortable night's sleep, while the luxurious velvet upholstery and brass accents add an element of glamour and sophistication to the room. The bed can be paired with a range of bedding and accessories, such as plush pillows and soft blankets, to create a cozy and inviting atmosphere. Overall, a queen bed upholstered with velvet fabric and brass nails and tufting is a stunning and stylish piece of furniture that can transform any bedroom into a luxurious and elegant space. Its plush upholstery, intricate tufting, and metallic accents make it a standout piece that is sure to impress and delight.", - }, - { - "locale": "de-DE", - "value": "Ein mit Samtstoff gepolstertes Bett mit Messingnägeln und Tufting ist ein luxuriöses und elegantes Möbelstück, das jedem Schlafzimmer einen Hauch von Glamour und Raffinesse verleihen kann. Das Bett besteht aus einem Holzrahmen, der mit einem weichen und plüschigen Samtbezug überzogen ist. Das Kopfteil des Bettes ist der Mittelpunkt des Designs und weist ein getuftetes oder gestepptes Muster auf, das eine weiche und einladende Oberfläche zum Anlehnen bietet. Die Tuftings sind mit Messingnägeln akzentuiert, die dem Design einen Hauch von metallischem Glanz und Textur verleihen. Das Fußteil und die Seitengitter des Bettes sind ebenfalls mit demselben Samtstoff bezogen und mit Messingnagelköpfen verziert, wodurch ein einheitliches und stilvolles Erscheinungsbild entsteht. Die Beine des Bettes sind aus Holz. Die Größe des Bettes bietet reichlich Platz für eine komfortable Nachtruhe, während die luxuriöse Samtpolsterung und die Messingakzente dem Raum einen Hauch von Glamour und Raffinesse verleihen. Das Bett kann mit einer Reihe von Bettwaren und Accessoires, wie z. B. Plüschkissen und weichen Decken, kombiniert werden, um eine gemütliche und einladende Atmosphäre zu schaffen. Insgesamt ist ein mit Samtstoff gepolstertes Bett mit Messingnägeln und Tufting ein atemberaubendes und stilvolles Möbelstück, das jedes Schlafzimmer in einen luxuriösen und eleganten Raum verwandeln kann. Die plüschige Polsterung, die raffinierten Tuftings und die metallischen Akzente machen es zu einem herausragenden Möbelstück, das Sie sicher beeindrucken und begeistern wird.", - }, - { - "locale": "en-US", - "value": "A queen bed upholstered with velvet fabric and brass nails and tufting is a luxurious and elegant piece of furniture that can add a touch of glamour and sophistication to any bedroom. The bed features a wooden frame that is covered with soft and plush velvet upholstery. The headboard of the bed is the focal point of the design, featuring a tufted or quilted pattern that creates a plush and inviting surface to lean against. The tufting is accentuated with brass nailhead trim, which adds a touch of metallic shine and texture to the design. The footboard and side rails of the bed are also upholstered in the same velvet fabric and trimmed with brass nailheads, creating a cohesive and stylish look. The legs of the bed are wood. The queen size of the bed provides ample space for a comfortable night's sleep, while the luxurious velvet upholstery and brass accents add an element of glamour and sophistication to the room. The bed can be paired with a range of bedding and accessories, such as plush pillows and soft blankets, to create a cozy and inviting atmosphere. Overall, a queen bed upholstered with velvet fabric and brass nails and tufting is a stunning and stylish piece of furniture that can transform any bedroom into a luxurious and elegant space. Its plush upholstery, intricate tufting, and metallic accents make it a standout piece that is sure to impress and delight.", - }, - ], - "key": "modern-upholstered-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Black:#000000","en-GB":"Black:#000000","de-DE":"Schwarz:#000000"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site","en-GB":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site","de-DE":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site"}", - }, - ], - "images": [ { - "dimensions": { - "height": 6000, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A queen bed upholstered with velvet fabric and brass nails and tufting is a luxurious and elegant piece of furniture that can add a touch of glamour and sophistication to any bedroom. The bed features a wooden frame that is covered with soft and plush velvet upholstery. The headboard of the bed is the focal point of the design, featuring a tufted or quilted pattern that creates a plush and inviting surface to lean against. The tufting is accentuated with brass nailhead trim, which adds a touch of metallic shine and texture to the design. The footboard and side rails of the bed are also upholstered in the same velvet fabric and trimmed with brass nailheads, creating a cohesive and stylish look. The legs of the bed are wood. The queen size of the bed provides ample space for a comfortable night's sleep, while the luxurious velvet upholstery and brass accents add an element of glamour and sophistication to the room. The bed can be paired with a range of bedding and accessories, such as plush pillows and soft blankets, to create a cozy and inviting atmosphere. Overall, a queen bed upholstered with velvet fabric and brass nails and tufting is a stunning and stylish piece of furniture that can transform any bedroom into a luxurious and elegant space. Its plush upholstery, intricate tufting, and metallic accents make it a standout piece that is sure to impress and delight.", + }, + { + "locale": "de-DE", + "value": "Ein mit Samtstoff gepolstertes Bett mit Messingnägeln und Tufting ist ein luxuriöses und elegantes Möbelstück, das jedem Schlafzimmer einen Hauch von Glamour und Raffinesse verleihen kann. Das Bett besteht aus einem Holzrahmen, der mit einem weichen und plüschigen Samtbezug überzogen ist. Das Kopfteil des Bettes ist der Mittelpunkt des Designs und weist ein getuftetes oder gestepptes Muster auf, das eine weiche und einladende Oberfläche zum Anlehnen bietet. Die Tuftings sind mit Messingnägeln akzentuiert, die dem Design einen Hauch von metallischem Glanz und Textur verleihen. Das Fußteil und die Seitengitter des Bettes sind ebenfalls mit demselben Samtstoff bezogen und mit Messingnagelköpfen verziert, wodurch ein einheitliches und stilvolles Erscheinungsbild entsteht. Die Beine des Bettes sind aus Holz. Die Größe des Bettes bietet reichlich Platz für eine komfortable Nachtruhe, während die luxuriöse Samtpolsterung und die Messingakzente dem Raum einen Hauch von Glamour und Raffinesse verleihen. Das Bett kann mit einer Reihe von Bettwaren und Accessoires, wie z. B. Plüschkissen und weichen Decken, kombiniert werden, um eine gemütliche und einladende Atmosphäre zu schaffen. Insgesamt ist ein mit Samtstoff gepolstertes Bett mit Messingnägeln und Tufting ein atemberaubendes und stilvolles Möbelstück, das jedes Schlafzimmer in einen luxuriösen und eleganten Raum verwandeln kann. Die plüschige Polsterung, die raffinierten Tuftings und die metallischen Akzente machen es zu einem herausragenden Möbelstück, das Sie sicher beeindrucken und begeistern wird.", }, + { + "locale": "en-US", + "value": "A queen bed upholstered with velvet fabric and brass nails and tufting is a luxurious and elegant piece of furniture that can add a touch of glamour and sophistication to any bedroom. The bed features a wooden frame that is covered with soft and plush velvet upholstery. The headboard of the bed is the focal point of the design, featuring a tufted or quilted pattern that creates a plush and inviting surface to lean against. The tufting is accentuated with brass nailhead trim, which adds a touch of metallic shine and texture to the design. The footboard and side rails of the bed are also upholstered in the same velvet fabric and trimmed with brass nailheads, creating a cohesive and stylish look. The legs of the bed are wood. The queen size of the bed provides ample space for a comfortable night's sleep, while the luxurious velvet upholstery and brass accents add an element of glamour and sophistication to the room. The bed can be paired with a range of bedding and accessories, such as plush pillows and soft blankets, to create a cozy and inviting atmosphere. Overall, a queen bed upholstered with velvet fabric and brass nails and tufting is a stunning and stylish piece of furniture that can transform any bedroom into a luxurious and elegant space. Its plush upholstery, intricate tufting, and metallic accents make it a standout piece that is sure to impress and delight.", + }, + ], + "key": "modern-upholstered-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Black:#000000","en-GB":"Black:#000000","de-DE":"Schwarz:#000000"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site","en-GB":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site","de-DE":"- Cotton Upholstery \\n- Standard Queen size\\n- Assembly on site"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6000, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "259900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 259900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MUQB-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Modern Upholstered Queen Bed", + }, + { + "locale": "de-DE", + "value": "Modernes gepolstertes Queensize-Bett", + }, + { + "locale": "en-US", + "value": "Modern Upholstered Queen Bed", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 259900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "modern-upholstered-queen-bed", + }, + { + "locale": "de-DE", + "value": "modernes-gepolstertes-queensize-bett", + }, + { + "locale": "en-US", + "value": "modern-upholstered-queen-bed", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MUQB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Modern Upholstered Queen Bed", - }, - { - "locale": "de-DE", - "value": "Modernes gepolstertes Queensize-Bett", - }, - { - "locale": "en-US", - "value": "Modern Upholstered Queen Bed", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "modern-upholstered-queen-bed", - }, - { - "locale": "de-DE", - "value": "modernes-gepolstertes-queensize-bett", - }, - { - "locale": "en-US", - "value": "modern-upholstered-queen-bed", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed.spec.ts index 20c8575e7..f46e49af9 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/modern-upholstered-twin-bed.spec.ts @@ -6,1009 +6,1009 @@ describe(`with modernUpholsteredTwinBed preset`, () => { const modernUpholsteredTwinBedPreset = modernUpholsteredTwinBed().build(); expect(modernUpholsteredTwinBedPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Doppelbett mit Stoffbezug im modernen Stil ist ein elegantes und stilvolles Möbelstück, das jedem Schlafzimmer einen Hauch von Raffinesse verleihen kann. Das Bett zeichnet sich durch ein einfaches und minimalistisches Design aus, mit klaren Linien und geometrischen Formen, die für den modernen Stil charakteristisch sind. Der Rahmen des Bettes ist aus Holz gefertigt und hat ein niedriges Profil, das einen schlanken und modernen Look erzeugt. Das Kopfteil, das Fußteil und die Seitengitter des Bettes sind mit Stoff bezogen und bieten eine weiche und bequeme Oberfläche zum Anlehnen und Ausruhen. Das Bett hat eine Größe von zwei Einzelbetten und ist daher ideal für kleinere Schlafzimmer oder Gästezimmer. Es kann mit einer Reihe von Bettwaren und Accessoires kombiniert werden, um einen zusammenhängenden und stilvollen Look zu schaffen, der Ihren persönlichen Stil widerspiegelt. Insgesamt ist ein Doppelbett mit Stoffbezug im modernen Stil ein elegantes und raffiniertes Möbelstück, das jedes Schlafzimmer aufwerten kann. Das schlichte, aber stilvolle Design in Kombination mit der bequemen und weichen Polsterung machen es zu einem perfekten Ort, um sich stilvoll auszuruhen und zu entspannen.", - "en": undefined, - "en-GB": "A twin size bed with fabric upholstery in a modern style is a sleek and stylish piece of furniture that can add a touch of sophistication to any bedroom. The bed typically features a simple and minimalistic design, with clean lines and geometric shapes that are characteristic of modern style. The frame of the bed is made from wood, with a low profile that creates a sleek and contemporary look. The fabric upholstery covers the headboard, footboard, and side rails of the bed, providing a soft and comfortable surface to lean against or rest on. The size of the bed is twin, which makes it an ideal choice for smaller bedrooms or guest rooms. It can be paired with a range of bedding and accessories to create a cohesive and stylish look that reflects your personal style. Overall, a twin size bed with fabric upholstery in a modern style is a sleek and sophisticated piece of furniture that can elevate the look and feel of any bedroom. Its simple yet stylish design, combined with its comfortable and soft upholstery, make it a perfect place to rest and relax in style.", - "en-US": "A twin size bed with fabric upholstery in a modern style is a sleek and stylish piece of furniture that can add a touch of sophistication to any bedroom. The bed typically features a simple and minimalistic design, with clean lines and geometric shapes that are characteristic of modern style. The frame of the bed is made from wood, with a low profile that creates a sleek and contemporary look. The fabric upholstery covers the headboard, footboard, and side rails of the bed, providing a soft and comfortable surface to lean against or rest on. The size of the bed is twin, which makes it an ideal choice for smaller bedrooms or guest rooms. It can be paired with a range of bedding and accessories to create a cohesive and stylish look that reflects your personal style. Overall, a twin size bed with fabric upholstery in a modern style is a sleek and sophisticated piece of furniture that can elevate the look and feel of any bedroom. Its simple yet stylish design, combined with its comfortable and soft upholstery, make it a perfect place to rest and relax in style.", - "fr": undefined, - }, - "key": "modern-upholstered-twin-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-GB": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-US": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Grey:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.1.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.2.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MUTB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Modernes gepolstertes Doppelbett", - "en": undefined, - "en-GB": "Modern Upholstered Twin Bed", - "en-US": "Modern Upholstered Twin Bed", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "modernes-gepolstertes-einzelbett", - "en": undefined, - "en-GB": "modern-upholstered-twin-bed", - "en-US": "modern-upholstered-twin-bed", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-GB": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-US": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Grey:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - { - "name": "color", - "value": { - "de-DE": "See grün:#2E8B57", - "en-GB": "Sea Green:#2E8B57", - "en-US": "Sea Green:#2E8B57", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.2.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.3.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MUTB-02", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-GB": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-US": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Grau:#808080", - "en-GB": "Grey:#808080", - "en-US": "Gray:#808080", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Grey:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.2.jpeg", - }, - { - "dimensions": { - "h": 4000, - "w": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.3.jpeg", - }, - { - "dimensions": { - "h": 4000, - "w": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MUTB-03", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-GB": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - "en-US": "- Cotton upholstery -- Manufactured wood -- Twin size -- Assembled on site", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Grey:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.2.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.1.jpeg", - }, - { - "dimensions": { - "h": 3000, - "w": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Doppelbett mit Stoffbezug im modernen Stil ist ein elegantes und stilvolles Möbelstück, das jedem Schlafzimmer einen Hauch von Raffinesse verleihen kann. Das Bett zeichnet sich durch ein einfaches und minimalistisches Design aus, mit klaren Linien und geometrischen Formen, die für den modernen Stil charakteristisch sind. Der Rahmen des Bettes ist aus Holz gefertigt und hat ein niedriges Profil, das einen schlanken und modernen Look erzeugt. Das Kopfteil, das Fußteil und die Seitengitter des Bettes sind mit Stoff bezogen und bieten eine weiche und bequeme Oberfläche zum Anlehnen und Ausruhen. Das Bett hat eine Größe von zwei Einzelbetten und ist daher ideal für kleinere Schlafzimmer oder Gästezimmer. Es kann mit einer Reihe von Bettwaren und Accessoires kombiniert werden, um einen zusammenhängenden und stilvollen Look zu schaffen, der Ihren persönlichen Stil widerspiegelt. Insgesamt ist ein Doppelbett mit Stoffbezug im modernen Stil ein elegantes und raffiniertes Möbelstück, das jedes Schlafzimmer aufwerten kann. Das schlichte, aber stilvolle Design in Kombination mit der bequemen und weichen Polsterung machen es zu einem perfekten Ort, um sich stilvoll auszuruhen und zu entspannen.", + "en": undefined, + "en-GB": "A twin size bed with fabric upholstery in a modern style is a sleek and stylish piece of furniture that can add a touch of sophistication to any bedroom. The bed typically features a simple and minimalistic design, with clean lines and geometric shapes that are characteristic of modern style. The frame of the bed is made from wood, with a low profile that creates a sleek and contemporary look. The fabric upholstery covers the headboard, footboard, and side rails of the bed, providing a soft and comfortable surface to lean against or rest on. The size of the bed is twin, which makes it an ideal choice for smaller bedrooms or guest rooms. It can be paired with a range of bedding and accessories to create a cohesive and stylish look that reflects your personal style. Overall, a twin size bed with fabric upholstery in a modern style is a sleek and sophisticated piece of furniture that can elevate the look and feel of any bedroom. Its simple yet stylish design, combined with its comfortable and soft upholstery, make it a perfect place to rest and relax in style.", + "en-US": "A twin size bed with fabric upholstery in a modern style is a sleek and stylish piece of furniture that can add a touch of sophistication to any bedroom. The bed typically features a simple and minimalistic design, with clean lines and geometric shapes that are characteristic of modern style. The frame of the bed is made from wood, with a low profile that creates a sleek and contemporary look. The fabric upholstery covers the headboard, footboard, and side rails of the bed, providing a soft and comfortable surface to lean against or rest on. The size of the bed is twin, which makes it an ideal choice for smaller bedrooms or guest rooms. It can be paired with a range of bedding and accessories to create a cohesive and stylish look that reflects your personal style. Overall, a twin size bed with fabric upholstery in a modern style is a sleek and sophisticated piece of furniture that can elevate the look and feel of any bedroom. Its simple yet stylish design, combined with its comfortable and soft upholstery, make it a perfect place to rest and relax in style.", + "fr": undefined, + }, + "key": "modern-upholstered-twin-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-GB": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-US": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Grey:#778899", + "en-US": "Lightslate Gray:#778899", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.1.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.2.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.3.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - ], - "sku": "MUTB-04", - }, - ], -} -`); + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUTB-01", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Modernes gepolstertes Doppelbett", + "en": undefined, + "en-GB": "Modern Upholstered Twin Bed", + "en-US": "Modern Upholstered Twin Bed", + "fr": undefined, + }, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "modernes-gepolstertes-einzelbett", + "en": undefined, + "en-GB": "modern-upholstered-twin-bed", + "en-US": "modern-upholstered-twin-bed", + "fr": undefined, + }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-GB": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-US": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Grey:#778899", + "en-US": "Lightslate Gray:#778899", + }, + }, + { + "name": "color", + "value": { + "de-DE": "See grün:#2E8B57", + "en-GB": "Sea Green:#2E8B57", + "en-US": "Sea Green:#2E8B57", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.2.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.3.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUTB-02", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-GB": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-US": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Grau:#808080", + "en-GB": "Grey:#808080", + "en-US": "Gray:#808080", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Grey:#778899", + "en-US": "Lightslate Gray:#778899", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.2.jpeg", + }, + { + "dimensions": { + "h": 4000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.3.jpeg", + }, + { + "dimensions": { + "h": 4000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUTB-03", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-GB": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + "en-US": "- Cotton upholstery + - Manufactured wood + - Twin size + - Assembled on site", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Grey:#778899", + "en-US": "Lightslate Gray:#778899", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.2.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.1.jpeg", + }, + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + ], + "sku": "MUTB-04", + }, + ], + } + `); }); it(`should return a modernUpholsteredTwinBed preset when built for graphql`, () => { const modernUpholsteredTwinBedPresetGraphql = modernUpholsteredTwinBed().buildGraphql(); expect(modernUpholsteredTwinBedPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "the-modernist", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A twin size bed with fabric upholstery in a modern style is a sleek and stylish piece of furniture that can add a touch of sophistication to any bedroom. The bed typically features a simple and minimalistic design, with clean lines and geometric shapes that are characteristic of modern style. The frame of the bed is made from wood, with a low profile that creates a sleek and contemporary look. The fabric upholstery covers the headboard, footboard, and side rails of the bed, providing a soft and comfortable surface to lean against or rest on. The size of the bed is twin, which makes it an ideal choice for smaller bedrooms or guest rooms. It can be paired with a range of bedding and accessories to create a cohesive and stylish look that reflects your personal style. Overall, a twin size bed with fabric upholstery in a modern style is a sleek and sophisticated piece of furniture that can elevate the look and feel of any bedroom. Its simple yet stylish design, combined with its comfortable and soft upholstery, make it a perfect place to rest and relax in style.", - }, - { - "locale": "de-DE", - "value": "Ein Doppelbett mit Stoffbezug im modernen Stil ist ein elegantes und stilvolles Möbelstück, das jedem Schlafzimmer einen Hauch von Raffinesse verleihen kann. Das Bett zeichnet sich durch ein einfaches und minimalistisches Design aus, mit klaren Linien und geometrischen Formen, die für den modernen Stil charakteristisch sind. Der Rahmen des Bettes ist aus Holz gefertigt und hat ein niedriges Profil, das einen schlanken und modernen Look erzeugt. Das Kopfteil, das Fußteil und die Seitengitter des Bettes sind mit Stoff bezogen und bieten eine weiche und bequeme Oberfläche zum Anlehnen und Ausruhen. Das Bett hat eine Größe von zwei Einzelbetten und ist daher ideal für kleinere Schlafzimmer oder Gästezimmer. Es kann mit einer Reihe von Bettwaren und Accessoires kombiniert werden, um einen zusammenhängenden und stilvollen Look zu schaffen, der Ihren persönlichen Stil widerspiegelt. Insgesamt ist ein Doppelbett mit Stoffbezug im modernen Stil ein elegantes und raffiniertes Möbelstück, das jedes Schlafzimmer aufwerten kann. Das schlichte, aber stilvolle Design in Kombination mit der bequemen und weichen Polsterung machen es zu einem perfekten Ort, um sich stilvoll auszuruhen und zu entspannen.", - }, - { - "locale": "en-US", - "value": "A twin size bed with fabric upholstery in a modern style is a sleek and stylish piece of furniture that can add a touch of sophistication to any bedroom. The bed typically features a simple and minimalistic design, with clean lines and geometric shapes that are characteristic of modern style. The frame of the bed is made from wood, with a low profile that creates a sleek and contemporary look. The fabric upholstery covers the headboard, footboard, and side rails of the bed, providing a soft and comfortable surface to lean against or rest on. The size of the bed is twin, which makes it an ideal choice for smaller bedrooms or guest rooms. It can be paired with a range of bedding and accessories to create a cohesive and stylish look that reflects your personal style. Overall, a twin size bed with fabric upholstery in a modern style is a sleek and sophisticated piece of furniture that can elevate the look and feel of any bedroom. Its simple yet stylish design, combined with its comfortable and soft upholstery, make it a perfect place to rest and relax in style.", - }, - ], - "key": "modern-upholstered-twin-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", - }, - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.1.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.2.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "EUR", - }, - }, - }, { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "MUTB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Modern Upholstered Twin Bed", - }, - { - "locale": "de-DE", - "value": "Modernes gepolstertes Doppelbett", - }, - { - "locale": "en-US", - "value": "Modern Upholstered Twin Bed", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "modern-upholstered-twin-bed", - }, - { - "locale": "de-DE", - "value": "modernes-gepolstertes-einzelbett", - }, - { - "locale": "en-US", - "value": "modern-upholstered-twin-bed", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", - }, - { - "name": "finish", - "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", - }, - { - "name": "color", - "value": "{"en-US":"Sea Green:#2E8B57","en-GB":"Sea Green:#2E8B57","de-DE":"See grün:#2E8B57"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.2.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.3.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "the-modernist", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A twin size bed with fabric upholstery in a modern style is a sleek and stylish piece of furniture that can add a touch of sophistication to any bedroom. The bed typically features a simple and minimalistic design, with clean lines and geometric shapes that are characteristic of modern style. The frame of the bed is made from wood, with a low profile that creates a sleek and contemporary look. The fabric upholstery covers the headboard, footboard, and side rails of the bed, providing a soft and comfortable surface to lean against or rest on. The size of the bed is twin, which makes it an ideal choice for smaller bedrooms or guest rooms. It can be paired with a range of bedding and accessories to create a cohesive and stylish look that reflects your personal style. Overall, a twin size bed with fabric upholstery in a modern style is a sleek and sophisticated piece of furniture that can elevate the look and feel of any bedroom. Its simple yet stylish design, combined with its comfortable and soft upholstery, make it a perfect place to rest and relax in style.", + }, + { + "locale": "de-DE", + "value": "Ein Doppelbett mit Stoffbezug im modernen Stil ist ein elegantes und stilvolles Möbelstück, das jedem Schlafzimmer einen Hauch von Raffinesse verleihen kann. Das Bett zeichnet sich durch ein einfaches und minimalistisches Design aus, mit klaren Linien und geometrischen Formen, die für den modernen Stil charakteristisch sind. Der Rahmen des Bettes ist aus Holz gefertigt und hat ein niedriges Profil, das einen schlanken und modernen Look erzeugt. Das Kopfteil, das Fußteil und die Seitengitter des Bettes sind mit Stoff bezogen und bieten eine weiche und bequeme Oberfläche zum Anlehnen und Ausruhen. Das Bett hat eine Größe von zwei Einzelbetten und ist daher ideal für kleinere Schlafzimmer oder Gästezimmer. Es kann mit einer Reihe von Bettwaren und Accessoires kombiniert werden, um einen zusammenhängenden und stilvollen Look zu schaffen, der Ihren persönlichen Stil widerspiegelt. Insgesamt ist ein Doppelbett mit Stoffbezug im modernen Stil ein elegantes und raffiniertes Möbelstück, das jedes Schlafzimmer aufwerten kann. Das schlichte, aber stilvolle Design in Kombination mit der bequemen und weichen Polsterung machen es zu einem perfekten Ort, um sich stilvoll auszuruhen und zu entspannen.", + }, + { + "locale": "en-US", + "value": "A twin size bed with fabric upholstery in a modern style is a sleek and stylish piece of furniture that can add a touch of sophistication to any bedroom. The bed typically features a simple and minimalistic design, with clean lines and geometric shapes that are characteristic of modern style. The frame of the bed is made from wood, with a low profile that creates a sleek and contemporary look. The fabric upholstery covers the headboard, footboard, and side rails of the bed, providing a soft and comfortable surface to lean against or rest on. The size of the bed is twin, which makes it an ideal choice for smaller bedrooms or guest rooms. It can be paired with a range of bedding and accessories to create a cohesive and stylish look that reflects your personal style. Overall, a twin size bed with fabric upholstery in a modern style is a sleek and sophisticated piece of furniture that can elevate the look and feel of any bedroom. Its simple yet stylish design, combined with its comfortable and soft upholstery, make it a perfect place to rest and relax in style.", + }, + ], + "key": "modern-upholstered-twin-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "GBP", + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "USD", + { + "name": "finish", + "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", }, - }, - }, - ], - "sku": "MUTB-02", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", - }, - { - "name": "color", - "value": "{"en-US":"Gray:#808080","en-GB":"Grey:#808080","de-DE":"Grau:#808080"}", - }, - { - "name": "finish", - "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.2.jpeg", - }, - { - "dimensions": { - "height": 4000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.3.jpeg", - }, - { - "dimensions": { - "height": 4000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "EUR", + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.1.jpeg", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "GBP", + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.2.jpeg", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "USD", + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-1.3.jpeg", }, - }, - }, - ], - "sku": "MUTB-03", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", - }, - { - "name": "finish", - "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", - }, - { - "name": "color", - "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.2.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.1.jpeg", - }, - { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "EUR", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "GBP", + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 45000, - "currencyCode": "USD", + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, }, - }, - }, - ], - "sku": "MUTB-04", - }, - ], -} -`); + ], + "sku": "MUTB-01", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Modern Upholstered Twin Bed", + }, + { + "locale": "de-DE", + "value": "Modernes gepolstertes Doppelbett", + }, + { + "locale": "en-US", + "value": "Modern Upholstered Twin Bed", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "modern-upholstered-twin-bed", + }, + { + "locale": "de-DE", + "value": "modernes-gepolstertes-einzelbett", + }, + { + "locale": "en-US", + "value": "modern-upholstered-twin-bed", + }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", + }, + { + "name": "finish", + "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", + }, + { + "name": "color", + "value": "{"en-US":"Sea Green:#2E8B57","en-GB":"Sea Green:#2E8B57","de-DE":"See grün:#2E8B57"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.2.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.3.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MUTB-02", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", + }, + { + "name": "color", + "value": "{"en-US":"Gray:#808080","en-GB":"Grey:#808080","de-DE":"Grau:#808080"}", + }, + { + "name": "finish", + "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.2.jpeg", + }, + { + "dimensions": { + "height": 4000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.3.jpeg", + }, + { + "dimensions": { + "height": 4000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-3.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MUTB-03", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","en-GB":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site","de-DE":"- Cotton upholstery \\n- Manufactured wood\\n- Twin size\\n- Assembled on site"}", + }, + { + "name": "finish", + "value": "{"en-US":"Lightslate Gray:#778899","en-GB":"Lightslate Grey:#778899","de-DE":"Helles Schiefer grau:#778899"}", + }, + { + "name": "color", + "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.2.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.1.jpeg", + }, + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Modern_Upholstered_Twin_Bed-4.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "45000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 45000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MUTB-04", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa.spec.ts index 72d6ed3f0..63b12b28d 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/nala-two-seater-sofa.spec.ts @@ -5,1504 +5,1504 @@ describe(`with nalaTwoSeaterSofa preset`, () => { it(`should return a nalaTwoSeaterSofa preset`, () => { const nalaTwoSeaterSofaPreset = nalaTwoSeaterSofa().build(); expect(nalaTwoSeaterSofaPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "the-traditionalist", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses moderne 2-Sitzer-Sofa ist eine stilvolle und komfortable Ergänzung für jeden Wohnbereich. Das Sofa hat ein schlichtes und minimalistisches Design mit klaren Linien und einer zeitgenössischen Ästhetik. Es ist mit einem hochwertigen Baumwollstoff gepolstert, der sich weich anfühlt und leicht zu reinigen ist. Die beiden Sitzkissen sind weich und stützend und bieten einen bequemen Platz zum Sitzen und Entspannen. Die Rückenlehne ist gut gepolstert und stützt den Rücken, während die Armlehnen sanft geschwungen sind, um ein bequemes und entspanntes Gefühl zu vermitteln. Das Gestell des Sofas ist aus robustem Holz oder Metall gefertigt, so dass es viele Jahre halten wird. Mit seinem modernen und minimalistischen Stil fügt sich dieses Sofa nahtlos in jede moderne Einrichtung ein, während die bequeme und hochwertige Polsterung es zu einem großartigen Ort zum Entspannen und Relaxen macht.", - "en": undefined, - "en-GB": "This modern 2-seater sofa is a stylish and comfortable addition to any living space. The sofa features a sleek and minimalistic design, with clean lines and a contemporary aesthetic. It is upholstered in high-quality cotton fabric, which is soft to the touch and easy to clean. The two seat cushions are plush and supportive, offering a comfortable place to sit and relax. The backrest is well-padded, providing ample back support, while the armrests are gently curved for a comfortable and relaxed feel. The sofa's frame is made from sturdy wood, ensuring it will last for years to come. With a modern and minimalist style, this sofa can fit in seamlessly with any modern decor, while the comfortable and high-quality upholstery makes it a great place to relax and unwind.", - "en-US": "This modern 2-seater sofa is a stylish and comfortable addition to any living space. The sofa features a sleek and minimalistic design, with clean lines and a contemporary aesthetic. It is upholstered in high-quality cotton fabric, which is soft to the touch and easy to clean. The two seat cushions are plush and supportive, offering a comfortable place to sit and relax. The backrest is well-padded, providing ample back support, while the armrests are gently curved for a comfortable and relaxed feel. The sofa's frame is made from sturdy wood, ensuring it will last for years to come. With a modern and minimalist style, this sofa can fit in seamlessly with any modern decor, while the comfortable and high-quality upholstery makes it a great place to relax and unwind.", - "fr": undefined, - }, - "key": "nala-two-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Helles Schiefer grau:#778899", - "en-GB": "Lightslate Gray:#778899", - "en-US": "Lightslate Gray:#778899", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Nala Zweisitzer-Sofa", - "en": undefined, - "en-GB": "Nala Two-Seater Sofa", - "en-US": "Nala Two-Seater Sofa", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "nala-zweisitzer-sofa", - "en": undefined, - "en-GB": "nala-two-seater-sofa", - "en-US": "nala-two-seater-sofa", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Königs blau:#4169E1", - "en-GB": "Royal Blue:#4169E1", - "en-US": "Royal Blue:#4169E1", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.1.jpeg", - }, - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-02", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Peru:#CD853F", - "en-GB": "Peru:#CD853F", - "en-US": "Peru:#CD853F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.1.jpeg", - }, - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-03", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Tiefes Himmel blau:#00BFFF", - "en-GB": "Deep Sky Blue:#00BFFF", - "en-US": "Deep Sky Blue:#00BFFF", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-4.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTTS-04", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Grey:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.1.jpeg", - }, - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-05", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Dunkles See grün:#8FBC8F", - "en-GB": "Dark Sea Green:#8FBC8F", - "en-US": "Dark Sea Green:#8FBC8F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-6.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-06", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": { - "de-DE": "Dunkles Schiefer grau:#2F4F4F", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Dark Slate Gray:#2F4F4F", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", - }, - }, - { - "name": "new-arrival", - "value": true, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Zweisitzer-Sofa -- Polsterung aus Baumwollleinen", - "en-GB": "- Two-seater sofa -- Cotton linen upholstery", - "en-US": "- Two-seater sofa -- Cotton linen upholstery", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3376, - "w": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-7.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NTSS-07", - }, - ], -} -`); - }); - - it(`should return a nalaTwoSeaterSofa preset when built for graphql`, () => { - const nalaTwoSeaterSofaPresetGraphql = - nalaTwoSeaterSofa().buildGraphql(); - expect(nalaTwoSeaterSofaPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "the-traditionalist", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This modern 2-seater sofa is a stylish and comfortable addition to any living space. The sofa features a sleek and minimalistic design, with clean lines and a contemporary aesthetic. It is upholstered in high-quality cotton fabric, which is soft to the touch and easy to clean. The two seat cushions are plush and supportive, offering a comfortable place to sit and relax. The backrest is well-padded, providing ample back support, while the armrests are gently curved for a comfortable and relaxed feel. The sofa's frame is made from sturdy wood, ensuring it will last for years to come. With a modern and minimalist style, this sofa can fit in seamlessly with any modern decor, while the comfortable and high-quality upholstery makes it a great place to relax and unwind.", - }, - { - "locale": "de-DE", - "value": "Dieses moderne 2-Sitzer-Sofa ist eine stilvolle und komfortable Ergänzung für jeden Wohnbereich. Das Sofa hat ein schlichtes und minimalistisches Design mit klaren Linien und einer zeitgenössischen Ästhetik. Es ist mit einem hochwertigen Baumwollstoff gepolstert, der sich weich anfühlt und leicht zu reinigen ist. Die beiden Sitzkissen sind weich und stützend und bieten einen bequemen Platz zum Sitzen und Entspannen. Die Rückenlehne ist gut gepolstert und stützt den Rücken, während die Armlehnen sanft geschwungen sind, um ein bequemes und entspanntes Gefühl zu vermitteln. Das Gestell des Sofas ist aus robustem Holz oder Metall gefertigt, so dass es viele Jahre halten wird. Mit seinem modernen und minimalistischen Stil fügt sich dieses Sofa nahtlos in jede moderne Einrichtung ein, während die bequeme und hochwertige Polsterung es zu einem großartigen Ort zum Entspannen und Relaxen macht.", - }, - { - "locale": "en-US", - "value": "This modern 2-seater sofa is a stylish and comfortable addition to any living space. The sofa features a sleek and minimalistic design, with clean lines and a contemporary aesthetic. It is upholstered in high-quality cotton fabric, which is soft to the touch and easy to clean. The two seat cushions are plush and supportive, offering a comfortable place to sit and relax. The backrest is well-padded, providing ample back support, while the armrests are gently curved for a comfortable and relaxed feel. The sofa's frame is made from sturdy wood, ensuring it will last for years to come. With a modern and minimalist style, this sofa can fit in seamlessly with any modern decor, while the comfortable and high-quality upholstery makes it a great place to relax and unwind.", - }, - ], - "key": "nala-two-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Lightslate Gray:#778899","de-DE":"Helles Schiefer grau:#778899","en-US":"Lightslate Gray:#778899"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", - }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", - }, - }, - }, - ], - "sku": "NTSS-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Nala Two-Seater Sofa", - }, - { - "locale": "de-DE", - "value": "Nala Zweisitzer-Sofa", - }, - { - "locale": "en-US", - "value": "Nala Two-Seater Sofa", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "nala-two-seater-sofa", - }, - { - "locale": "de-DE", - "value": "nala-zweisitzer-sofa", - }, - { - "locale": "en-US", - "value": "nala-two-seater-sofa", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.1.jpeg", - }, - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "the-traditionalist", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses moderne 2-Sitzer-Sofa ist eine stilvolle und komfortable Ergänzung für jeden Wohnbereich. Das Sofa hat ein schlichtes und minimalistisches Design mit klaren Linien und einer zeitgenössischen Ästhetik. Es ist mit einem hochwertigen Baumwollstoff gepolstert, der sich weich anfühlt und leicht zu reinigen ist. Die beiden Sitzkissen sind weich und stützend und bieten einen bequemen Platz zum Sitzen und Entspannen. Die Rückenlehne ist gut gepolstert und stützt den Rücken, während die Armlehnen sanft geschwungen sind, um ein bequemes und entspanntes Gefühl zu vermitteln. Das Gestell des Sofas ist aus robustem Holz oder Metall gefertigt, so dass es viele Jahre halten wird. Mit seinem modernen und minimalistischen Stil fügt sich dieses Sofa nahtlos in jede moderne Einrichtung ein, während die bequeme und hochwertige Polsterung es zu einem großartigen Ort zum Entspannen und Relaxen macht.", + "en": undefined, + "en-GB": "This modern 2-seater sofa is a stylish and comfortable addition to any living space. The sofa features a sleek and minimalistic design, with clean lines and a contemporary aesthetic. It is upholstered in high-quality cotton fabric, which is soft to the touch and easy to clean. The two seat cushions are plush and supportive, offering a comfortable place to sit and relax. The backrest is well-padded, providing ample back support, while the armrests are gently curved for a comfortable and relaxed feel. The sofa's frame is made from sturdy wood, ensuring it will last for years to come. With a modern and minimalist style, this sofa can fit in seamlessly with any modern decor, while the comfortable and high-quality upholstery makes it a great place to relax and unwind.", + "en-US": "This modern 2-seater sofa is a stylish and comfortable addition to any living space. The sofa features a sleek and minimalistic design, with clean lines and a contemporary aesthetic. It is upholstered in high-quality cotton fabric, which is soft to the touch and easy to clean. The two seat cushions are plush and supportive, offering a comfortable place to sit and relax. The backrest is well-padded, providing ample back support, while the armrests are gently curved for a comfortable and relaxed feel. The sofa's frame is made from sturdy wood, ensuring it will last for years to come. With a modern and minimalist style, this sofa can fit in seamlessly with any modern decor, while the comfortable and high-quality upholstery makes it a great place to relax and unwind.", + "fr": undefined, + }, + "key": "nala-two-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Helles Schiefer grau:#778899", + "en-GB": "Lightslate Gray:#778899", + "en-US": "Lightslate Gray:#778899", + }, }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", + { + "name": "new-arrival", + "value": true, }, - }, - }, - ], - "sku": "NTSS-02", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.1.jpeg", - }, - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.2.jpeg", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.1.jpeg", }, - }, - }, - ], - "sku": "NTSS-03", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Deep Sky Blue:#00BFFF","de-DE":"Tiefes Himmel blau:#00BFFF","en-US":"Deep Sky Blue:#00BFFF"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-4.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, }, - }, - }, - ], - "sku": "NTTS-04", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "color", - "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.1.jpeg", - }, - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", + ], + "sku": "NTSS-01", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Nala Zweisitzer-Sofa", + "en": undefined, + "en-GB": "Nala Two-Seater Sofa", + "en-US": "Nala Two-Seater Sofa", + "fr": undefined, + }, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "nala-zweisitzer-sofa", + "en": undefined, + "en-GB": "nala-two-seater-sofa", + "en-US": "nala-two-seater-sofa", + "fr": undefined, + }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Königs blau:#4169E1", + "en-GB": "Royal Blue:#4169E1", + "en-US": "Royal Blue:#4169E1", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.1.jpeg", + }, + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-02", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Peru:#CD853F", + "en-GB": "Peru:#CD853F", + "en-US": "Peru:#CD853F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.1.jpeg", + }, + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-03", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Tiefes Himmel blau:#00BFFF", + "en-GB": "Deep Sky Blue:#00BFFF", + "en-US": "Deep Sky Blue:#00BFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-4.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTTS-04", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Grey:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.1.jpeg", + }, + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-05", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Dunkles See grün:#8FBC8F", + "en-GB": "Dark Sea Green:#8FBC8F", + "en-US": "Dark Sea Green:#8FBC8F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-6.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-06", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Dunkles Schiefer grau:#2F4F4F", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Dark Slate Gray:#2F4F4F", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": true, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Zweisitzer-Sofa + - Polsterung aus Baumwollleinen", + "en-GB": "- Two-seater sofa + - Cotton linen upholstery", + "en-US": "- Two-seater sofa + - Cotton linen upholstery", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3376, + "w": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-7.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NTSS-07", + }, + ], + } + `); + }); + + it(`should return a nalaTwoSeaterSofa preset when built for graphql`, () => { + const nalaTwoSeaterSofaPresetGraphql = + nalaTwoSeaterSofa().buildGraphql(); + expect(nalaTwoSeaterSofaPresetGraphql).toMatchInlineSnapshot(` + { + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "the-traditionalist", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This modern 2-seater sofa is a stylish and comfortable addition to any living space. The sofa features a sleek and minimalistic design, with clean lines and a contemporary aesthetic. It is upholstered in high-quality cotton fabric, which is soft to the touch and easy to clean. The two seat cushions are plush and supportive, offering a comfortable place to sit and relax. The backrest is well-padded, providing ample back support, while the armrests are gently curved for a comfortable and relaxed feel. The sofa's frame is made from sturdy wood, ensuring it will last for years to come. With a modern and minimalist style, this sofa can fit in seamlessly with any modern decor, while the comfortable and high-quality upholstery makes it a great place to relax and unwind.", + }, + { + "locale": "de-DE", + "value": "Dieses moderne 2-Sitzer-Sofa ist eine stilvolle und komfortable Ergänzung für jeden Wohnbereich. Das Sofa hat ein schlichtes und minimalistisches Design mit klaren Linien und einer zeitgenössischen Ästhetik. Es ist mit einem hochwertigen Baumwollstoff gepolstert, der sich weich anfühlt und leicht zu reinigen ist. Die beiden Sitzkissen sind weich und stützend und bieten einen bequemen Platz zum Sitzen und Entspannen. Die Rückenlehne ist gut gepolstert und stützt den Rücken, während die Armlehnen sanft geschwungen sind, um ein bequemes und entspanntes Gefühl zu vermitteln. Das Gestell des Sofas ist aus robustem Holz oder Metall gefertigt, so dass es viele Jahre halten wird. Mit seinem modernen und minimalistischen Stil fügt sich dieses Sofa nahtlos in jede moderne Einrichtung ein, während die bequeme und hochwertige Polsterung es zu einem großartigen Ort zum Entspannen und Relaxen macht.", + }, + { + "locale": "en-US", + "value": "This modern 2-seater sofa is a stylish and comfortable addition to any living space. The sofa features a sleek and minimalistic design, with clean lines and a contemporary aesthetic. It is upholstered in high-quality cotton fabric, which is soft to the touch and easy to clean. The two seat cushions are plush and supportive, offering a comfortable place to sit and relax. The backrest is well-padded, providing ample back support, while the armrests are gently curved for a comfortable and relaxed feel. The sofa's frame is made from sturdy wood, ensuring it will last for years to come. With a modern and minimalist style, this sofa can fit in seamlessly with any modern decor, while the comfortable and high-quality upholstery makes it a great place to relax and unwind.", + }, + ], + "key": "nala-two-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Lightslate Gray:#778899","de-DE":"Helles Schiefer grau:#778899","en-US":"Lightslate Gray:#778899"}", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", + { + "name": "new-arrival", + "value": "true", }, - }, - }, - ], - "sku": "NTSS-05", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Dark Sea Green:#8FBC8F","de-DE":"Dunkles See grün:#8FBC8F","en-US":"Dark Sea Green:#8FBC8F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-6.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.2.jpeg", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-1.1.jpeg", }, - }, - }, - ], - "sku": "NTSS-06", - }, - { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F","en-US":"Dark Slate Gray:#2F4F4F"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "true", - }, - { - "name": "productspec", - "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3376, - "width": 6000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-7.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, }, - }, - }, - ], - "sku": "NTSS-07", - }, - ], -} -`); + ], + "sku": "NTSS-01", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Nala Two-Seater Sofa", + }, + { + "locale": "de-DE", + "value": "Nala Zweisitzer-Sofa", + }, + { + "locale": "en-US", + "value": "Nala Two-Seater Sofa", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", + }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "nala-two-seater-sofa", + }, + { + "locale": "de-DE", + "value": "nala-zweisitzer-sofa", + }, + { + "locale": "en-US", + "value": "nala-two-seater-sofa", + }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", + }, + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.1.jpeg", + }, + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-2.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-02", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.1.jpeg", + }, + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-3.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-03", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Deep Sky Blue:#00BFFF","de-DE":"Tiefes Himmel blau:#00BFFF","en-US":"Deep Sky Blue:#00BFFF"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-4.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTTS-04", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "color", + "value": "{"en-GB":"Light Grey:#D3D3D3","de-DE":"Hell grau:#D3D3D3","en-US":"Light Gray:#D3D3D3"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.1.jpeg", + }, + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-5.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-05", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Dark Sea Green:#8FBC8F","de-DE":"Dunkles See grün:#8FBC8F","en-US":"Dark Sea Green:#8FBC8F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-6.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-06", + }, + { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Dunkles Schiefer grau:#2F4F4F","en-US":"Dark Slate Gray:#2F4F4F"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "true", + }, + { + "name": "productspec", + "value": "{"en-GB":"- Two-seater sofa\\n- Cotton linen upholstery","de-DE":"- Zweisitzer-Sofa\\n- Polsterung aus Baumwollleinen","en-US":"- Two-seater sofa\\n- Cotton linen upholstery"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3376, + "width": 6000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Nala_Two_Seater_Sofa-7.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NTSS-07", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/natura-rug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/natura-rug.spec.ts index cca816f69..3f950b7d8 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/natura-rug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/natura-rug.spec.ts @@ -5,310 +5,342 @@ describe(`with naturaRug preset`, () => { it(`should return a naturaRug preset`, () => { const naturaRugPreset = naturaRug().build(); expect(naturaRugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein runder Teppich aus Naturfasern ist ein kreisförmiger Teppich, der aus Materialien hergestellt wird, die in der Natur vorkommen. Zu den Naturfasern, die üblicherweise für diese Art von Teppichen verwendet werden, gehören Jute, Sisal, Seegras und Bambus. Durch die Verwendung natürlicher Materialien haben diese Teppiche einen rustikalen und organischen Charakter, der einem Raum Wärme und Struktur verleihen kann. Die neutralen Farbtöne dieser Fasern machen sie außerdem vielseitig einsetzbar und passen zu einer Reihe von Einrichtungsstilen, von Bohème über Küsten- bis hin zu Landhausstil. Die Textur und Dicke eines runden Teppichs aus Naturfasern kann je nach verwendetem Material variieren. Jute und Sisal haben beispielsweise eine rauere Struktur und einen dünneren Flor, während Seegras und Bambus eine glattere Textur und einen dickeren Flor haben. Die Herstellung dieser Teppiche erfolgt häufig in Handarbeit, was zu ihrer Einzigartigkeit beiträgt. Auch die Web- oder Flechttechnik, mit der der Teppich hergestellt wird, kann das Design optisch aufwerten, z. B. durch ein Fischgräten- oder Chevron-Muster. Ein runder Teppich aus Naturfasern kann in einer Vielzahl von Räumen verwendet werden, vom Wohnzimmer über das Schlafzimmer bis zum Essbereich. Besonders beliebt sind sie im Bohème- und Küsten-Stil, wo sie dem Raum eine entspannte und lockere Atmosphäre verleihen können. Insgesamt ist ein runder Teppich aus Naturfasern eine stilvolle und umweltfreundliche Wahl für alle, die ihrer Einrichtung Textur und Wärme verleihen möchten.", - "en": undefined, - "en-GB": "A round area rug made of natural fibers is a type of rug that is circular in shape and made from materials that are found in nature. Natural fibers commonly used for this type of rug include jute, sisal, seagrass, and bamboo. These rugs have a rustic and organic feel due to the use of natural materials, which can add warmth and texture to a space. The neutral tones of these fibers also make them versatile and able to complement a range of decor styles, from bohemian to coastal to farmhouse. The texture and thickness of a round area rug made of natural fibers can vary depending on the material used. For example, jute and sisal have a rougher texture and thinner pile, while seagrass and bamboo have a smoother texture and thicker pile. The construction of these rugs is often done by hand, which adds to their unique and one-of-a-kind quality. The weaving or braiding technique used to create the rug can also add visual interest to the design, such as with a herringbone or chevron pattern. A round area rug made of natural fibers can be used in a variety of spaces, from living rooms to bedrooms to dining areas. They are especially popular in bohemian and coastal decor styles, where they can add a relaxed and laid-back vibe to the space. Overall, a round area rug made of natural fibers is a stylish and eco-friendly choice for anyone looking to add texture and warmth to their home decor.", - "en-US": "A round area rug made of natural fibers is a type of rug that is circular in shape and made from materials that are found in nature. Natural fibers commonly used for this type of rug include jute, sisal, seagrass, and bamboo. These rugs have a rustic and organic feel due to the use of natural materials, which can add warmth and texture to a space. The neutral tones of these fibers also make them versatile and able to complement a range of decor styles, from bohemian to coastal to farmhouse. The texture and thickness of a round area rug made of natural fibers can vary depending on the material used. For example, jute and sisal have a rougher texture and thinner pile, while seagrass and bamboo have a smoother texture and thicker pile. The construction of these rugs is often done by hand, which adds to their unique and one-of-a-kind quality. The weaving or braiding technique used to create the rug can also add visual interest to the design, such as with a herringbone or chevron pattern. A round area rug made of natural fibers can be used in a variety of spaces, from living rooms to bedrooms to dining areas. They are especially popular in bohemian and coastal decor styles, where they can add a relaxed and laid-back vibe to the space. Overall, a round area rug made of natural fibers is a stylish and eco-friendly choice for anyone looking to add texture and warmth to their home decor.", - "fr": undefined, - }, - "key": "natura-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- 6 Fuß x 6 Fuß", - "en-GB": "- 6ft x 6ft", - "en-US": "- 6ft x 6ft", + "categories": [ + { + "key": "rugs", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein runder Teppich aus Naturfasern ist ein kreisförmiger Teppich, der aus Materialien hergestellt wird, die in der Natur vorkommen. Zu den Naturfasern, die üblicherweise für diese Art von Teppichen verwendet werden, gehören Jute, Sisal, Seegras und Bambus. Durch die Verwendung natürlicher Materialien haben diese Teppiche einen rustikalen und organischen Charakter, der einem Raum Wärme und Struktur verleihen kann. Die neutralen Farbtöne dieser Fasern machen sie außerdem vielseitig einsetzbar und passen zu einer Reihe von Einrichtungsstilen, von Bohème über Küsten- bis hin zu Landhausstil. Die Textur und Dicke eines runden Teppichs aus Naturfasern kann je nach verwendetem Material variieren. Jute und Sisal haben beispielsweise eine rauere Struktur und einen dünneren Flor, während Seegras und Bambus eine glattere Textur und einen dickeren Flor haben. Die Herstellung dieser Teppiche erfolgt häufig in Handarbeit, was zu ihrer Einzigartigkeit beiträgt. Auch die Web- oder Flechttechnik, mit der der Teppich hergestellt wird, kann das Design optisch aufwerten, z. B. durch ein Fischgräten- oder Chevron-Muster. Ein runder Teppich aus Naturfasern kann in einer Vielzahl von Räumen verwendet werden, vom Wohnzimmer über das Schlafzimmer bis zum Essbereich. Besonders beliebt sind sie im Bohème- und Küsten-Stil, wo sie dem Raum eine entspannte und lockere Atmosphäre verleihen können. Insgesamt ist ein runder Teppich aus Naturfasern eine stilvolle und umweltfreundliche Wahl für alle, die ihrer Einrichtung Textur und Wärme verleihen möchten.", + "en": undefined, + "en-GB": "A round area rug made of natural fibers is a type of rug that is circular in shape and made from materials that are found in nature. Natural fibers commonly used for this type of rug include jute, sisal, seagrass, and bamboo. These rugs have a rustic and organic feel due to the use of natural materials, which can add warmth and texture to a space. The neutral tones of these fibers also make them versatile and able to complement a range of decor styles, from bohemian to coastal to farmhouse. The texture and thickness of a round area rug made of natural fibers can vary depending on the material used. For example, jute and sisal have a rougher texture and thinner pile, while seagrass and bamboo have a smoother texture and thicker pile. The construction of these rugs is often done by hand, which adds to their unique and one-of-a-kind quality. The weaving or braiding technique used to create the rug can also add visual interest to the design, such as with a herringbone or chevron pattern. A round area rug made of natural fibers can be used in a variety of spaces, from living rooms to bedrooms to dining areas. They are especially popular in bohemian and coastal decor styles, where they can add a relaxed and laid-back vibe to the space. Overall, a round area rug made of natural fibers is a stylish and eco-friendly choice for anyone looking to add texture and warmth to their home decor.", + "en-US": "A round area rug made of natural fibers is a type of rug that is circular in shape and made from materials that are found in nature. Natural fibers commonly used for this type of rug include jute, sisal, seagrass, and bamboo. These rugs have a rustic and organic feel due to the use of natural materials, which can add warmth and texture to a space. The neutral tones of these fibers also make them versatile and able to complement a range of decor styles, from bohemian to coastal to farmhouse. The texture and thickness of a round area rug made of natural fibers can vary depending on the material used. For example, jute and sisal have a rougher texture and thinner pile, while seagrass and bamboo have a smoother texture and thicker pile. The construction of these rugs is often done by hand, which adds to their unique and one-of-a-kind quality. The weaving or braiding technique used to create the rug can also add visual interest to the design, such as with a herringbone or chevron pattern. A round area rug made of natural fibers can be used in a variety of spaces, from living rooms to bedrooms to dining areas. They are especially popular in bohemian and coastal decor styles, where they can add a relaxed and laid-back vibe to the space. Overall, a round area rug made of natural fibers is a stylish and eco-friendly choice for anyone looking to add texture and warmth to their home decor.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", + "key": "natura-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 6 Fuß x 6 Fuß", + "en-GB": "- 6ft x 6ft", + "en-US": "- 6ft x 6ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 8000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Natura_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39950GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39950, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NR-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 8000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Natura Teppich", + "en": undefined, + "en-GB": "Natura Rug", + "en-US": "Natura Rug", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Natura_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "natura-teppich", + "en": undefined, + "en-GB": "natura-rug", + "en-US": "natura-rug", + "fr": undefined, }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NR-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Natura Teppich", - "en": undefined, - "en-GB": "Natura Rug", - "en-US": "Natura Rug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "natura-teppich", - "en": undefined, - "en-GB": "natura-rug", - "en-US": "natura-rug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a naturaRug preset when built for graphql`, () => { const naturaRugPresetGraphql = naturaRug().buildGraphql(); expect(naturaRugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "rugs", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A round area rug made of natural fibers is a type of rug that is circular in shape and made from materials that are found in nature. Natural fibers commonly used for this type of rug include jute, sisal, seagrass, and bamboo. These rugs have a rustic and organic feel due to the use of natural materials, which can add warmth and texture to a space. The neutral tones of these fibers also make them versatile and able to complement a range of decor styles, from bohemian to coastal to farmhouse. The texture and thickness of a round area rug made of natural fibers can vary depending on the material used. For example, jute and sisal have a rougher texture and thinner pile, while seagrass and bamboo have a smoother texture and thicker pile. The construction of these rugs is often done by hand, which adds to their unique and one-of-a-kind quality. The weaving or braiding technique used to create the rug can also add visual interest to the design, such as with a herringbone or chevron pattern. A round area rug made of natural fibers can be used in a variety of spaces, from living rooms to bedrooms to dining areas. They are especially popular in bohemian and coastal decor styles, where they can add a relaxed and laid-back vibe to the space. Overall, a round area rug made of natural fibers is a stylish and eco-friendly choice for anyone looking to add texture and warmth to their home decor.", - }, - { - "locale": "de-DE", - "value": "Ein runder Teppich aus Naturfasern ist ein kreisförmiger Teppich, der aus Materialien hergestellt wird, die in der Natur vorkommen. Zu den Naturfasern, die üblicherweise für diese Art von Teppichen verwendet werden, gehören Jute, Sisal, Seegras und Bambus. Durch die Verwendung natürlicher Materialien haben diese Teppiche einen rustikalen und organischen Charakter, der einem Raum Wärme und Struktur verleihen kann. Die neutralen Farbtöne dieser Fasern machen sie außerdem vielseitig einsetzbar und passen zu einer Reihe von Einrichtungsstilen, von Bohème über Küsten- bis hin zu Landhausstil. Die Textur und Dicke eines runden Teppichs aus Naturfasern kann je nach verwendetem Material variieren. Jute und Sisal haben beispielsweise eine rauere Struktur und einen dünneren Flor, während Seegras und Bambus eine glattere Textur und einen dickeren Flor haben. Die Herstellung dieser Teppiche erfolgt häufig in Handarbeit, was zu ihrer Einzigartigkeit beiträgt. Auch die Web- oder Flechttechnik, mit der der Teppich hergestellt wird, kann das Design optisch aufwerten, z. B. durch ein Fischgräten- oder Chevron-Muster. Ein runder Teppich aus Naturfasern kann in einer Vielzahl von Räumen verwendet werden, vom Wohnzimmer über das Schlafzimmer bis zum Essbereich. Besonders beliebt sind sie im Bohème- und Küsten-Stil, wo sie dem Raum eine entspannte und lockere Atmosphäre verleihen können. Insgesamt ist ein runder Teppich aus Naturfasern eine stilvolle und umweltfreundliche Wahl für alle, die ihrer Einrichtung Textur und Wärme verleihen möchten.", - }, - { - "locale": "en-US", - "value": "A round area rug made of natural fibers is a type of rug that is circular in shape and made from materials that are found in nature. Natural fibers commonly used for this type of rug include jute, sisal, seagrass, and bamboo. These rugs have a rustic and organic feel due to the use of natural materials, which can add warmth and texture to a space. The neutral tones of these fibers also make them versatile and able to complement a range of decor styles, from bohemian to coastal to farmhouse. The texture and thickness of a round area rug made of natural fibers can vary depending on the material used. For example, jute and sisal have a rougher texture and thinner pile, while seagrass and bamboo have a smoother texture and thicker pile. The construction of these rugs is often done by hand, which adds to their unique and one-of-a-kind quality. The weaving or braiding technique used to create the rug can also add visual interest to the design, such as with a herringbone or chevron pattern. A round area rug made of natural fibers can be used in a variety of spaces, from living rooms to bedrooms to dining areas. They are especially popular in bohemian and coastal decor styles, where they can add a relaxed and laid-back vibe to the space. Overall, a round area rug made of natural fibers is a stylish and eco-friendly choice for anyone looking to add texture and warmth to their home decor.", - }, - ], - "key": "natura-rug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- 6ft x 6ft","de-DE":"- 6 Fuß x 6 Fuß","en-US":"- 6ft x 6ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4000, - "width": 8000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Natura_Rug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", + "categories": [ + { + "key": "rugs", + "typeId": "category", }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A round area rug made of natural fibers is a type of rug that is circular in shape and made from materials that are found in nature. Natural fibers commonly used for this type of rug include jute, sisal, seagrass, and bamboo. These rugs have a rustic and organic feel due to the use of natural materials, which can add warmth and texture to a space. The neutral tones of these fibers also make them versatile and able to complement a range of decor styles, from bohemian to coastal to farmhouse. The texture and thickness of a round area rug made of natural fibers can vary depending on the material used. For example, jute and sisal have a rougher texture and thinner pile, while seagrass and bamboo have a smoother texture and thicker pile. The construction of these rugs is often done by hand, which adds to their unique and one-of-a-kind quality. The weaving or braiding technique used to create the rug can also add visual interest to the design, such as with a herringbone or chevron pattern. A round area rug made of natural fibers can be used in a variety of spaces, from living rooms to bedrooms to dining areas. They are especially popular in bohemian and coastal decor styles, where they can add a relaxed and laid-back vibe to the space. Overall, a round area rug made of natural fibers is a stylish and eco-friendly choice for anyone looking to add texture and warmth to their home decor.", + }, + { + "locale": "de-DE", + "value": "Ein runder Teppich aus Naturfasern ist ein kreisförmiger Teppich, der aus Materialien hergestellt wird, die in der Natur vorkommen. Zu den Naturfasern, die üblicherweise für diese Art von Teppichen verwendet werden, gehören Jute, Sisal, Seegras und Bambus. Durch die Verwendung natürlicher Materialien haben diese Teppiche einen rustikalen und organischen Charakter, der einem Raum Wärme und Struktur verleihen kann. Die neutralen Farbtöne dieser Fasern machen sie außerdem vielseitig einsetzbar und passen zu einer Reihe von Einrichtungsstilen, von Bohème über Küsten- bis hin zu Landhausstil. Die Textur und Dicke eines runden Teppichs aus Naturfasern kann je nach verwendetem Material variieren. Jute und Sisal haben beispielsweise eine rauere Struktur und einen dünneren Flor, während Seegras und Bambus eine glattere Textur und einen dickeren Flor haben. Die Herstellung dieser Teppiche erfolgt häufig in Handarbeit, was zu ihrer Einzigartigkeit beiträgt. Auch die Web- oder Flechttechnik, mit der der Teppich hergestellt wird, kann das Design optisch aufwerten, z. B. durch ein Fischgräten- oder Chevron-Muster. Ein runder Teppich aus Naturfasern kann in einer Vielzahl von Räumen verwendet werden, vom Wohnzimmer über das Schlafzimmer bis zum Essbereich. Besonders beliebt sind sie im Bohème- und Küsten-Stil, wo sie dem Raum eine entspannte und lockere Atmosphäre verleihen können. Insgesamt ist ein runder Teppich aus Naturfasern eine stilvolle und umweltfreundliche Wahl für alle, die ihrer Einrichtung Textur und Wärme verleihen möchten.", + }, + { + "locale": "en-US", + "value": "A round area rug made of natural fibers is a type of rug that is circular in shape and made from materials that are found in nature. Natural fibers commonly used for this type of rug include jute, sisal, seagrass, and bamboo. These rugs have a rustic and organic feel due to the use of natural materials, which can add warmth and texture to a space. The neutral tones of these fibers also make them versatile and able to complement a range of decor styles, from bohemian to coastal to farmhouse. The texture and thickness of a round area rug made of natural fibers can vary depending on the material used. For example, jute and sisal have a rougher texture and thinner pile, while seagrass and bamboo have a smoother texture and thicker pile. The construction of these rugs is often done by hand, which adds to their unique and one-of-a-kind quality. The weaving or braiding technique used to create the rug can also add visual interest to the design, such as with a herringbone or chevron pattern. A round area rug made of natural fibers can be used in a variety of spaces, from living rooms to bedrooms to dining areas. They are especially popular in bohemian and coastal decor styles, where they can add a relaxed and laid-back vibe to the space. Overall, a round area rug made of natural fibers is a stylish and eco-friendly choice for anyone looking to add texture and warmth to their home decor.", + }, + ], + "key": "natura-rug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- 6ft x 6ft","de-DE":"- 6 Fuß x 6 Fuß","en-US":"- 6ft x 6ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 8000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Natura_Rug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39950GBP_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39950, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NR-09", }, - }, - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Natura Rug", + }, + { + "locale": "de-DE", + "value": "Natura Teppich", + }, + { + "locale": "en-US", + "value": "Natura Rug", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "natura-rug", + }, + { + "locale": "de-DE", + "value": "natura-teppich", + }, + { + "locale": "en-US", + "value": "natura-rug", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "NR-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Natura Rug", - }, - { - "locale": "de-DE", - "value": "Natura Teppich", - }, - { - "locale": "en-US", - "value": "Natura Rug", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "natura-rug", - }, - { - "locale": "de-DE", - "value": "natura-teppich", - }, - { - "locale": "en-US", - "value": "natura-rug", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/opal-king-bed.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/opal-king-bed.spec.ts index 748ba449d..939739eb6 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/opal-king-bed.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/opal-king-bed.spec.ts @@ -5,305 +5,305 @@ describe(`with opalKingBed preset`, () => { it(`should return a opalKingBed preset`, () => { const opalKingBedPreset = opalKingBed().build(); expect(opalKingBedPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein modernes Kingsize-Bett mit getuftetem Kopfteil ist ein stilvolles und elegantes Möbelstück, das einen Hauch von Luxus und Raffinesse in jedes Schlafzimmer bringen kann. Die Matratzenplattform ist groß genug, um eine Kingsize-Matratze aufzunehmen, und das gesamte Bett ist mit klaren, schlanken Linien gestaltet, die ihm einen modernen Look verleihen. Das getuftete Kopfteil ist das Herzstück des Bettes und oft der Blickfang schlechthin. Es ist aus weichem, strapazierfähigem Stoff gefertigt, der in einem quadratischen Muster getuftet ist. Das getuftete Design verleiht dem Kopfteil ein plüschiges, gepolstertes Aussehen und macht es bequem, wenn man im Bett sitzt, um zu lesen oder fernzusehen. Das Gesamtdesign des Bettes ist modern und unterstreicht die Schönheit des getufteten Kopfteils. Insgesamt ist ein modernes Doppelbett mit getuftetem Kopfteil ein Highlight, das jedes Schlafzimmer mit Stil und Komfort bereichert.", - "en": undefined, - "en-GB": "A modern king bed with a tufted headboard is a stylish and elegant piece of furniture that can bring a touch of luxury and sophistication to any bedroom. The mattress platform is large enough to accommodate a king-size mattress, and the entire bed is designed with clean, sleek lines that give it a modern look. The tufted headboard is the centerpiece of the bed and is often the most eye-catching feature. It is made of soft, durable fabric that is tufted in a square pattern. The tufted design gives the headboard a plush, cushioned appearance, making it comfortable for sitting up in bed to read or watch TV. The overall design of the bed is modern, emphasizing the beauty of the tufted headboard. Overall, a modern king bed with a tufted headboard is a statement piece that can add both style and comfort to any bedroom.", - "en-US": "A modern king bed with a tufted headboard is a stylish and elegant piece of furniture that can bring a touch of luxury and sophistication to any bedroom. The mattress platform is large enough to accommodate a king-size mattress, and the entire bed is designed with clean, sleek lines that give it a modern look. The tufted headboard is the centerpiece of the bed and is often the most eye-catching feature. It is made of soft, durable fabric that is tufted in a square pattern. The tufted design gives the headboard a plush, cushioned appearance, making it comfortable for sitting up in bed to read or watch TV. The overall design of the bed is modern, emphasizing the beauty of the tufted headboard. Overall, a modern king bed with a tufted headboard is a statement piece that can add both style and comfort to any bedroom.", - "fr": undefined, - }, - "key": "opal-king-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Montage inklusive", - "en-GB": "- Assembly included", - "en-US": "- Assembly included", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein modernes Kingsize-Bett mit getuftetem Kopfteil ist ein stilvolles und elegantes Möbelstück, das einen Hauch von Luxus und Raffinesse in jedes Schlafzimmer bringen kann. Die Matratzenplattform ist groß genug, um eine Kingsize-Matratze aufzunehmen, und das gesamte Bett ist mit klaren, schlanken Linien gestaltet, die ihm einen modernen Look verleihen. Das getuftete Kopfteil ist das Herzstück des Bettes und oft der Blickfang schlechthin. Es ist aus weichem, strapazierfähigem Stoff gefertigt, der in einem quadratischen Muster getuftet ist. Das getuftete Design verleiht dem Kopfteil ein plüschiges, gepolstertes Aussehen und macht es bequem, wenn man im Bett sitzt, um zu lesen oder fernzusehen. Das Gesamtdesign des Bettes ist modern und unterstreicht die Schönheit des getufteten Kopfteils. Insgesamt ist ein modernes Doppelbett mit getuftetem Kopfteil ein Highlight, das jedes Schlafzimmer mit Stil und Komfort bereichert.", + "en": undefined, + "en-GB": "A modern king bed with a tufted headboard is a stylish and elegant piece of furniture that can bring a touch of luxury and sophistication to any bedroom. The mattress platform is large enough to accommodate a king-size mattress, and the entire bed is designed with clean, sleek lines that give it a modern look. The tufted headboard is the centerpiece of the bed and is often the most eye-catching feature. It is made of soft, durable fabric that is tufted in a square pattern. The tufted design gives the headboard a plush, cushioned appearance, making it comfortable for sitting up in bed to read or watch TV. The overall design of the bed is modern, emphasizing the beauty of the tufted headboard. Overall, a modern king bed with a tufted headboard is a statement piece that can add both style and comfort to any bedroom.", + "en-US": "A modern king bed with a tufted headboard is a stylish and elegant piece of furniture that can bring a touch of luxury and sophistication to any bedroom. The mattress platform is large enough to accommodate a king-size mattress, and the entire bed is designed with clean, sleek lines that give it a modern look. The tufted headboard is the centerpiece of the bed and is often the most eye-catching feature. It is made of soft, durable fabric that is tufted in a square pattern. The tufted design gives the headboard a plush, cushioned appearance, making it comfortable for sitting up in bed to read or watch TV. The overall design of the bed is modern, emphasizing the beauty of the tufted headboard. Overall, a modern king bed with a tufted headboard is a statement piece that can add both style and comfort to any bedroom.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + "key": "opal-king-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage inklusive", + "en-GB": "- Assembly included", + "en-US": "- Assembly included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2000, + "w": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Opal_King_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "MTB-023", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2000, - "w": 2000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Opal King Bett", + "en": undefined, + "en-GB": "Opal King Bed", + "en-US": "Opal King Bed", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Opal_King_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "opal-kingsize-bett", + "en": undefined, + "en-GB": "opal-king-bed", + "en-US": "opal-king-bed", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MTB-023", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Opal King Bett", - "en": undefined, - "en-GB": "Opal King Bed", - "en-US": "Opal King Bed", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "opal-kingsize-bett", - "en": undefined, - "en-GB": "opal-king-bed", - "en-US": "opal-king-bed", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a opalKingBed preset when built for graphql`, () => { const opalKingBedPresetGraphql = opalKingBed().buildGraphql(); expect(opalKingBedPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A modern king bed with a tufted headboard is a stylish and elegant piece of furniture that can bring a touch of luxury and sophistication to any bedroom. The mattress platform is large enough to accommodate a king-size mattress, and the entire bed is designed with clean, sleek lines that give it a modern look. The tufted headboard is the centerpiece of the bed and is often the most eye-catching feature. It is made of soft, durable fabric that is tufted in a square pattern. The tufted design gives the headboard a plush, cushioned appearance, making it comfortable for sitting up in bed to read or watch TV. The overall design of the bed is modern, emphasizing the beauty of the tufted headboard. Overall, a modern king bed with a tufted headboard is a statement piece that can add both style and comfort to any bedroom.", - }, - { - "locale": "de-DE", - "value": "Ein modernes Kingsize-Bett mit getuftetem Kopfteil ist ein stilvolles und elegantes Möbelstück, das einen Hauch von Luxus und Raffinesse in jedes Schlafzimmer bringen kann. Die Matratzenplattform ist groß genug, um eine Kingsize-Matratze aufzunehmen, und das gesamte Bett ist mit klaren, schlanken Linien gestaltet, die ihm einen modernen Look verleihen. Das getuftete Kopfteil ist das Herzstück des Bettes und oft der Blickfang schlechthin. Es ist aus weichem, strapazierfähigem Stoff gefertigt, der in einem quadratischen Muster getuftet ist. Das getuftete Design verleiht dem Kopfteil ein plüschiges, gepolstertes Aussehen und macht es bequem, wenn man im Bett sitzt, um zu lesen oder fernzusehen. Das Gesamtdesign des Bettes ist modern und unterstreicht die Schönheit des getufteten Kopfteils. Insgesamt ist ein modernes Doppelbett mit getuftetem Kopfteil ein Highlight, das jedes Schlafzimmer mit Stil und Komfort bereichert.", - }, - { - "locale": "en-US", - "value": "A modern king bed with a tufted headboard is a stylish and elegant piece of furniture that can bring a touch of luxury and sophistication to any bedroom. The mattress platform is large enough to accommodate a king-size mattress, and the entire bed is designed with clean, sleek lines that give it a modern look. The tufted headboard is the centerpiece of the bed and is often the most eye-catching feature. It is made of soft, durable fabric that is tufted in a square pattern. The tufted design gives the headboard a plush, cushioned appearance, making it comfortable for sitting up in bed to read or watch TV. The overall design of the bed is modern, emphasizing the beauty of the tufted headboard. Overall, a modern king bed with a tufted headboard is a statement piece that can add both style and comfort to any bedroom.", - }, - ], - "key": "opal-king-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included","de-DE":"- Montage inklusive","en-US":"- Assembly included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2000, - "width": 2000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Opal_King_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A modern king bed with a tufted headboard is a stylish and elegant piece of furniture that can bring a touch of luxury and sophistication to any bedroom. The mattress platform is large enough to accommodate a king-size mattress, and the entire bed is designed with clean, sleek lines that give it a modern look. The tufted headboard is the centerpiece of the bed and is often the most eye-catching feature. It is made of soft, durable fabric that is tufted in a square pattern. The tufted design gives the headboard a plush, cushioned appearance, making it comfortable for sitting up in bed to read or watch TV. The overall design of the bed is modern, emphasizing the beauty of the tufted headboard. Overall, a modern king bed with a tufted headboard is a statement piece that can add both style and comfort to any bedroom.", + }, + { + "locale": "de-DE", + "value": "Ein modernes Kingsize-Bett mit getuftetem Kopfteil ist ein stilvolles und elegantes Möbelstück, das einen Hauch von Luxus und Raffinesse in jedes Schlafzimmer bringen kann. Die Matratzenplattform ist groß genug, um eine Kingsize-Matratze aufzunehmen, und das gesamte Bett ist mit klaren, schlanken Linien gestaltet, die ihm einen modernen Look verleihen. Das getuftete Kopfteil ist das Herzstück des Bettes und oft der Blickfang schlechthin. Es ist aus weichem, strapazierfähigem Stoff gefertigt, der in einem quadratischen Muster getuftet ist. Das getuftete Design verleiht dem Kopfteil ein plüschiges, gepolstertes Aussehen und macht es bequem, wenn man im Bett sitzt, um zu lesen oder fernzusehen. Das Gesamtdesign des Bettes ist modern und unterstreicht die Schönheit des getufteten Kopfteils. Insgesamt ist ein modernes Doppelbett mit getuftetem Kopfteil ein Highlight, das jedes Schlafzimmer mit Stil und Komfort bereichert.", + }, + { + "locale": "en-US", + "value": "A modern king bed with a tufted headboard is a stylish and elegant piece of furniture that can bring a touch of luxury and sophistication to any bedroom. The mattress platform is large enough to accommodate a king-size mattress, and the entire bed is designed with clean, sleek lines that give it a modern look. The tufted headboard is the centerpiece of the bed and is often the most eye-catching feature. It is made of soft, durable fabric that is tufted in a square pattern. The tufted design gives the headboard a plush, cushioned appearance, making it comfortable for sitting up in bed to read or watch TV. The overall design of the bed is modern, emphasizing the beauty of the tufted headboard. Overall, a modern king bed with a tufted headboard is a statement piece that can add both style and comfort to any bedroom.", + }, + ], + "key": "opal-king-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included","de-DE":"- Montage inklusive","en-US":"- Assembly included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2000, + "width": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Opal_King_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "MTB-023", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Opal King Bed", }, + { + "locale": "de-DE", + "value": "Opal King Bett", + }, + { + "locale": "en-US", + "value": "Opal King Bed", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "opal-king-bed", + }, + { + "locale": "de-DE", + "value": "opal-kingsize-bett", + }, + { + "locale": "en-US", + "value": "opal-king-bed", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "MTB-023", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Opal King Bed", - }, - { - "locale": "de-DE", - "value": "Opal King Bett", - }, - { - "locale": "en-US", - "value": "Opal King Bed", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "opal-king-bed", - }, - { - "locale": "de-DE", - "value": "opal-kingsize-bett", - }, - { - "locale": "en-US", - "value": "opal-king-bed", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/orion-double-bed.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/orion-double-bed.spec.ts index 57710f29a..11b373dcf 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/orion-double-bed.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/orion-double-bed.spec.ts @@ -5,320 +5,320 @@ describe(`with orionDoubleBed preset`, () => { it(`should return a orionDoubleBed preset`, () => { const orionDoubleBedPreset = orionDoubleBed().build(); expect(orionDoubleBedPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Queensize-Bett mit getuftetem Kopfteil und Podest und Stahlfüßen ist ein modernes und stilvolles Möbelstück. Das Kopfteil ist hoch und breit und verfügt über ein getuftetes Design. Der für das Kopfteil verwendete Stoff ist weich und luxuriös und bietet einen bequemen Platz zum Anlehnen, wenn man sich im Bett aufrichtet. Das Bett steht auf einem Podest, das von schlanken und stabilen Stahlbeinen getragen wird. Das Podest bietet eine solide und stabile Grundlage für die Matratze und verleiht dem Bett gleichzeitig einen klaren und minimalistischen Look. Insgesamt ist dieses Bett ein schönes und funktionales Möbelstück, das sich perfekt für ein modernes Schlafzimmer mit minimalistischer oder industrieller Ästhetik eignet.", - "en": undefined, - "en-GB": "A queen bed with a tufted headboard and platform and steel legs is a modern and stylish piece of furniture. The headboard is tall and wide, featuring a tufted design. The fabric used for the headboard is soft and luxurious, providing a comfortable place to lean against when sitting up in bed. The bed is raised off the ground on a platform, which is supported by sleek and sturdy steel legs. The platform provides a solid and stable foundation for the mattress, while also giving the bed a clean and minimalist look. Overall, this queen bed is a beautiful and functional piece that would be perfect for a modern bedroom with a minimalist or industrial aesthetic.", - "en-US": "A queen bed with a tufted headboard and platform and steel legs is a modern and stylish piece of furniture. The headboard is tall and wide, featuring a tufted design. The fabric used for the headboard is soft and luxurious, providing a comfortable place to lean against when sitting up in bed. The bed is raised off the ground on a platform, which is supported by sleek and sturdy steel legs. The platform provides a solid and stable foundation for the mattress, while also giving the bed a clean and minimalist look. Overall, this queen bed is a beautiful and functional piece that would be perfect for a modern bedroom with a minimalist or industrial aesthetic.", - "fr": undefined, - }, - "key": "orion-double-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten -- Matratze nicht im Lieferumfang enthalten", - "en-GB": "- Assembly included at delivery -- Mattress not included", - "en-US": "- Assembly included at delivery -- Mattress not included", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Queensize-Bett mit getuftetem Kopfteil und Podest und Stahlfüßen ist ein modernes und stilvolles Möbelstück. Das Kopfteil ist hoch und breit und verfügt über ein getuftetes Design. Der für das Kopfteil verwendete Stoff ist weich und luxuriös und bietet einen bequemen Platz zum Anlehnen, wenn man sich im Bett aufrichtet. Das Bett steht auf einem Podest, das von schlanken und stabilen Stahlbeinen getragen wird. Das Podest bietet eine solide und stabile Grundlage für die Matratze und verleiht dem Bett gleichzeitig einen klaren und minimalistischen Look. Insgesamt ist dieses Bett ein schönes und funktionales Möbelstück, das sich perfekt für ein modernes Schlafzimmer mit minimalistischer oder industrieller Ästhetik eignet.", + "en": undefined, + "en-GB": "A queen bed with a tufted headboard and platform and steel legs is a modern and stylish piece of furniture. The headboard is tall and wide, featuring a tufted design. The fabric used for the headboard is soft and luxurious, providing a comfortable place to lean against when sitting up in bed. The bed is raised off the ground on a platform, which is supported by sleek and sturdy steel legs. The platform provides a solid and stable foundation for the mattress, while also giving the bed a clean and minimalist look. Overall, this queen bed is a beautiful and functional piece that would be perfect for a modern bedroom with a minimalist or industrial aesthetic.", + "en-US": "A queen bed with a tufted headboard and platform and steel legs is a modern and stylish piece of furniture. The headboard is tall and wide, featuring a tufted design. The fabric used for the headboard is soft and luxurious, providing a comfortable place to lean against when sitting up in bed. The bed is raised off the ground on a platform, which is supported by sleek and sturdy steel legs. The platform provides a solid and stable foundation for the mattress, while also giving the bed a clean and minimalist look. Overall, this queen bed is a beautiful and functional piece that would be perfect for a modern bedroom with a minimalist or industrial aesthetic.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Salbei:#BCB88A", - "en-GB": "Sage:#BCB88A", - "en-US": "Sage:#BCB88A", + "key": "orion-double-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten + - Matratze nicht im Lieferumfang enthalten", + "en-GB": "- Assembly included at delivery + - Mattress not included", + "en-US": "- Assembly included at delivery + - Mattress not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Salbei:#BCB88A", + "en-GB": "Sage:#BCB88A", + "en-US": "Sage:#BCB88A", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3621, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Orion_Double_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + ], + "sku": "OTB-07", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Orion Doppelbett", + "en": undefined, + "en-GB": "Orion Double Bed", + "en-US": "Orion Double Bed", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3621, - "w": 5000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Orion_Double_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "orion-doppelbett", + "en": undefined, + "en-GB": "orion-double-bed", + "en-US": "orion-double-bed", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "OTB-07", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Orion Doppelbett", - "en": undefined, - "en-GB": "Orion Double Bed", - "en-US": "Orion Double Bed", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "orion-doppelbett", - "en": undefined, - "en-GB": "orion-double-bed", - "en-US": "orion-double-bed", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a orionDoubleBed preset when built for graphql`, () => { const orionDoubleBedPresetGraphql = orionDoubleBed().buildGraphql(); expect(orionDoubleBedPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A queen bed with a tufted headboard and platform and steel legs is a modern and stylish piece of furniture. The headboard is tall and wide, featuring a tufted design. The fabric used for the headboard is soft and luxurious, providing a comfortable place to lean against when sitting up in bed. The bed is raised off the ground on a platform, which is supported by sleek and sturdy steel legs. The platform provides a solid and stable foundation for the mattress, while also giving the bed a clean and minimalist look. Overall, this queen bed is a beautiful and functional piece that would be perfect for a modern bedroom with a minimalist or industrial aesthetic.", - }, - { - "locale": "de-DE", - "value": "Ein Queensize-Bett mit getuftetem Kopfteil und Podest und Stahlfüßen ist ein modernes und stilvolles Möbelstück. Das Kopfteil ist hoch und breit und verfügt über ein getuftetes Design. Der für das Kopfteil verwendete Stoff ist weich und luxuriös und bietet einen bequemen Platz zum Anlehnen, wenn man sich im Bett aufrichtet. Das Bett steht auf einem Podest, das von schlanken und stabilen Stahlbeinen getragen wird. Das Podest bietet eine solide und stabile Grundlage für die Matratze und verleiht dem Bett gleichzeitig einen klaren und minimalistischen Look. Insgesamt ist dieses Bett ein schönes und funktionales Möbelstück, das sich perfekt für ein modernes Schlafzimmer mit minimalistischer oder industrieller Ästhetik eignet.", - }, - { - "locale": "en-US", - "value": "A queen bed with a tufted headboard and platform and steel legs is a modern and stylish piece of furniture. The headboard is tall and wide, featuring a tufted design. The fabric used for the headboard is soft and luxurious, providing a comfortable place to lean against when sitting up in bed. The bed is raised off the ground on a platform, which is supported by sleek and sturdy steel legs. The platform provides a solid and stable foundation for the mattress, while also giving the bed a clean and minimalist look. Overall, this queen bed is a beautiful and functional piece that would be perfect for a modern bedroom with a minimalist or industrial aesthetic.", - }, - ], - "key": "orion-double-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included at delivery\\n- Mattress not included","de-DE":"- Montage im Lieferumfang enthalten\\n- Matratze nicht im Lieferumfang enthalten","en-US":"- Assembly included at delivery\\n- Mattress not included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Sage:#BCB88A","de-DE":"Salbei:#BCB88A","en-US":"Sage:#BCB88A"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3621, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Orion_Double_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A queen bed with a tufted headboard and platform and steel legs is a modern and stylish piece of furniture. The headboard is tall and wide, featuring a tufted design. The fabric used for the headboard is soft and luxurious, providing a comfortable place to lean against when sitting up in bed. The bed is raised off the ground on a platform, which is supported by sleek and sturdy steel legs. The platform provides a solid and stable foundation for the mattress, while also giving the bed a clean and minimalist look. Overall, this queen bed is a beautiful and functional piece that would be perfect for a modern bedroom with a minimalist or industrial aesthetic.", + }, + { + "locale": "de-DE", + "value": "Ein Queensize-Bett mit getuftetem Kopfteil und Podest und Stahlfüßen ist ein modernes und stilvolles Möbelstück. Das Kopfteil ist hoch und breit und verfügt über ein getuftetes Design. Der für das Kopfteil verwendete Stoff ist weich und luxuriös und bietet einen bequemen Platz zum Anlehnen, wenn man sich im Bett aufrichtet. Das Bett steht auf einem Podest, das von schlanken und stabilen Stahlbeinen getragen wird. Das Podest bietet eine solide und stabile Grundlage für die Matratze und verleiht dem Bett gleichzeitig einen klaren und minimalistischen Look. Insgesamt ist dieses Bett ein schönes und funktionales Möbelstück, das sich perfekt für ein modernes Schlafzimmer mit minimalistischer oder industrieller Ästhetik eignet.", + }, + { + "locale": "en-US", + "value": "A queen bed with a tufted headboard and platform and steel legs is a modern and stylish piece of furniture. The headboard is tall and wide, featuring a tufted design. The fabric used for the headboard is soft and luxurious, providing a comfortable place to lean against when sitting up in bed. The bed is raised off the ground on a platform, which is supported by sleek and sturdy steel legs. The platform provides a solid and stable foundation for the mattress, while also giving the bed a clean and minimalist look. Overall, this queen bed is a beautiful and functional piece that would be perfect for a modern bedroom with a minimalist or industrial aesthetic.", }, + ], + "key": "orion-double-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included at delivery\\n- Mattress not included","de-DE":"- Montage im Lieferumfang enthalten\\n- Matratze nicht im Lieferumfang enthalten","en-US":"- Assembly included at delivery\\n- Mattress not included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Sage:#BCB88A","de-DE":"Salbei:#BCB88A","en-US":"Sage:#BCB88A"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3621, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Orion_Double_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "OTB-07", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Orion Double Bed", + }, + { + "locale": "de-DE", + "value": "Orion Doppelbett", + }, + { + "locale": "en-US", + "value": "Orion Double Bed", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "orion-double-bed", + }, + { + "locale": "de-DE", + "value": "orion-doppelbett", + }, + { + "locale": "en-US", + "value": "orion-double-bed", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "OTB-07", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Orion Double Bed", - }, - { - "locale": "de-DE", - "value": "Orion Doppelbett", - }, - { - "locale": "en-US", - "value": "Orion Double Bed", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "orion-double-bed", - }, - { - "locale": "de-DE", - "value": "orion-doppelbett", - }, - { - "locale": "en-US", - "value": "orion-double-bed", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover.spec.ts index da0e05140..f08ce146f 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/patterned-pillow-cover.spec.ts @@ -6,471 +6,471 @@ describe(`with patternedPillowCover preset`, () => { const patternedPillowCoverPreset = patternedPillowCover().build(); expect(patternedPillowCoverPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Art-Deco-Samtkissenbezug mit geometrischem Muster ist ein luxuriöses und stilvolles Accessoire für jeden Raum in Ihrem Zuhause. Er ist aus weichem, plüschigem Samtstoff gefertigt, der sich weich und glatt anfühlt. Der Samt hat einen reichen, schimmernden Glanz, der dem Kissenbezug eine elegante und anspruchsvolle Note verleiht. Der Kissenbezug weist ein geometrisches Design auf, das vom Art-déco-Stil des frühen 20. Jahrhunderts inspiriert ist. Jahrhunderts inspiriert ist. Das Design umfasst kühne und eckige Formen. Der Kissenbezug wird oft als dekorativer Akzent für ein Bett, ein Sofa oder einen Sessel verwendet und kann jedem Raum im Haus einen Hauch von Glamour und Raffinesse verleihen. Er lässt sich mit anderen vom Art déco inspirierten Accessoires wie Lampen, Vasen und Wandbildern kombinieren, um ein stimmiges und stilvolles Gesamtbild zu schaffen. Der Samtstoff ist strapazierfähig und pflegeleicht und kann mit einem feuchten Tuch oder Schwamm abgewischt werden. Er sollte regelmäßig an der Luft getrocknet und aufgefächert werden, damit er seine Form und Struktur behält. Insgesamt ist ein Art-Déco-Samtkissenbezug mit geometrischem Muster ein luxuriöses und stilvolles Accessoire, das die Schönheit und den Komfort eines jeden Raums im Haus verbessern kann.", - "en": undefined, - "en-GB": "An art deco velvet pillow cover with geometric design is a luxurious and stylish accessory for any room in the home. It is made from soft, plush velvet fabric that feels soft and smooth to the touch. The velvet has a rich, lustrous sheen that adds an elegant and sophisticated touch to the pillow cover. The pillow cover features a geometric design that is inspired by the art deco style of the early 20th century. The design includes bold and angular shapes. The pillow cover is often used as a decorative accent for a bed, sofa, or accent chair, and can add a touch of glamour and sophistication to any room in the home. It can be paired with other art deco-inspired accessories, such as lamps, vases, and wall art, to create a cohesive and stylish look. The velvet fabric is durable and easy to clean, and can be spot cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, an art deco velvet pillow cover with geometric design is a luxurious and stylish accessory that can enhance the beauty and comfort of any room in the home.", - "en-US": "An art deco velvet pillow cover with geometric design is a luxurious and stylish accessory for any room in the home. It is made from soft, plush velvet fabric that feels soft and smooth to the touch. The velvet has a rich, lustrous sheen that adds an elegant and sophisticated touch to the pillow cover. The pillow cover features a geometric design that is inspired by the art deco style of the early 20th century. The design includes bold and angular shapes. The pillow cover is often used as a decorative accent for a bed, sofa, or accent chair, and can add a touch of glamour and sophistication to any room in the home. It can be paired with other art deco-inspired accessories, such as lamps, vases, and wall art, to create a cohesive and stylish look. The velvet fabric is durable and easy to clean, and can be spot cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, an art deco velvet pillow cover with geometric design is a luxurious and stylish accessory that can enhance the beauty and comfort of any room in the home.", - "fr": undefined, - }, - "key": "patterned-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Lavendel:#fff0f5", - "en-GB": "Lavender Blush:#fff0f5", - "en-US": "Lavender Blush:#fff0f5", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "USD", - }, - }, - ], - "sku": "ADPC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Gemusterter Kissenbezug", - "en": undefined, - "en-GB": "Patterned Pillow Cover", - "en-US": "Patterned Pillow Cover", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "gemusterte-kissenhlle", - "en": undefined, - "en-GB": "patterned-pillow-cover", - "en-US": "patterned-pillow-cover", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": { - "de-DE": "- Waschmaschinenfest -- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Machine washable -- Pillow not included", - "en-US": "- Machine washable -- Pillow not included", + "categories": [ + { + "key": "bedding", + "typeId": "category", }, - }, - { - "name": "color", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + { + "key": "home-decor", + "typeId": "category", }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Art-Deco-Samtkissenbezug mit geometrischem Muster ist ein luxuriöses und stilvolles Accessoire für jeden Raum in Ihrem Zuhause. Er ist aus weichem, plüschigem Samtstoff gefertigt, der sich weich und glatt anfühlt. Der Samt hat einen reichen, schimmernden Glanz, der dem Kissenbezug eine elegante und anspruchsvolle Note verleiht. Der Kissenbezug weist ein geometrisches Design auf, das vom Art-déco-Stil des frühen 20. Jahrhunderts inspiriert ist. Jahrhunderts inspiriert ist. Das Design umfasst kühne und eckige Formen. Der Kissenbezug wird oft als dekorativer Akzent für ein Bett, ein Sofa oder einen Sessel verwendet und kann jedem Raum im Haus einen Hauch von Glamour und Raffinesse verleihen. Er lässt sich mit anderen vom Art déco inspirierten Accessoires wie Lampen, Vasen und Wandbildern kombinieren, um ein stimmiges und stilvolles Gesamtbild zu schaffen. Der Samtstoff ist strapazierfähig und pflegeleicht und kann mit einem feuchten Tuch oder Schwamm abgewischt werden. Er sollte regelmäßig an der Luft getrocknet und aufgefächert werden, damit er seine Form und Struktur behält. Insgesamt ist ein Art-Déco-Samtkissenbezug mit geometrischem Muster ein luxuriöses und stilvolles Accessoire, das die Schönheit und den Komfort eines jeden Raums im Haus verbessern kann.", + "en": undefined, + "en-GB": "An art deco velvet pillow cover with geometric design is a luxurious and stylish accessory for any room in the home. It is made from soft, plush velvet fabric that feels soft and smooth to the touch. The velvet has a rich, lustrous sheen that adds an elegant and sophisticated touch to the pillow cover. The pillow cover features a geometric design that is inspired by the art deco style of the early 20th century. The design includes bold and angular shapes. The pillow cover is often used as a decorative accent for a bed, sofa, or accent chair, and can add a touch of glamour and sophistication to any room in the home. It can be paired with other art deco-inspired accessories, such as lamps, vases, and wall art, to create a cohesive and stylish look. The velvet fabric is durable and easy to clean, and can be spot cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, an art deco velvet pillow cover with geometric design is a luxurious and stylish accessory that can enhance the beauty and comfort of any room in the home.", + "en-US": "An art deco velvet pillow cover with geometric design is a luxurious and stylish accessory for any room in the home. It is made from soft, plush velvet fabric that feels soft and smooth to the touch. The velvet has a rich, lustrous sheen that adds an elegant and sophisticated touch to the pillow cover. The pillow cover features a geometric design that is inspired by the art deco style of the early 20th century. The design includes bold and angular shapes. The pillow cover is often used as a decorative accent for a bed, sofa, or accent chair, and can add a touch of glamour and sophistication to any room in the home. It can be paired with other art deco-inspired accessories, such as lamps, vases, and wall art, to create a cohesive and stylish look. The velvet fabric is durable and easy to clean, and can be spot cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, an art deco velvet pillow cover with geometric design is a luxurious and stylish accessory that can enhance the beauty and comfort of any room in the home.", + "fr": undefined, + }, + "key": "patterned-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Lavendel:#fff0f5", + "en-GB": "Lavender Blush:#fff0f5", + "en-US": "Lavender Blush:#fff0f5", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + ], + "sku": "ADPC-09", }, - { - "name": "new-arrival", - "value": false, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Gemusterter Kissenbezug", + "en": undefined, + "en-GB": "Patterned Pillow Cover", + "en-US": "Patterned Pillow Cover", + "fr": undefined, }, - ], - "images": [ - { - "dimensions": { - "h": 4031, - "w": 6047, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-2.1.jpeg", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "EUR", - }, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "gemusterte-kissenhlle", + "en": undefined, + "en-GB": "patterned-pillow-cover", + "en-US": "patterned-pillow-cover", + "fr": undefined, }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "GBP", - }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1499, - "currencyCode": "USD", + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Waschmaschinenfest + - Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Machine washable + - Pillow not included", + "en-US": "- Machine washable + - Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "new-arrival", + "value": false, + }, + ], + "images": [ + { + "dimensions": { + "h": 4031, + "w": 6047, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + ], + "sku": "ADPC-7", }, - }, - ], - "sku": "ADPC-7", - }, - ], -} -`); + ], + } + `); }); it(`should return a patternedPillowCover preset when built for graphql`, () => { const patternedPillowCoverPresetGraphql = patternedPillowCover().buildGraphql(); expect(patternedPillowCoverPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "An art deco velvet pillow cover with geometric design is a luxurious and stylish accessory for any room in the home. It is made from soft, plush velvet fabric that feels soft and smooth to the touch. The velvet has a rich, lustrous sheen that adds an elegant and sophisticated touch to the pillow cover. The pillow cover features a geometric design that is inspired by the art deco style of the early 20th century. The design includes bold and angular shapes. The pillow cover is often used as a decorative accent for a bed, sofa, or accent chair, and can add a touch of glamour and sophistication to any room in the home. It can be paired with other art deco-inspired accessories, such as lamps, vases, and wall art, to create a cohesive and stylish look. The velvet fabric is durable and easy to clean, and can be spot cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, an art deco velvet pillow cover with geometric design is a luxurious and stylish accessory that can enhance the beauty and comfort of any room in the home.", - }, - { - "locale": "de-DE", - "value": "Ein Art-Deco-Samtkissenbezug mit geometrischem Muster ist ein luxuriöses und stilvolles Accessoire für jeden Raum in Ihrem Zuhause. Er ist aus weichem, plüschigem Samtstoff gefertigt, der sich weich und glatt anfühlt. Der Samt hat einen reichen, schimmernden Glanz, der dem Kissenbezug eine elegante und anspruchsvolle Note verleiht. Der Kissenbezug weist ein geometrisches Design auf, das vom Art-déco-Stil des frühen 20. Jahrhunderts inspiriert ist. Jahrhunderts inspiriert ist. Das Design umfasst kühne und eckige Formen. Der Kissenbezug wird oft als dekorativer Akzent für ein Bett, ein Sofa oder einen Sessel verwendet und kann jedem Raum im Haus einen Hauch von Glamour und Raffinesse verleihen. Er lässt sich mit anderen vom Art déco inspirierten Accessoires wie Lampen, Vasen und Wandbildern kombinieren, um ein stimmiges und stilvolles Gesamtbild zu schaffen. Der Samtstoff ist strapazierfähig und pflegeleicht und kann mit einem feuchten Tuch oder Schwamm abgewischt werden. Er sollte regelmäßig an der Luft getrocknet und aufgefächert werden, damit er seine Form und Struktur behält. Insgesamt ist ein Art-Déco-Samtkissenbezug mit geometrischem Muster ein luxuriöses und stilvolles Accessoire, das die Schönheit und den Komfort eines jeden Raums im Haus verbessern kann.", - }, - { - "locale": "en-US", - "value": "An art deco velvet pillow cover with geometric design is a luxurious and stylish accessory for any room in the home. It is made from soft, plush velvet fabric that feels soft and smooth to the touch. The velvet has a rich, lustrous sheen that adds an elegant and sophisticated touch to the pillow cover. The pillow cover features a geometric design that is inspired by the art deco style of the early 20th century. The design includes bold and angular shapes. The pillow cover is often used as a decorative accent for a bed, sofa, or accent chair, and can add a touch of glamour and sophistication to any room in the home. It can be paired with other art deco-inspired accessories, such as lamps, vases, and wall art, to create a cohesive and stylish look. The velvet fabric is durable and easy to clean, and can be spot cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, an art deco velvet pillow cover with geometric design is a luxurious and stylish accessory that can enhance the beauty and comfort of any room in the home.", - }, - ], - "key": "patterned-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", - }, { - "name": "color", - "value": "{"en-GB":"Lavender Blush:#fff0f5","de-DE":"Lavendel:#fff0f5","en-US":"Lavender Blush:#fff0f5"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedding", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "GBP", + { + "key": "home-decor", + "typeId": "category", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "USD", + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "An art deco velvet pillow cover with geometric design is a luxurious and stylish accessory for any room in the home. It is made from soft, plush velvet fabric that feels soft and smooth to the touch. The velvet has a rich, lustrous sheen that adds an elegant and sophisticated touch to the pillow cover. The pillow cover features a geometric design that is inspired by the art deco style of the early 20th century. The design includes bold and angular shapes. The pillow cover is often used as a decorative accent for a bed, sofa, or accent chair, and can add a touch of glamour and sophistication to any room in the home. It can be paired with other art deco-inspired accessories, such as lamps, vases, and wall art, to create a cohesive and stylish look. The velvet fabric is durable and easy to clean, and can be spot cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, an art deco velvet pillow cover with geometric design is a luxurious and stylish accessory that can enhance the beauty and comfort of any room in the home.", }, - }, - }, - ], - "sku": "ADPC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Patterned Pillow Cover", - }, - { - "locale": "de-DE", - "value": "Gemusterter Kissenbezug", - }, - { - "locale": "en-US", - "value": "Patterned Pillow Cover", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "patterned-pillow-cover", - }, - { - "locale": "de-DE", - "value": "gemusterte-kissenhlle", - }, - { - "locale": "en-US", - "value": "patterned-pillow-cover", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", - }, - { - "name": "color", - "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", - }, - { - "name": "new-arrival", - "value": "false", - }, - ], - "images": [ - { - "dimensions": { - "height": 4031, - "width": 6047, + { + "locale": "de-DE", + "value": "Ein Art-Deco-Samtkissenbezug mit geometrischem Muster ist ein luxuriöses und stilvolles Accessoire für jeden Raum in Ihrem Zuhause. Er ist aus weichem, plüschigem Samtstoff gefertigt, der sich weich und glatt anfühlt. Der Samt hat einen reichen, schimmernden Glanz, der dem Kissenbezug eine elegante und anspruchsvolle Note verleiht. Der Kissenbezug weist ein geometrisches Design auf, das vom Art-déco-Stil des frühen 20. Jahrhunderts inspiriert ist. Jahrhunderts inspiriert ist. Das Design umfasst kühne und eckige Formen. Der Kissenbezug wird oft als dekorativer Akzent für ein Bett, ein Sofa oder einen Sessel verwendet und kann jedem Raum im Haus einen Hauch von Glamour und Raffinesse verleihen. Er lässt sich mit anderen vom Art déco inspirierten Accessoires wie Lampen, Vasen und Wandbildern kombinieren, um ein stimmiges und stilvolles Gesamtbild zu schaffen. Der Samtstoff ist strapazierfähig und pflegeleicht und kann mit einem feuchten Tuch oder Schwamm abgewischt werden. Er sollte regelmäßig an der Luft getrocknet und aufgefächert werden, damit er seine Form und Struktur behält. Insgesamt ist ein Art-Déco-Samtkissenbezug mit geometrischem Muster ein luxuriöses und stilvolles Accessoire, das die Schönheit und den Komfort eines jeden Raums im Haus verbessern kann.", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-2.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "EUR", - }, + { + "locale": "en-US", + "value": "An art deco velvet pillow cover with geometric design is a luxurious and stylish accessory for any room in the home. It is made from soft, plush velvet fabric that feels soft and smooth to the touch. The velvet has a rich, lustrous sheen that adds an elegant and sophisticated touch to the pillow cover. The pillow cover features a geometric design that is inspired by the art deco style of the early 20th century. The design includes bold and angular shapes. The pillow cover is often used as a decorative accent for a bed, sofa, or accent chair, and can add a touch of glamour and sophistication to any room in the home. It can be paired with other art deco-inspired accessories, such as lamps, vases, and wall art, to create a cohesive and stylish look. The velvet fabric is durable and easy to clean, and can be spot cleaned with a damp cloth or sponge. It should be air-dried and fluffed periodically to maintain its shape and texture. Overall, an art deco velvet pillow cover with geometric design is a luxurious and stylish accessory that can enhance the beauty and comfort of any room in the home.", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, + ], + "key": "patterned-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Lavender Blush:#fff0f5","de-DE":"Lavendel:#fff0f5","en-US":"Lavender Blush:#fff0f5"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-1.1.jpeg", + }, + ], "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "GBP", + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "EUR", + }, + }, }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ADPC-09", + }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Patterned Pillow Cover", }, + { + "locale": "de-DE", + "value": "Gemusterter Kissenbezug", + }, + { + "locale": "en-US", + "value": "Patterned Pillow Cover", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1499, - "currencyCode": "USD", - }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "patterned-pillow-cover", }, + { + "locale": "de-DE", + "value": "gemusterte-kissenhlle", + }, + { + "locale": "en-US", + "value": "patterned-pillow-cover", + }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - ], - "sku": "ADPC-7", - }, - ], -} -`); + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Machine washable\\n- Pillow not included","de-DE":"- Waschmaschinenfest\\n- Kissen nicht im Lieferumfang enthalten","en-US":"- Machine washable\\n- Pillow not included"}", + }, + { + "name": "color", + "value": "{"en-GB":"Black:#000000","de-DE":"Schwarz:#000000","en-US":"Black:#000000"}", + }, + { + "name": "new-arrival", + "value": "false", + }, + ], + "images": [ + { + "dimensions": { + "height": 4031, + "width": 6047, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Patterned_Pillow_Cover-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "ADPC-7", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting.spec.ts index 1d3f63a17..ae9d2e2b3 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/pink-abstract-painting.spec.ts @@ -6,308 +6,308 @@ describe(`with pinkAbstractPainting preset`, () => { const pinkAbstractPaintingPreset = pinkAbstractPainting().build(); expect(pinkAbstractPaintingPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein rosafarbenes abstraktes Gemälde ist ein lebhaftes und auffälliges Kunstwerk, das eine Reihe von Emotionen und Interpretationen hervorrufen kann. Das Gemälde wurde mit Acrylfarben auf Leinwand gemalt. Die Komposition des Gemäldes ist abstrakt und enthält keine erkennbaren Objekte oder Figuren. Die Verwendung von Rosa auf dem Gemälde kann symbolisch sein und Liebe, Weiblichkeit oder Energie darstellen. Das Gemälde kann als Teil einer Galeriegruppe oder als raumbeherrschendes Einzelstück an die Wand gehängt werden. Das Rosa des Gemäldes kann einen starken Fokuspunkt bilden, der das Auge auf das Bild lenkt und ein Gefühl von Energie erzeugt. Insgesamt ist ein rosafarbenes abstraktes Gemälde ein kühnes und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl von Vitalität und Aufregung verleihen kann. Die lebendige Farbgebung und die abstrakte Komposition können ein geheimnisvolles Gefühl und Faszination erzeugen und den Betrachter dazu einladen, das Gemälde auf seine eigene Weise zu interpretieren und sich mit ihm zu verbinden.", - "en": undefined, - "en-GB": "A pink abstract painting is a vibrant and eye-catching work of art that can evoke a range of emotions and interpretations. The painting is created with acrylic paints on canvas. The composition of the painting is abstract, with no recognizable objects or figures. The use of pink in the painting may be symbolic, representing love, femininity, or energy. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The pink color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of energy. Overall, a pink abstract painting is a bold and expressive work of art that can add a sense of vitality and excitement to any space. Its vibrant color scheme and abstract composition can create a sense of mystery and intrigue, inviting viewers to interpret and connect with the painting in their own way.", - "en-US": "A pink abstract painting is a vibrant and eye-catching work of art that can evoke a range of emotions and interpretations. The painting is created with acrylic paints on canvas. The composition of the painting is abstract, with no recognizable objects or figures. The use of pink in the painting may be symbolic, representing love, femininity, or energy. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The pink color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of energy. Overall, a pink abstract painting is a bold and expressive work of art that can add a sense of vitality and excitement to any space. Its vibrant color scheme and abstract composition can create a sense of mystery and intrigue, inviting viewers to interpret and connect with the painting in their own way.", - "fr": undefined, - }, - "key": "pink-abstract-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Acryl auf Leinwand -- 2 Fuß mal 2 Fuß", - "en-GB": "- Acrylic on canvas -- 2ft by 2ft", - "en-US": "- Acrylic on canvas -- 2ft by 2ft", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein rosafarbenes abstraktes Gemälde ist ein lebhaftes und auffälliges Kunstwerk, das eine Reihe von Emotionen und Interpretationen hervorrufen kann. Das Gemälde wurde mit Acrylfarben auf Leinwand gemalt. Die Komposition des Gemäldes ist abstrakt und enthält keine erkennbaren Objekte oder Figuren. Die Verwendung von Rosa auf dem Gemälde kann symbolisch sein und Liebe, Weiblichkeit oder Energie darstellen. Das Gemälde kann als Teil einer Galeriegruppe oder als raumbeherrschendes Einzelstück an die Wand gehängt werden. Das Rosa des Gemäldes kann einen starken Fokuspunkt bilden, der das Auge auf das Bild lenkt und ein Gefühl von Energie erzeugt. Insgesamt ist ein rosafarbenes abstraktes Gemälde ein kühnes und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl von Vitalität und Aufregung verleihen kann. Die lebendige Farbgebung und die abstrakte Komposition können ein geheimnisvolles Gefühl und Faszination erzeugen und den Betrachter dazu einladen, das Gemälde auf seine eigene Weise zu interpretieren und sich mit ihm zu verbinden.", + "en": undefined, + "en-GB": "A pink abstract painting is a vibrant and eye-catching work of art that can evoke a range of emotions and interpretations. The painting is created with acrylic paints on canvas. The composition of the painting is abstract, with no recognizable objects or figures. The use of pink in the painting may be symbolic, representing love, femininity, or energy. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The pink color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of energy. Overall, a pink abstract painting is a bold and expressive work of art that can add a sense of vitality and excitement to any space. Its vibrant color scheme and abstract composition can create a sense of mystery and intrigue, inviting viewers to interpret and connect with the painting in their own way.", + "en-US": "A pink abstract painting is a vibrant and eye-catching work of art that can evoke a range of emotions and interpretations. The painting is created with acrylic paints on canvas. The composition of the painting is abstract, with no recognizable objects or figures. The use of pink in the painting may be symbolic, representing love, femininity, or energy. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The pink color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of energy. Overall, a pink abstract painting is a bold and expressive work of art that can add a sense of vitality and excitement to any space. Its vibrant color scheme and abstract composition can create a sense of mystery and intrigue, inviting viewers to interpret and connect with the painting in their own way.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Rosa:#FFC0CB", - "en-GB": "Pink:#FFC0CB", - "en-US": "Pink:#FFC0CB", + "key": "pink-abstract-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Acryl auf Leinwand + - 2 Fuß mal 2 Fuß", + "en-GB": "- Acrylic on canvas + - 2ft by 2ft", + "en-US": "- Acrylic on canvas + - 2ft by 2ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Rosa:#FFC0CB", + "en-GB": "Pink:#FFC0CB", + "en-US": "Pink:#FFC0CB", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3873, + "w": 3873, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Pink_Abstract_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5999, + "currencyCode": "USD", + }, + }, + ], + "sku": "PAP-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3873, - "w": 3873, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Abstrakte Rosa Malerei", + "en": undefined, + "en-GB": "Pink Abstract Painting", + "en-US": "Pink Abstract Painting", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Pink_Abstract_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rosa-abstrakte-malerei", + "en": undefined, + "en-GB": "pink-abstract-painting", + "en-US": "pink-abstract-painting", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "PAP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Abstrakte Rosa Malerei", - "en": undefined, - "en-GB": "Pink Abstract Painting", - "en-US": "Pink Abstract Painting", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rosa-abstrakte-malerei", - "en": undefined, - "en-GB": "pink-abstract-painting", - "en-US": "pink-abstract-painting", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a pinkAbstractPainting preset when built for graphql`, () => { const pinkAbstractPaintingPresetGraphql = pinkAbstractPainting().buildGraphql(); expect(pinkAbstractPaintingPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A pink abstract painting is a vibrant and eye-catching work of art that can evoke a range of emotions and interpretations. The painting is created with acrylic paints on canvas. The composition of the painting is abstract, with no recognizable objects or figures. The use of pink in the painting may be symbolic, representing love, femininity, or energy. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The pink color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of energy. Overall, a pink abstract painting is a bold and expressive work of art that can add a sense of vitality and excitement to any space. Its vibrant color scheme and abstract composition can create a sense of mystery and intrigue, inviting viewers to interpret and connect with the painting in their own way.", - }, - { - "locale": "de-DE", - "value": "Ein rosafarbenes abstraktes Gemälde ist ein lebhaftes und auffälliges Kunstwerk, das eine Reihe von Emotionen und Interpretationen hervorrufen kann. Das Gemälde wurde mit Acrylfarben auf Leinwand gemalt. Die Komposition des Gemäldes ist abstrakt und enthält keine erkennbaren Objekte oder Figuren. Die Verwendung von Rosa auf dem Gemälde kann symbolisch sein und Liebe, Weiblichkeit oder Energie darstellen. Das Gemälde kann als Teil einer Galeriegruppe oder als raumbeherrschendes Einzelstück an die Wand gehängt werden. Das Rosa des Gemäldes kann einen starken Fokuspunkt bilden, der das Auge auf das Bild lenkt und ein Gefühl von Energie erzeugt. Insgesamt ist ein rosafarbenes abstraktes Gemälde ein kühnes und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl von Vitalität und Aufregung verleihen kann. Die lebendige Farbgebung und die abstrakte Komposition können ein geheimnisvolles Gefühl und Faszination erzeugen und den Betrachter dazu einladen, das Gemälde auf seine eigene Weise zu interpretieren und sich mit ihm zu verbinden.", - }, - { - "locale": "en-US", - "value": "A pink abstract painting is a vibrant and eye-catching work of art that can evoke a range of emotions and interpretations. The painting is created with acrylic paints on canvas. The composition of the painting is abstract, with no recognizable objects or figures. The use of pink in the painting may be symbolic, representing love, femininity, or energy. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The pink color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of energy. Overall, a pink abstract painting is a bold and expressive work of art that can add a sense of vitality and excitement to any space. Its vibrant color scheme and abstract composition can create a sense of mystery and intrigue, inviting viewers to interpret and connect with the painting in their own way.", - }, - ], - "key": "pink-abstract-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß","en-US":"- Acrylic on canvas\\n- 2ft by 2ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3873, - "width": 3873, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Pink_Abstract_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5999, - "currencyCode": "EUR", + "categories": [ + { + "key": "home-accents", + "typeId": "category", }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A pink abstract painting is a vibrant and eye-catching work of art that can evoke a range of emotions and interpretations. The painting is created with acrylic paints on canvas. The composition of the painting is abstract, with no recognizable objects or figures. The use of pink in the painting may be symbolic, representing love, femininity, or energy. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The pink color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of energy. Overall, a pink abstract painting is a bold and expressive work of art that can add a sense of vitality and excitement to any space. Its vibrant color scheme and abstract composition can create a sense of mystery and intrigue, inviting viewers to interpret and connect with the painting in their own way.", + }, + { + "locale": "de-DE", + "value": "Ein rosafarbenes abstraktes Gemälde ist ein lebhaftes und auffälliges Kunstwerk, das eine Reihe von Emotionen und Interpretationen hervorrufen kann. Das Gemälde wurde mit Acrylfarben auf Leinwand gemalt. Die Komposition des Gemäldes ist abstrakt und enthält keine erkennbaren Objekte oder Figuren. Die Verwendung von Rosa auf dem Gemälde kann symbolisch sein und Liebe, Weiblichkeit oder Energie darstellen. Das Gemälde kann als Teil einer Galeriegruppe oder als raumbeherrschendes Einzelstück an die Wand gehängt werden. Das Rosa des Gemäldes kann einen starken Fokuspunkt bilden, der das Auge auf das Bild lenkt und ein Gefühl von Energie erzeugt. Insgesamt ist ein rosafarbenes abstraktes Gemälde ein kühnes und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl von Vitalität und Aufregung verleihen kann. Die lebendige Farbgebung und die abstrakte Komposition können ein geheimnisvolles Gefühl und Faszination erzeugen und den Betrachter dazu einladen, das Gemälde auf seine eigene Weise zu interpretieren und sich mit ihm zu verbinden.", + }, + { + "locale": "en-US", + "value": "A pink abstract painting is a vibrant and eye-catching work of art that can evoke a range of emotions and interpretations. The painting is created with acrylic paints on canvas. The composition of the painting is abstract, with no recognizable objects or figures. The use of pink in the painting may be symbolic, representing love, femininity, or energy. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The pink color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of energy. Overall, a pink abstract painting is a bold and expressive work of art that can add a sense of vitality and excitement to any space. Its vibrant color scheme and abstract composition can create a sense of mystery and intrigue, inviting viewers to interpret and connect with the painting in their own way.", + }, + ], + "key": "pink-abstract-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß","en-US":"- Acrylic on canvas\\n- 2ft by 2ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3873, + "width": 3873, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Pink_Abstract_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "PAP-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Pink Abstract Painting", }, + { + "locale": "de-DE", + "value": "Abstrakte Rosa Malerei", + }, + { + "locale": "en-US", + "value": "Pink Abstract Painting", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "pink-abstract-painting", + }, + { + "locale": "de-DE", + "value": "rosa-abstrakte-malerei", + }, + { + "locale": "en-US", + "value": "pink-abstract-painting", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "PAP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Pink Abstract Painting", - }, - { - "locale": "de-DE", - "value": "Abstrakte Rosa Malerei", - }, - { - "locale": "en-US", - "value": "Pink Abstract Painting", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "pink-abstract-painting", - }, - { - "locale": "de-DE", - "value": "rosa-abstrakte-malerei", - }, - { - "locale": "en-US", - "value": "pink-abstract-painting", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting.spec.ts index 10e477bc0..defe3d986 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/purple-landscape-painting.spec.ts @@ -6,311 +6,311 @@ describe(`with purpleLandscapePainting preset`, () => { const purpleLandscapePaintingPreset = purpleLandscapePainting().build(); expect(purpleLandscapePaintingPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein violettes Landschaftsgemälde auf Leinwand ist ein visuell beeindruckendes Kunstwerk, das eine Reihe von Emotionen und Gefühlen hervorrufen kann. Das Gemälde wurde mit Ölfarben auf einer aufgespannten Leinwand gemalt und zeigt eine Reihe von Lila-Tönen, von tiefem Indigo bis zu hellem Lavendel. Die Komposition des Gemäldes ist eine Landschaftsszene, die eine natürliche Umgebung wie einen Wald, eine Bergkette oder ein Feld darstellt. Die Verwendung von Violett auf dem Gemälde kann symbolisch sein und für Kreativität, Spiritualität oder Geheimnisse stehen. Der Künstler schafft durch eine Vielzahl von Techniken, wie z. B. Schichtung, Überblendung oder Tupfen, ein dynamisches und visuell interessantes Werk. Die Textur des Gemäldes wird durch sichtbare Pinselstriche und dicke Impasto-Bereiche hervorgehoben. Das Gemälde kann als Teil einer Galeriegruppe oder als raumbeherrschendes Kunstwerk an die Wand gehängt werden. Das violette Farbschema des Gemäldes kann einen starken Fokuspunkt bilden, der den Blick auf das Bild lenkt und ein Gefühl der Dramatik erzeugt. Insgesamt ist ein lilafarbenes Landschaftsgemälde auf Leinwand ein fesselndes und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl der Verwunderung und Verzauberung verleihen kann.", - "en": undefined, - "en-GB": "A purple landscape painting on canvas is a visually stunning work of art that can evoke a range of emotions and feelings. The painting is created with oil paints on a stretched canvas, and features a range of shades of purple, from deep indigo to light lavender. The composition of the painting is a landscape scene, depicting a natural setting such as a forest, mountain range, or field. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The texture of the painting may also be emphasized, with visible brushstrokes or thick impasto areas. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The purple color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. Overall, a purple landscape painting on canvas is a captivating and expressive work of art that can add a sense of wonder and enchantment to any space.", - "en-US": "A purple landscape painting on canvas is a visually stunning work of art that can evoke a range of emotions and feelings. The painting is created with oil paints on a stretched canvas, and features a range of shades of purple, from deep indigo to light lavender. The composition of the painting is a landscape scene, depicting a natural setting such as a forest, mountain range, or field. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The texture of the painting may also be emphasized, with visible brushstrokes or thick impasto areas. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The purple color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. Overall, a purple landscape painting on canvas is a captivating and expressive work of art that can add a sense of wonder and enchantment to any space.", - "fr": undefined, - }, - "key": "purple-landscape-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Ölgemälde auf Leinwand -- Rahmen nicht im Lieferumfang enthalten -- Größe: 4 Fuß x 3 Fuß", - "en-GB": "- Oil painting on canvas -- Frame not included -- Size: 4ft by 3ft", - "en-US": "- Oil painting on canvas -- Frame not included -- Size: 4ft by 3ft", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein violettes Landschaftsgemälde auf Leinwand ist ein visuell beeindruckendes Kunstwerk, das eine Reihe von Emotionen und Gefühlen hervorrufen kann. Das Gemälde wurde mit Ölfarben auf einer aufgespannten Leinwand gemalt und zeigt eine Reihe von Lila-Tönen, von tiefem Indigo bis zu hellem Lavendel. Die Komposition des Gemäldes ist eine Landschaftsszene, die eine natürliche Umgebung wie einen Wald, eine Bergkette oder ein Feld darstellt. Die Verwendung von Violett auf dem Gemälde kann symbolisch sein und für Kreativität, Spiritualität oder Geheimnisse stehen. Der Künstler schafft durch eine Vielzahl von Techniken, wie z. B. Schichtung, Überblendung oder Tupfen, ein dynamisches und visuell interessantes Werk. Die Textur des Gemäldes wird durch sichtbare Pinselstriche und dicke Impasto-Bereiche hervorgehoben. Das Gemälde kann als Teil einer Galeriegruppe oder als raumbeherrschendes Kunstwerk an die Wand gehängt werden. Das violette Farbschema des Gemäldes kann einen starken Fokuspunkt bilden, der den Blick auf das Bild lenkt und ein Gefühl der Dramatik erzeugt. Insgesamt ist ein lilafarbenes Landschaftsgemälde auf Leinwand ein fesselndes und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl der Verwunderung und Verzauberung verleihen kann.", + "en": undefined, + "en-GB": "A purple landscape painting on canvas is a visually stunning work of art that can evoke a range of emotions and feelings. The painting is created with oil paints on a stretched canvas, and features a range of shades of purple, from deep indigo to light lavender. The composition of the painting is a landscape scene, depicting a natural setting such as a forest, mountain range, or field. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The texture of the painting may also be emphasized, with visible brushstrokes or thick impasto areas. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The purple color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. Overall, a purple landscape painting on canvas is a captivating and expressive work of art that can add a sense of wonder and enchantment to any space.", + "en-US": "A purple landscape painting on canvas is a visually stunning work of art that can evoke a range of emotions and feelings. The painting is created with oil paints on a stretched canvas, and features a range of shades of purple, from deep indigo to light lavender. The composition of the painting is a landscape scene, depicting a natural setting such as a forest, mountain range, or field. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The texture of the painting may also be emphasized, with visible brushstrokes or thick impasto areas. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The purple color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. Overall, a purple landscape painting on canvas is a captivating and expressive work of art that can add a sense of wonder and enchantment to any space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Violett:#800080", - "en-GB": "Purple:#800080", - "en-US": "Purple:#800080", + "key": "purple-landscape-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Ölgemälde auf Leinwand + - Rahmen nicht im Lieferumfang enthalten + - Größe: 4 Fuß x 3 Fuß", + "en-GB": "- Oil painting on canvas + - Frame not included + - Size: 4ft by 3ft", + "en-US": "- Oil painting on canvas + - Frame not included + - Size: 4ft by 3ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Violett:#800080", + "en-GB": "Purple:#800080", + "en-US": "Purple:#800080", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3902, + "w": 3755, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Landscape_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "USD", + }, + }, + ], + "sku": "BLP-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3902, - "w": 3755, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Lila Landschaftsmalerei", + "en": undefined, + "en-GB": "Purple Landscape Painting", + "en-US": "Purple Landscape Painting", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Landscape_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "lila-landschaftsmalerei", + "en": undefined, + "en-GB": "purple-landscape-painting", + "en-US": "purple-landscape-painting", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BLP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Lila Landschaftsmalerei", - "en": undefined, - "en-GB": "Purple Landscape Painting", - "en-US": "Purple Landscape Painting", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "lila-landschaftsmalerei", - "en": undefined, - "en-GB": "purple-landscape-painting", - "en-US": "purple-landscape-painting", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a purpleLandscapePainting preset when built for graphql`, () => { const purpleLandscapePaintingPresetGraphql = purpleLandscapePainting().buildGraphql(); expect(purpleLandscapePaintingPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A purple landscape painting on canvas is a visually stunning work of art that can evoke a range of emotions and feelings. The painting is created with oil paints on a stretched canvas, and features a range of shades of purple, from deep indigo to light lavender. The composition of the painting is a landscape scene, depicting a natural setting such as a forest, mountain range, or field. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The texture of the painting may also be emphasized, with visible brushstrokes or thick impasto areas. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The purple color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. Overall, a purple landscape painting on canvas is a captivating and expressive work of art that can add a sense of wonder and enchantment to any space.", - }, - { - "locale": "de-DE", - "value": "Ein violettes Landschaftsgemälde auf Leinwand ist ein visuell beeindruckendes Kunstwerk, das eine Reihe von Emotionen und Gefühlen hervorrufen kann. Das Gemälde wurde mit Ölfarben auf einer aufgespannten Leinwand gemalt und zeigt eine Reihe von Lila-Tönen, von tiefem Indigo bis zu hellem Lavendel. Die Komposition des Gemäldes ist eine Landschaftsszene, die eine natürliche Umgebung wie einen Wald, eine Bergkette oder ein Feld darstellt. Die Verwendung von Violett auf dem Gemälde kann symbolisch sein und für Kreativität, Spiritualität oder Geheimnisse stehen. Der Künstler schafft durch eine Vielzahl von Techniken, wie z. B. Schichtung, Überblendung oder Tupfen, ein dynamisches und visuell interessantes Werk. Die Textur des Gemäldes wird durch sichtbare Pinselstriche und dicke Impasto-Bereiche hervorgehoben. Das Gemälde kann als Teil einer Galeriegruppe oder als raumbeherrschendes Kunstwerk an die Wand gehängt werden. Das violette Farbschema des Gemäldes kann einen starken Fokuspunkt bilden, der den Blick auf das Bild lenkt und ein Gefühl der Dramatik erzeugt. Insgesamt ist ein lilafarbenes Landschaftsgemälde auf Leinwand ein fesselndes und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl der Verwunderung und Verzauberung verleihen kann.", - }, - { - "locale": "en-US", - "value": "A purple landscape painting on canvas is a visually stunning work of art that can evoke a range of emotions and feelings. The painting is created with oil paints on a stretched canvas, and features a range of shades of purple, from deep indigo to light lavender. The composition of the painting is a landscape scene, depicting a natural setting such as a forest, mountain range, or field. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The texture of the painting may also be emphasized, with visible brushstrokes or thick impasto areas. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The purple color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. Overall, a purple landscape painting on canvas is a captivating and expressive work of art that can add a sense of wonder and enchantment to any space.", - }, - ], - "key": "purple-landscape-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Oil painting on canvas\\n- Frame not included\\n- Size: 4ft by 3ft","de-DE":"- Ölgemälde auf Leinwand\\n- Rahmen nicht im Lieferumfang enthalten\\n- Größe: 4 Fuß x 3 Fuß","en-US":"- Oil painting on canvas\\n- Frame not included\\n- Size: 4ft by 3ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Purple:#800080","de-DE":"Violett:#800080","en-US":"Purple:#800080"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3902, - "width": 3755, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Landscape_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "EUR", + "categories": [ + { + "key": "home-accents", + "typeId": "category", }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A purple landscape painting on canvas is a visually stunning work of art that can evoke a range of emotions and feelings. The painting is created with oil paints on a stretched canvas, and features a range of shades of purple, from deep indigo to light lavender. The composition of the painting is a landscape scene, depicting a natural setting such as a forest, mountain range, or field. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The texture of the painting may also be emphasized, with visible brushstrokes or thick impasto areas. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The purple color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. Overall, a purple landscape painting on canvas is a captivating and expressive work of art that can add a sense of wonder and enchantment to any space.", + }, + { + "locale": "de-DE", + "value": "Ein violettes Landschaftsgemälde auf Leinwand ist ein visuell beeindruckendes Kunstwerk, das eine Reihe von Emotionen und Gefühlen hervorrufen kann. Das Gemälde wurde mit Ölfarben auf einer aufgespannten Leinwand gemalt und zeigt eine Reihe von Lila-Tönen, von tiefem Indigo bis zu hellem Lavendel. Die Komposition des Gemäldes ist eine Landschaftsszene, die eine natürliche Umgebung wie einen Wald, eine Bergkette oder ein Feld darstellt. Die Verwendung von Violett auf dem Gemälde kann symbolisch sein und für Kreativität, Spiritualität oder Geheimnisse stehen. Der Künstler schafft durch eine Vielzahl von Techniken, wie z. B. Schichtung, Überblendung oder Tupfen, ein dynamisches und visuell interessantes Werk. Die Textur des Gemäldes wird durch sichtbare Pinselstriche und dicke Impasto-Bereiche hervorgehoben. Das Gemälde kann als Teil einer Galeriegruppe oder als raumbeherrschendes Kunstwerk an die Wand gehängt werden. Das violette Farbschema des Gemäldes kann einen starken Fokuspunkt bilden, der den Blick auf das Bild lenkt und ein Gefühl der Dramatik erzeugt. Insgesamt ist ein lilafarbenes Landschaftsgemälde auf Leinwand ein fesselndes und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl der Verwunderung und Verzauberung verleihen kann.", + }, + { + "locale": "en-US", + "value": "A purple landscape painting on canvas is a visually stunning work of art that can evoke a range of emotions and feelings. The painting is created with oil paints on a stretched canvas, and features a range of shades of purple, from deep indigo to light lavender. The composition of the painting is a landscape scene, depicting a natural setting such as a forest, mountain range, or field. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The artist may have used a variety of techniques, such as layering, blending, or stippling, to create a dynamic and visually interesting piece. The texture of the painting may also be emphasized, with visible brushstrokes or thick impasto areas. The painting can be hung on a wall as part of a gallery grouping or as a statement piece that dominates the room. The purple color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. Overall, a purple landscape painting on canvas is a captivating and expressive work of art that can add a sense of wonder and enchantment to any space.", + }, + ], + "key": "purple-landscape-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Oil painting on canvas\\n- Frame not included\\n- Size: 4ft by 3ft","de-DE":"- Ölgemälde auf Leinwand\\n- Rahmen nicht im Lieferumfang enthalten\\n- Größe: 4 Fuß x 3 Fuß","en-US":"- Oil painting on canvas\\n- Frame not included\\n- Size: 4ft by 3ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Purple:#800080","de-DE":"Violett:#800080","en-US":"Purple:#800080"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3902, + "width": 3755, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Landscape_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BLP-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Purple Landscape Painting", }, + { + "locale": "de-DE", + "value": "Lila Landschaftsmalerei", + }, + { + "locale": "en-US", + "value": "Purple Landscape Painting", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "purple-landscape-painting", + }, + { + "locale": "de-DE", + "value": "lila-landschaftsmalerei", + }, + { + "locale": "en-US", + "value": "purple-landscape-painting", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BLP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Purple Landscape Painting", - }, - { - "locale": "de-DE", - "value": "Lila Landschaftsmalerei", - }, - { - "locale": "en-US", - "value": "Purple Landscape Painting", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "purple-landscape-painting", - }, - { - "locale": "de-DE", - "value": "lila-landschaftsmalerei", - }, - { - "locale": "en-US", - "value": "purple-landscape-painting", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting.spec.ts index 4be55b51a..77be3f3ea 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/purple-minimalist-abstract-painting.spec.ts @@ -6,151 +6,166 @@ describe(`with purpleMinimalistAbstractPainting preset`, () => { const purpleMinimalistAbstractPaintingPreset = purpleMinimalistAbstractPainting().build(); expect(purpleMinimalistAbstractPaintingPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein lilafarbenes minimalistisches abstraktes Gemälde ist ein einfaches und elegantes Kunstwerk, das durch die Verwendung minimaler Elemente und einer begrenzten Farbpalette eine beeindruckende visuelle Wirkung erzielt. Das Gemälde wurde mit Acrylfarben auf Leinwand gemalt. Das Farbschema des Gemäldes ist überwiegend violett, mit wenig bis gar keiner Verwendung anderer Farben. Die Verwendung von Violett in dem Gemälde kann symbolisch sein und Kreativität, Spiritualität oder Geheimnisse darstellen. Das Gemälde kann als Teil einer Galeriegruppe an die Wand gehängt werden. Der minimalistische Charakter des Gemäldes erlaubt es, es nahtlos mit einer Vielzahl von Einrichtungsstilen und Farbschemata zu kombinieren. Insgesamt ist ein lilafarbenes, minimalistisches, abstraktes Gemälde ein raffiniertes und unaufdringliches Kunstwerk, das jedem Raum ein Gefühl von Gelassenheit und Harmonie verleihen kann. Die einfache Komposition und die begrenzte Farbpalette können eine beruhigende und meditative Atmosphäre schaffen, während die Verwendung von Lila dem Gemälde ein Gefühl von Geheimnis und Tiefe verleiht.", - "en": undefined, - "en-GB": "A purple minimalist abstract painting is a simple and elegant work of art that relies on the use of minimal elements and a limited color palette to create a striking visual impact. The painting is created with acrylic paints on canvas. The color scheme of the painting is predominantly purple, with little or no use of other colors. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The painting can be hung on a wall as part of a gallery grouping. The minimalist nature of the painting allows it to blend seamlessly with a variety of interior design styles and color schemes. Overall, a purple minimalist abstract painting is a sophisticated and understated work of art that can add a sense of serenity and harmony to any space. Its simple composition and limited color palette can create a calming and meditative atmosphere, while the use of purple adds a sense of mystery and depth to the painting.", - "en-US": "A purple minimalist abstract painting is a simple and elegant work of art that relies on the use of minimal elements and a limited color palette to create a striking visual impact. The painting is created with acrylic paints on canvas. The color scheme of the painting is predominantly purple, with little or no use of other colors. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The painting can be hung on a wall as part of a gallery grouping. The minimalist nature of the painting allows it to blend seamlessly with a variety of interior design styles and color schemes. Overall, a purple minimalist abstract painting is a sophisticated and understated work of art that can add a sense of serenity and harmony to any space. Its simple composition and limited color palette can create a calming and meditative atmosphere, while the use of purple adds a sense of mystery and depth to the painting.", - "fr": undefined, - }, - "key": "purple-minimalist-abstract-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Acryl auf Leinwand -- 2 Fuß mal 2 Fuß", - "en-GB": "- Acrylic on canvas -- 2ft by 2ft", - "en-US": "- Acrylic on canvas -- 2ft by 2ft", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein lilafarbenes minimalistisches abstraktes Gemälde ist ein einfaches und elegantes Kunstwerk, das durch die Verwendung minimaler Elemente und einer begrenzten Farbpalette eine beeindruckende visuelle Wirkung erzielt. Das Gemälde wurde mit Acrylfarben auf Leinwand gemalt. Das Farbschema des Gemäldes ist überwiegend violett, mit wenig bis gar keiner Verwendung anderer Farben. Die Verwendung von Violett in dem Gemälde kann symbolisch sein und Kreativität, Spiritualität oder Geheimnisse darstellen. Das Gemälde kann als Teil einer Galeriegruppe an die Wand gehängt werden. Der minimalistische Charakter des Gemäldes erlaubt es, es nahtlos mit einer Vielzahl von Einrichtungsstilen und Farbschemata zu kombinieren. Insgesamt ist ein lilafarbenes, minimalistisches, abstraktes Gemälde ein raffiniertes und unaufdringliches Kunstwerk, das jedem Raum ein Gefühl von Gelassenheit und Harmonie verleihen kann. Die einfache Komposition und die begrenzte Farbpalette können eine beruhigende und meditative Atmosphäre schaffen, während die Verwendung von Lila dem Gemälde ein Gefühl von Geheimnis und Tiefe verleiht.", + "en": undefined, + "en-GB": "A purple minimalist abstract painting is a simple and elegant work of art that relies on the use of minimal elements and a limited color palette to create a striking visual impact. The painting is created with acrylic paints on canvas. The color scheme of the painting is predominantly purple, with little or no use of other colors. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The painting can be hung on a wall as part of a gallery grouping. The minimalist nature of the painting allows it to blend seamlessly with a variety of interior design styles and color schemes. Overall, a purple minimalist abstract painting is a sophisticated and understated work of art that can add a sense of serenity and harmony to any space. Its simple composition and limited color palette can create a calming and meditative atmosphere, while the use of purple adds a sense of mystery and depth to the painting.", + "en-US": "A purple minimalist abstract painting is a simple and elegant work of art that relies on the use of minimal elements and a limited color palette to create a striking visual impact. The painting is created with acrylic paints on canvas. The color scheme of the painting is predominantly purple, with little or no use of other colors. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The painting can be hung on a wall as part of a gallery grouping. The minimalist nature of the painting allows it to blend seamlessly with a variety of interior design styles and color schemes. Overall, a purple minimalist abstract painting is a sophisticated and understated work of art that can add a sense of serenity and harmony to any space. Its simple composition and limited color palette can create a calming and meditative atmosphere, while the use of purple adds a sense of mystery and depth to the painting.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Violett:#800080", - "en-GB": "Purple:#800080", - "en-US": "Purple:#800080", + "key": "purple-minimalist-abstract-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Acryl auf Leinwand + - 2 Fuß mal 2 Fuß", + "en-GB": "- Acrylic on canvas + - 2ft by 2ft", + "en-US": "- Acrylic on canvas + - 2ft by 2ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Violett:#800080", + "en-GB": "Purple:#800080", + "en-US": "Purple:#800080", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2903, + "w": 3148, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Minimalist_Abstract_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2999, + "currencyCode": "EUR", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3999EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2999, + "currencyCode": "USD", + }, + }, + ], + "sku": "PMAP-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2903, - "w": 3148, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Lila Minimalistische Abstrakte Malerei", + "en": undefined, + "en-GB": "Purple Minimalist Abstract Painting", + "en-US": "Purple Minimalist Abstract Painting", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Minimalist_Abstract_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2999, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "lila-minimalistische-abstrakte-malerei", + "en": undefined, + "en-GB": "purple-minimalist-abstract-painting", + "en-US": "purple-minimalist-abstract-painting", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2999, - "currencyCode": "GBP", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2999, - "currencyCode": "USD", - }, - }, - ], - "sku": "PMAP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Lila Minimalistische Abstrakte Malerei", - "en": undefined, - "en-GB": "Purple Minimalist Abstract Painting", - "en-US": "Purple Minimalist Abstract Painting", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "lila-minimalistische-abstrakte-malerei", - "en": undefined, - "en-GB": "purple-minimalist-abstract-painting", - "en-US": "purple-minimalist-abstract-painting", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a purpleMinimalistAbstractPainting preset when built for graphql`, () => { @@ -158,163 +173,180 @@ describe(`with purpleMinimalistAbstractPainting preset`, () => { purpleMinimalistAbstractPainting().buildGraphql(); expect(purpleMinimalistAbstractPaintingPresetGraphql) .toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A purple minimalist abstract painting is a simple and elegant work of art that relies on the use of minimal elements and a limited color palette to create a striking visual impact. The painting is created with acrylic paints on canvas. The color scheme of the painting is predominantly purple, with little or no use of other colors. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The painting can be hung on a wall as part of a gallery grouping. The minimalist nature of the painting allows it to blend seamlessly with a variety of interior design styles and color schemes. Overall, a purple minimalist abstract painting is a sophisticated and understated work of art that can add a sense of serenity and harmony to any space. Its simple composition and limited color palette can create a calming and meditative atmosphere, while the use of purple adds a sense of mystery and depth to the painting.", - }, - { - "locale": "de-DE", - "value": "Ein lilafarbenes minimalistisches abstraktes Gemälde ist ein einfaches und elegantes Kunstwerk, das durch die Verwendung minimaler Elemente und einer begrenzten Farbpalette eine beeindruckende visuelle Wirkung erzielt. Das Gemälde wurde mit Acrylfarben auf Leinwand gemalt. Das Farbschema des Gemäldes ist überwiegend violett, mit wenig bis gar keiner Verwendung anderer Farben. Die Verwendung von Violett in dem Gemälde kann symbolisch sein und Kreativität, Spiritualität oder Geheimnisse darstellen. Das Gemälde kann als Teil einer Galeriegruppe an die Wand gehängt werden. Der minimalistische Charakter des Gemäldes erlaubt es, es nahtlos mit einer Vielzahl von Einrichtungsstilen und Farbschemata zu kombinieren. Insgesamt ist ein lilafarbenes, minimalistisches, abstraktes Gemälde ein raffiniertes und unaufdringliches Kunstwerk, das jedem Raum ein Gefühl von Gelassenheit und Harmonie verleihen kann. Die einfache Komposition und die begrenzte Farbpalette können eine beruhigende und meditative Atmosphäre schaffen, während die Verwendung von Lila dem Gemälde ein Gefühl von Geheimnis und Tiefe verleiht.", - }, - { - "locale": "en-US", - "value": "A purple minimalist abstract painting is a simple and elegant work of art that relies on the use of minimal elements and a limited color palette to create a striking visual impact. The painting is created with acrylic paints on canvas. The color scheme of the painting is predominantly purple, with little or no use of other colors. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The painting can be hung on a wall as part of a gallery grouping. The minimalist nature of the painting allows it to blend seamlessly with a variety of interior design styles and color schemes. Overall, a purple minimalist abstract painting is a sophisticated and understated work of art that can add a sense of serenity and harmony to any space. Its simple composition and limited color palette can create a calming and meditative atmosphere, while the use of purple adds a sense of mystery and depth to the painting.", - }, - ], - "key": "purple-minimalist-abstract-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß","en-US":"- Acrylic on canvas\\n- 2ft by 2ft"}", - }, - { - "name": "color", - "value": "{"en-GB":"Purple:#800080","de-DE":"Violett:#800080","en-US":"Purple:#800080"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2903, - "width": 3148, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Minimalist_Abstract_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2999, - "currencyCode": "EUR", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A purple minimalist abstract painting is a simple and elegant work of art that relies on the use of minimal elements and a limited color palette to create a striking visual impact. The painting is created with acrylic paints on canvas. The color scheme of the painting is predominantly purple, with little or no use of other colors. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The painting can be hung on a wall as part of a gallery grouping. The minimalist nature of the painting allows it to blend seamlessly with a variety of interior design styles and color schemes. Overall, a purple minimalist abstract painting is a sophisticated and understated work of art that can add a sense of serenity and harmony to any space. Its simple composition and limited color palette can create a calming and meditative atmosphere, while the use of purple adds a sense of mystery and depth to the painting.", + }, + { + "locale": "de-DE", + "value": "Ein lilafarbenes minimalistisches abstraktes Gemälde ist ein einfaches und elegantes Kunstwerk, das durch die Verwendung minimaler Elemente und einer begrenzten Farbpalette eine beeindruckende visuelle Wirkung erzielt. Das Gemälde wurde mit Acrylfarben auf Leinwand gemalt. Das Farbschema des Gemäldes ist überwiegend violett, mit wenig bis gar keiner Verwendung anderer Farben. Die Verwendung von Violett in dem Gemälde kann symbolisch sein und Kreativität, Spiritualität oder Geheimnisse darstellen. Das Gemälde kann als Teil einer Galeriegruppe an die Wand gehängt werden. Der minimalistische Charakter des Gemäldes erlaubt es, es nahtlos mit einer Vielzahl von Einrichtungsstilen und Farbschemata zu kombinieren. Insgesamt ist ein lilafarbenes, minimalistisches, abstraktes Gemälde ein raffiniertes und unaufdringliches Kunstwerk, das jedem Raum ein Gefühl von Gelassenheit und Harmonie verleihen kann. Die einfache Komposition und die begrenzte Farbpalette können eine beruhigende und meditative Atmosphäre schaffen, während die Verwendung von Lila dem Gemälde ein Gefühl von Geheimnis und Tiefe verleiht.", + }, + { + "locale": "en-US", + "value": "A purple minimalist abstract painting is a simple and elegant work of art that relies on the use of minimal elements and a limited color palette to create a striking visual impact. The painting is created with acrylic paints on canvas. The color scheme of the painting is predominantly purple, with little or no use of other colors. The use of purple in the painting may be symbolic, representing creativity, spirituality, or mystery. The painting can be hung on a wall as part of a gallery grouping. The minimalist nature of the painting allows it to blend seamlessly with a variety of interior design styles and color schemes. Overall, a purple minimalist abstract painting is a sophisticated and understated work of art that can add a sense of serenity and harmony to any space. Its simple composition and limited color palette can create a calming and meditative atmosphere, while the use of purple adds a sense of mystery and depth to the painting.", }, + ], + "key": "purple-minimalist-abstract-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß","en-US":"- Acrylic on canvas\\n- 2ft by 2ft"}", + }, + { + "name": "color", + "value": "{"en-GB":"Purple:#800080","de-DE":"Violett:#800080","en-US":"Purple:#800080"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2903, + "width": 3148, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Purple_Minimalist_Abstract_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3999EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "PMAP-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-GB", + "value": "Purple Minimalist Abstract Painting", + }, + { + "locale": "de-DE", + "value": "Lila Minimalistische Abstrakte Malerei", + }, + { + "locale": "en-US", + "value": "Purple Minimalist Abstract Painting", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-GB", + "value": "purple-minimalist-abstract-painting", + }, + { + "locale": "de-DE", + "value": "lila-minimalistische-abstrakte-malerei", + }, + { + "locale": "en-US", + "value": "purple-minimalist-abstract-painting", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "PMAP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-GB", - "value": "Purple Minimalist Abstract Painting", - }, - { - "locale": "de-DE", - "value": "Lila Minimalistische Abstrakte Malerei", - }, - { - "locale": "en-US", - "value": "Purple Minimalist Abstract Painting", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-GB", - "value": "purple-minimalist-abstract-painting", - }, - { - "locale": "de-DE", - "value": "lila-minimalistische-abstrakte-malerei", - }, - { - "locale": "en-US", - "value": "purple-minimalist-abstract-painting", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair.spec.ts index 47ccdd690..7af291a52 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rattan-lounge-chair.spec.ts @@ -5,333 +5,333 @@ describe(`with rattanLoungeChair preset`, () => { it(`should return a rattanLoungeChair preset`, () => { const rattanLoungeChairPreset = rattanLoungeChair().build(); expect(rattanLoungeChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der Loungesessel aus Rattan bietet eine bequeme Sitzgelegenheit zum Entspannen. Das Webmuster aus Rattanfasern bildet die Sitzfläche und Rückenlehne, die von einem stabilen Rattangestell gehalten werden. Die Polsterung aus weichem Baumwollstoff sorgt für zusätzlichen Sitzkomfort. Die Kissen sind abnehmbar, was die Reinigung oder einen Austausch erleichtert. Das Design des Rattan-Loungesessels ist vom tropischen Ambiente des Bohemian-Looks inspiriert und zeigt sich in erdigen Tönen. Das komplexe Webmuster mit seinen geometrischen Formen bildet ein optisches Highlight. Das für die Konstruktion des Sitzmöbels verwendete Rattanmaterial ist langlebig, verschleißfest und leicht. Der Sessel kann somit flexibel in jeden Innen- oder Außenbereich integriert werden. Seine natürlichen Materialien und sein einzigartiges Design schaffen eine entspannte und einladende Atmosphäre zum Relaxen.", - "en": undefined, - "en-GB": "The Rattan Lounge Chair is designed to provide comfortable seating for relaxing and lounging. The chair features a sturdy frame made of rattan, with a woven pattern of rattan fibers forming the seat and backrest. The chair comes with additional cushioning for extra comfort, made from soft cotton fabric. The cushions are removable, allowing for easy cleaning or replacement. The design of the rattan lounge chair is inspired by tropical or bohemian styles, with a natural and earthy look. The chair features intricate woven patterns or geometric shapes, creating a visually interesting texture. The rattan material used in the construction of the chair is known for its durability and resistance to wear and tear. It is also lightweight, making it easy to move the chair around the room. Overall, a rattan lounge chair is a stylish and comfortable addition to any living room or outdoor space. Its natural materials and unique design create a relaxed and inviting atmosphere, making it the perfect place to unwind and enjoy some peace and quiet.", - "en-US": "The Rattan Lounge Chair is designed to provide comfortable seating for relaxing and lounging. The chair features a sturdy frame made of rattan, with a woven pattern of rattan fibers forming the seat and backrest. The chair comes with additional cushioning for extra comfort, made from soft cotton fabric. The cushions are removable, allowing for easy cleaning or replacement. The design of the rattan lounge chair is inspired by tropical or bohemian styles, with a natural and earthy look. The chair features intricate woven patterns or geometric shapes, creating a visually interesting texture. The rattan material used in the construction of the chair is known for its durability and resistance to wear and tear. It is also lightweight, making it easy to move the chair around the room. Overall, a rattan lounge chair is a stylish and comfortable addition to any living room or outdoor space. Its natural materials and unique design create a relaxed and inviting atmosphere, making it the perfect place to unwind and enjoy some peace and quiet.", - "fr": undefined, - }, - "key": "rattan-lounge-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Inklusive 2 Kissen für Sitz und Rückenlehne", - "en-GB": "- Includes 2 cushions for seat and backrest", - "en-US": "- Includes 2 cushions for seat and backrest", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der Loungesessel aus Rattan bietet eine bequeme Sitzgelegenheit zum Entspannen. Das Webmuster aus Rattanfasern bildet die Sitzfläche und Rückenlehne, die von einem stabilen Rattangestell gehalten werden. Die Polsterung aus weichem Baumwollstoff sorgt für zusätzlichen Sitzkomfort. Die Kissen sind abnehmbar, was die Reinigung oder einen Austausch erleichtert. Das Design des Rattan-Loungesessels ist vom tropischen Ambiente des Bohemian-Looks inspiriert und zeigt sich in erdigen Tönen. Das komplexe Webmuster mit seinen geometrischen Formen bildet ein optisches Highlight. Das für die Konstruktion des Sitzmöbels verwendete Rattanmaterial ist langlebig, verschleißfest und leicht. Der Sessel kann somit flexibel in jeden Innen- oder Außenbereich integriert werden. Seine natürlichen Materialien und sein einzigartiges Design schaffen eine entspannte und einladende Atmosphäre zum Relaxen.", + "en": undefined, + "en-GB": "The Rattan Lounge Chair is designed to provide comfortable seating for relaxing and lounging. The chair features a sturdy frame made of rattan, with a woven pattern of rattan fibers forming the seat and backrest. The chair comes with additional cushioning for extra comfort, made from soft cotton fabric. The cushions are removable, allowing for easy cleaning or replacement. The design of the rattan lounge chair is inspired by tropical or bohemian styles, with a natural and earthy look. The chair features intricate woven patterns or geometric shapes, creating a visually interesting texture. The rattan material used in the construction of the chair is known for its durability and resistance to wear and tear. It is also lightweight, making it easy to move the chair around the room. Overall, a rattan lounge chair is a stylish and comfortable addition to any living room or outdoor space. Its natural materials and unique design create a relaxed and inviting atmosphere, making it the perfect place to unwind and enjoy some peace and quiet.", + "en-US": "The Rattan Lounge Chair is designed to provide comfortable seating for relaxing and lounging. The chair features a sturdy frame made of rattan, with a woven pattern of rattan fibers forming the seat and backrest. The chair comes with additional cushioning for extra comfort, made from soft cotton fabric. The cushions are removable, allowing for easy cleaning or replacement. The design of the rattan lounge chair is inspired by tropical or bohemian styles, with a natural and earthy look. The chair features intricate woven patterns or geometric shapes, creating a visually interesting texture. The rattan material used in the construction of the chair is known for its durability and resistance to wear and tear. It is also lightweight, making it easy to move the chair around the room. Overall, a rattan lounge chair is a stylish and comfortable addition to any living room or outdoor space. Its natural materials and unique design create a relaxed and inviting atmosphere, making it the perfect place to unwind and enjoy some peace and quiet.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Antik-weiß:#faebd7", - "en-GB": "Antique White:#faebd7", - "en-US": "Antique White:#faebd7", + "key": "rattan-lounge-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Inklusive 2 Kissen für Sitz und Rückenlehne", + "en-GB": "- Includes 2 cushions for seat and backrest", + "en-US": "- Includes 2 cushions for seat and backrest", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Antik-weiß:#faebd7", + "en-GB": "Antique White:#faebd7", + "en-US": "Antique White:#faebd7", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.1.jpeg", + }, + { + "dimensions": { + "h": 4500, + "w": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "USD", + }, + }, + ], + "sku": "RLC-08", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Loungesessel aus Rattan", + "en": undefined, + "en-GB": "Rattan Lounge Chair", + "en-US": "Rattan Lounge Chair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 5000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.1.jpeg", - }, - { - "dimensions": { - "h": 4500, - "w": 3375, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rattan-loungesessel", + "en": undefined, + "en-GB": "rattan-lounge-chair", + "en-US": "rattan-lounge-chair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "EUR", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "USD", - }, - }, - ], - "sku": "RLC-08", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Loungesessel aus Rattan", - "en": undefined, - "en-GB": "Rattan Lounge Chair", - "en-US": "Rattan Lounge Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rattan-loungesessel", - "en": undefined, - "en-GB": "rattan-lounge-chair", - "en-US": "rattan-lounge-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a rattanLoungeChair preset when built for graphql`, () => { const rattanLoungeChairPresetGraphql = rattanLoungeChair().buildGraphql(); expect(rattanLoungeChairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "The Rattan Lounge Chair is designed to provide comfortable seating for relaxing and lounging. The chair features a sturdy frame made of rattan, with a woven pattern of rattan fibers forming the seat and backrest. The chair comes with additional cushioning for extra comfort, made from soft cotton fabric. The cushions are removable, allowing for easy cleaning or replacement. The design of the rattan lounge chair is inspired by tropical or bohemian styles, with a natural and earthy look. The chair features intricate woven patterns or geometric shapes, creating a visually interesting texture. The rattan material used in the construction of the chair is known for its durability and resistance to wear and tear. It is also lightweight, making it easy to move the chair around the room. Overall, a rattan lounge chair is a stylish and comfortable addition to any living room or outdoor space. Its natural materials and unique design create a relaxed and inviting atmosphere, making it the perfect place to unwind and enjoy some peace and quiet.", - }, - { - "locale": "en-US", - "value": "The Rattan Lounge Chair is designed to provide comfortable seating for relaxing and lounging. The chair features a sturdy frame made of rattan, with a woven pattern of rattan fibers forming the seat and backrest. The chair comes with additional cushioning for extra comfort, made from soft cotton fabric. The cushions are removable, allowing for easy cleaning or replacement. The design of the rattan lounge chair is inspired by tropical or bohemian styles, with a natural and earthy look. The chair features intricate woven patterns or geometric shapes, creating a visually interesting texture. The rattan material used in the construction of the chair is known for its durability and resistance to wear and tear. It is also lightweight, making it easy to move the chair around the room. Overall, a rattan lounge chair is a stylish and comfortable addition to any living room or outdoor space. Its natural materials and unique design create a relaxed and inviting atmosphere, making it the perfect place to unwind and enjoy some peace and quiet.", - }, - { - "locale": "de-DE", - "value": "Der Loungesessel aus Rattan bietet eine bequeme Sitzgelegenheit zum Entspannen. Das Webmuster aus Rattanfasern bildet die Sitzfläche und Rückenlehne, die von einem stabilen Rattangestell gehalten werden. Die Polsterung aus weichem Baumwollstoff sorgt für zusätzlichen Sitzkomfort. Die Kissen sind abnehmbar, was die Reinigung oder einen Austausch erleichtert. Das Design des Rattan-Loungesessels ist vom tropischen Ambiente des Bohemian-Looks inspiriert und zeigt sich in erdigen Tönen. Das komplexe Webmuster mit seinen geometrischen Formen bildet ein optisches Highlight. Das für die Konstruktion des Sitzmöbels verwendete Rattanmaterial ist langlebig, verschleißfest und leicht. Der Sessel kann somit flexibel in jeden Innen- oder Außenbereich integriert werden. Seine natürlichen Materialien und sein einzigartiges Design schaffen eine entspannte und einladende Atmosphäre zum Relaxen.", - }, - ], - "key": "rattan-lounge-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 2 cushions for seat and backrest","en-US":"- Includes 2 cushions for seat and backrest","de-DE":"- Inklusive 2 Kissen für Sitz und Rückenlehne"}", - }, - { - "name": "color", - "value": "{"en-GB":"Antique White:#faebd7","de-DE":"Antik-weiß:#faebd7","en-US":"Antique White:#faebd7"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", - }, - ], - "images": [ { - "dimensions": { - "height": 4000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.1.jpeg", - }, - { - "dimensions": { - "height": 4500, - "width": 3375, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "EUR", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "The Rattan Lounge Chair is designed to provide comfortable seating for relaxing and lounging. The chair features a sturdy frame made of rattan, with a woven pattern of rattan fibers forming the seat and backrest. The chair comes with additional cushioning for extra comfort, made from soft cotton fabric. The cushions are removable, allowing for easy cleaning or replacement. The design of the rattan lounge chair is inspired by tropical or bohemian styles, with a natural and earthy look. The chair features intricate woven patterns or geometric shapes, creating a visually interesting texture. The rattan material used in the construction of the chair is known for its durability and resistance to wear and tear. It is also lightweight, making it easy to move the chair around the room. Overall, a rattan lounge chair is a stylish and comfortable addition to any living room or outdoor space. Its natural materials and unique design create a relaxed and inviting atmosphere, making it the perfect place to unwind and enjoy some peace and quiet.", + }, + { + "locale": "en-US", + "value": "The Rattan Lounge Chair is designed to provide comfortable seating for relaxing and lounging. The chair features a sturdy frame made of rattan, with a woven pattern of rattan fibers forming the seat and backrest. The chair comes with additional cushioning for extra comfort, made from soft cotton fabric. The cushions are removable, allowing for easy cleaning or replacement. The design of the rattan lounge chair is inspired by tropical or bohemian styles, with a natural and earthy look. The chair features intricate woven patterns or geometric shapes, creating a visually interesting texture. The rattan material used in the construction of the chair is known for its durability and resistance to wear and tear. It is also lightweight, making it easy to move the chair around the room. Overall, a rattan lounge chair is a stylish and comfortable addition to any living room or outdoor space. Its natural materials and unique design create a relaxed and inviting atmosphere, making it the perfect place to unwind and enjoy some peace and quiet.", }, + { + "locale": "de-DE", + "value": "Der Loungesessel aus Rattan bietet eine bequeme Sitzgelegenheit zum Entspannen. Das Webmuster aus Rattanfasern bildet die Sitzfläche und Rückenlehne, die von einem stabilen Rattangestell gehalten werden. Die Polsterung aus weichem Baumwollstoff sorgt für zusätzlichen Sitzkomfort. Die Kissen sind abnehmbar, was die Reinigung oder einen Austausch erleichtert. Das Design des Rattan-Loungesessels ist vom tropischen Ambiente des Bohemian-Looks inspiriert und zeigt sich in erdigen Tönen. Das komplexe Webmuster mit seinen geometrischen Formen bildet ein optisches Highlight. Das für die Konstruktion des Sitzmöbels verwendete Rattanmaterial ist langlebig, verschleißfest und leicht. Der Sessel kann somit flexibel in jeden Innen- oder Außenbereich integriert werden. Seine natürlichen Materialien und sein einzigartiges Design schaffen eine entspannte und einladende Atmosphäre zum Relaxen.", + }, + ], + "key": "rattan-lounge-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 2 cushions for seat and backrest","en-US":"- Includes 2 cushions for seat and backrest","de-DE":"- Inklusive 2 Kissen für Sitz und Rückenlehne"}", + }, + { + "name": "color", + "value": "{"en-GB":"Antique White:#faebd7","de-DE":"Antik-weiß:#faebd7","en-US":"Antique White:#faebd7"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.1.jpeg", + }, + { + "dimensions": { + "height": 4500, + "width": 3375, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rattan_Lounge_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RLC-08", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Rattan Lounge Chair", + }, + { + "locale": "en-GB", + "value": "Rattan Lounge Chair", + }, + { + "locale": "de-DE", + "value": "Loungesessel aus Rattan", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "rattan-lounge-chair", + }, + { + "locale": "en-GB", + "value": "rattan-lounge-chair", + }, + { + "locale": "de-DE", + "value": "rattan-loungesessel", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RLC-08", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Rattan Lounge Chair", - }, - { - "locale": "en-GB", - "value": "Rattan Lounge Chair", - }, - { - "locale": "de-DE", - "value": "Loungesessel aus Rattan", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "rattan-lounge-chair", - }, - { - "locale": "en-GB", - "value": "rattan-lounge-chair", - }, - { - "locale": "de-DE", - "value": "rattan-loungesessel", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/raven-bowl.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/raven-bowl.spec.ts index 5781205ed..1034240e9 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/raven-bowl.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/raven-bowl.spec.ts @@ -5,312 +5,312 @@ describe(`with ravenBowl preset`, () => { it(`should return a ravenBowl preset`, () => { const ravenBowlPreset = ravenBowl().build(); expect(ravenBowlPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bowls", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Die Schüssel >Raven< wurde zum Servieren von Suppen und anderer Flüssigspeisen designt. Die quadratische Form aus vier geraden Seiten und einem flachen Boden verleiht dem Suppentellerl einen modernen und zeitgemäßen Look. Durch die einzigartige Form und das zeitgemäße Design ist >Raven< eine beliebte Wahl für all diejenigen, die Ästhetik und Praktikabilität auf ihrem Esstisch schätzen.", - "en": undefined, - "en-GB": "This bowl is a dish designed to serve soup and other liquid-based foods. It is a square-shaped bowl with four straight sides and a flat bottom, creating a modern and contemporary look for dining. Overall, a square soup bowl is a functional and stylish choice for serving soup and other liquid-based foods. Its unique shape and contemporary design make it a popular choice for those who appreciate modern aesthetics and practicality.", - "en-US": "This bowl is a dish designed to serve soup and other liquid-based foods. It is a square-shaped bowl with four straight sides and a flat bottom, creating a modern and contemporary look for dining. Overall, a square soup bowl is a functional and stylish choice for serving soup and other liquid-based foods. Its unique shape and contemporary design make it a popular choice for those who appreciate modern aesthetics and practicality.", - "fr": undefined, - }, - "key": "raven-bowl", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Schüssel", - "en-GB": "- Includes 1 bowl", - "en-US": "- Includes 1 bowl", + "categories": [ + { + "key": "bowls", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Die Schüssel >Raven< wurde zum Servieren von Suppen und anderer Flüssigspeisen designt. Die quadratische Form aus vier geraden Seiten und einem flachen Boden verleiht dem Suppentellerl einen modernen und zeitgemäßen Look. Durch die einzigartige Form und das zeitgemäße Design ist >Raven< eine beliebte Wahl für all diejenigen, die Ästhetik und Praktikabilität auf ihrem Esstisch schätzen.", + "en": undefined, + "en-GB": "This bowl is a dish designed to serve soup and other liquid-based foods. It is a square-shaped bowl with four straight sides and a flat bottom, creating a modern and contemporary look for dining. Overall, a square soup bowl is a functional and stylish choice for serving soup and other liquid-based foods. Its unique shape and contemporary design make it a popular choice for those who appreciate modern aesthetics and practicality.", + "en-US": "This bowl is a dish designed to serve soup and other liquid-based foods. It is a square-shaped bowl with four straight sides and a flat bottom, creating a modern and contemporary look for dining. Overall, a square soup bowl is a functional and stylish choice for serving soup and other liquid-based foods. Its unique shape and contemporary design make it a popular choice for those who appreciate modern aesthetics and practicality.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "key": "raven-bowl", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Schüssel", + "en-GB": "- Includes 1 bowl", + "en-US": "- Includes 1 bowl", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2904, + "w": 4232, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Raven_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "RB-093", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2904, - "w": 4232, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Suppenschüssel >Raven<", + "en": undefined, + "en-GB": "Raven Bowl", + "en-US": "Raven Bowl", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Raven_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rabenschssel", + "en": undefined, + "en-GB": "raven-bowl", + "en-US": "raven-bowl", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RB-093", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Suppenschüssel >Raven<", - "en": undefined, - "en-GB": "Raven Bowl", - "en-US": "Raven Bowl", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rabenschssel", - "en": undefined, - "en-GB": "raven-bowl", - "en-US": "raven-bowl", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a ravenBowl preset when built for graphql`, () => { const ravenBowlPresetGraphql = ravenBowl().buildGraphql(); expect(ravenBowlPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bowls", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This bowl is a dish designed to serve soup and other liquid-based foods. It is a square-shaped bowl with four straight sides and a flat bottom, creating a modern and contemporary look for dining. Overall, a square soup bowl is a functional and stylish choice for serving soup and other liquid-based foods. Its unique shape and contemporary design make it a popular choice for those who appreciate modern aesthetics and practicality.", - }, - { - "locale": "en-US", - "value": "This bowl is a dish designed to serve soup and other liquid-based foods. It is a square-shaped bowl with four straight sides and a flat bottom, creating a modern and contemporary look for dining. Overall, a square soup bowl is a functional and stylish choice for serving soup and other liquid-based foods. Its unique shape and contemporary design make it a popular choice for those who appreciate modern aesthetics and practicality.", - }, - { - "locale": "de-DE", - "value": "Die Schüssel >Raven< wurde zum Servieren von Suppen und anderer Flüssigspeisen designt. Die quadratische Form aus vier geraden Seiten und einem flachen Boden verleiht dem Suppentellerl einen modernen und zeitgemäßen Look. Durch die einzigartige Form und das zeitgemäße Design ist >Raven< eine beliebte Wahl für all diejenigen, die Ästhetik und Praktikabilität auf ihrem Esstisch schätzen.", - }, - ], - "key": "raven-bowl", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2904, - "width": 4232, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Raven_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", + "categories": [ + { + "key": "bowls", + "typeId": "category", }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This bowl is a dish designed to serve soup and other liquid-based foods. It is a square-shaped bowl with four straight sides and a flat bottom, creating a modern and contemporary look for dining. Overall, a square soup bowl is a functional and stylish choice for serving soup and other liquid-based foods. Its unique shape and contemporary design make it a popular choice for those who appreciate modern aesthetics and practicality.", + }, + { + "locale": "en-US", + "value": "This bowl is a dish designed to serve soup and other liquid-based foods. It is a square-shaped bowl with four straight sides and a flat bottom, creating a modern and contemporary look for dining. Overall, a square soup bowl is a functional and stylish choice for serving soup and other liquid-based foods. Its unique shape and contemporary design make it a popular choice for those who appreciate modern aesthetics and practicality.", + }, + { + "locale": "de-DE", + "value": "Die Schüssel >Raven< wurde zum Servieren von Suppen und anderer Flüssigspeisen designt. Die quadratische Form aus vier geraden Seiten und einem flachen Boden verleiht dem Suppentellerl einen modernen und zeitgemäßen Look. Durch die einzigartige Form und das zeitgemäße Design ist >Raven< eine beliebte Wahl für all diejenigen, die Ästhetik und Praktikabilität auf ihrem Esstisch schätzen.", + }, + ], + "key": "raven-bowl", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2904, + "width": 4232, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Raven_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RB-093", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Raven Bowl", + }, + { + "locale": "en-GB", + "value": "Raven Bowl", + }, + { + "locale": "de-DE", + "value": "Suppenschüssel >Raven<", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "raven-bowl", + }, + { + "locale": "en-GB", + "value": "raven-bowl", + }, + { + "locale": "de-DE", + "value": "rabenschssel", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RB-093", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Raven Bowl", - }, - { - "locale": "en-GB", - "value": "Raven Bowl", - }, - { - "locale": "de-DE", - "value": "Suppenschüssel >Raven<", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "raven-bowl", - }, - { - "locale": "en-GB", - "value": "raven-bowl", - }, - { - "locale": "de-DE", - "value": "rabenschssel", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray.spec.ts index 754354de8..abc5cd55b 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rectangle-serving-tray.spec.ts @@ -6,316 +6,316 @@ describe(`with rectangleServingTray preset`, () => { const rectangleServingTrayPreset = rectangleServingTray().build(); expect(rectangleServingTrayPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das Serviertablett aus Holz ist ein vielseitiger und funktionaler Gegenstand, der in einer Vielzahl von Gelegenheiten zum Einsatz kommt. Das für das Tablett verwendete Holz mit seiner warmen und natürlichen Ästhetik sorgt für den rustikalen Charme. Holztabletts sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden. Nach dem Gebrauch sollten sie gründlich getrocknet werden, damit keine Feuchtigkeit im Inneren eingeschlossen wird. Ein Serviertablett aus Holz ist ein praktisches und zugleich attraktives Designelement, das jedes Ambiente mit seiner natürlichen Eleganz komplementiert. Es ist langlebig und vielseitig einsetzbar zum Servieren und Präsentieren von Speisen und Getränken, oder aber als Designelement zum Hervorheben einzelner Gegenstände.", - "en": undefined, - "en-GB": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - "en-US": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - "fr": undefined, - }, - "key": "rectangle-serving-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Handwäsche nur -- Naturholz", - "en-GB": "- Hand wash only -- Natural wood", - "en-US": "- Hand wash only -- Natural wood", + "categories": [ + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das Serviertablett aus Holz ist ein vielseitiger und funktionaler Gegenstand, der in einer Vielzahl von Gelegenheiten zum Einsatz kommt. Das für das Tablett verwendete Holz mit seiner warmen und natürlichen Ästhetik sorgt für den rustikalen Charme. Holztabletts sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden. Nach dem Gebrauch sollten sie gründlich getrocknet werden, damit keine Feuchtigkeit im Inneren eingeschlossen wird. Ein Serviertablett aus Holz ist ein praktisches und zugleich attraktives Designelement, das jedes Ambiente mit seiner natürlichen Eleganz komplementiert. Es ist langlebig und vielseitig einsetzbar zum Servieren und Präsentieren von Speisen und Getränken, oder aber als Designelement zum Hervorheben einzelner Gegenstände.", + "en": undefined, + "en-GB": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + "en-US": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", + "key": "rectangle-serving-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Handwäsche nur + - Naturholz", + "en-GB": "- Hand wash only + - Natural wood", + "en-US": "- Hand wash only + - Natural wood", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4024, + "w": 6048, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rectangle_Serving_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + ], + "sku": "RST-02", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4024, - "w": 6048, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Rechteckiges Serviertablett", + "en": undefined, + "en-GB": "Rectangle Serving Tray", + "en-US": "Rectangle Serving Tray", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rectangle_Serving_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rechteckiges-serviertablett", + "en": undefined, + "en-GB": "rectangle-serving-tray", + "en-US": "rectangle-serving-tray", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RST-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Rechteckiges Serviertablett", - "en": undefined, - "en-GB": "Rectangle Serving Tray", - "en-US": "Rectangle Serving Tray", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rechteckiges-serviertablett", - "en": undefined, - "en-GB": "rectangle-serving-tray", - "en-US": "rectangle-serving-tray", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a rectangleServingTray preset when built for graphql`, () => { const rectangleServingTrayPresetGraphql = rectangleServingTray().buildGraphql(); expect(rectangleServingTrayPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - }, - { - "locale": "en-US", - "value": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - }, - { - "locale": "de-DE", - "value": "Das Serviertablett aus Holz ist ein vielseitiger und funktionaler Gegenstand, der in einer Vielzahl von Gelegenheiten zum Einsatz kommt. Das für das Tablett verwendete Holz mit seiner warmen und natürlichen Ästhetik sorgt für den rustikalen Charme. Holztabletts sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden. Nach dem Gebrauch sollten sie gründlich getrocknet werden, damit keine Feuchtigkeit im Inneren eingeschlossen wird. Ein Serviertablett aus Holz ist ein praktisches und zugleich attraktives Designelement, das jedes Ambiente mit seiner natürlichen Eleganz komplementiert. Es ist langlebig und vielseitig einsetzbar zum Servieren und Präsentieren von Speisen und Getränken, oder aber als Designelement zum Hervorheben einzelner Gegenstände.", - }, - ], - "key": "rectangle-serving-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Hand wash only\\n- Natural wood","en-US":"- Hand wash only\\n- Natural wood","de-DE":"- Handwäsche nur\\n- Naturholz"}", - }, - { - "name": "color", - "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4024, - "width": 6048, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rectangle_Serving_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "EUR", + "categories": [ + { + "key": "serving-platters", + "typeId": "category", }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + }, + { + "locale": "en-US", + "value": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + }, + { + "locale": "de-DE", + "value": "Das Serviertablett aus Holz ist ein vielseitiger und funktionaler Gegenstand, der in einer Vielzahl von Gelegenheiten zum Einsatz kommt. Das für das Tablett verwendete Holz mit seiner warmen und natürlichen Ästhetik sorgt für den rustikalen Charme. Holztabletts sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden. Nach dem Gebrauch sollten sie gründlich getrocknet werden, damit keine Feuchtigkeit im Inneren eingeschlossen wird. Ein Serviertablett aus Holz ist ein praktisches und zugleich attraktives Designelement, das jedes Ambiente mit seiner natürlichen Eleganz komplementiert. Es ist langlebig und vielseitig einsetzbar zum Servieren und Präsentieren von Speisen und Getränken, oder aber als Designelement zum Hervorheben einzelner Gegenstände.", + }, + ], + "key": "rectangle-serving-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Hand wash only\\n- Natural wood","en-US":"- Hand wash only\\n- Natural wood","de-DE":"- Handwäsche nur\\n- Naturholz"}", + }, + { + "name": "color", + "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4024, + "width": 6048, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rectangle_Serving_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RST-02", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Rectangle Serving Tray", + }, + { + "locale": "en-GB", + "value": "Rectangle Serving Tray", + }, + { + "locale": "de-DE", + "value": "Rechteckiges Serviertablett", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "rectangle-serving-tray", + }, + { + "locale": "en-GB", + "value": "rectangle-serving-tray", + }, + { + "locale": "de-DE", + "value": "rechteckiges-serviertablett", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RST-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Rectangle Serving Tray", - }, - { - "locale": "en-GB", - "value": "Rectangle Serving Tray", - }, - { - "locale": "de-DE", - "value": "Rechteckiges Serviertablett", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "rectangle-serving-tray", - }, - { - "locale": "en-GB", - "value": "rectangle-serving-tray", - }, - { - "locale": "de-DE", - "value": "rechteckiges-serviertablett", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/red-modern-painting.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/red-modern-painting.spec.ts index 1072e9778..e21ea2073 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/red-modern-painting.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/red-modern-painting.spec.ts @@ -5,308 +5,308 @@ describe(`with redModernPainting preset`, () => { it(`should return a redModernPainting preset`, () => { const redModernPaintingPreset = redModernPainting().build(); expect(redModernPaintingPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das rote moderne Gemälde aus Acrylfarben auf Leinwand ist ein kühnes und markantes Kunst-Statement, das jedem Raum ein zeitgenössisches Flair verleiht. Die Größenwirkung des Gemäldes kann variiert werden, indem es entweder mit mehreren Kunstwerken zusammen oder aber als eigenständiges Statement Piece aufgehängt wird. Das rote Farbschema des Gemäldes kann eine optische Spannung schaffen und ein Gefühl von Dramatik erzeugen. Der zeitgenössische Stil des Gemäldes legt seinen Schwerpunkt darauf, Emotionen und Ideen durch Farbe und Form auszudrücken. Die rote Farbe kann symbolisch gedeutet und als Leidenschaft, Stärke oder Energie ausgelegt werden. Die rote moderne Malerei auf Leinwand ist insgesamt ein lebendiges und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl von Dramatik und Aufregung verleiht.", - "en": undefined, - "en-GB": "A red modern painting on canvas is a bold and striking piece of art that can add a contemporary flair to any room. The painting is created with acrylic paints on a stretched canvas, and features a range of shades of red. The size of the painting can vary, from a small piece that can be hung on a wall as part of a gallery grouping, to a large statement piece that dominates the room. The red color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. The style of the painting is contemporary, with a focus on expressing emotions and ideas through color and form. The red color may be symbolic, representing passion, strength, or energy, depending on the artist's intentions. Overall, a red modern painting on canvas is a vibrant and expressive work of art that can add a sense of drama and excitement to any space.", - "en-US": "A red modern painting on canvas is a bold and striking piece of art that can add a contemporary flair to any room. The painting is created with acrylic paints on a stretched canvas, and features a range of shades of red. The size of the painting can vary, from a small piece that can be hung on a wall as part of a gallery grouping, to a large statement piece that dominates the room. The red color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. The style of the painting is contemporary, with a focus on expressing emotions and ideas through color and form. The red color may be symbolic, representing passion, strength, or energy, depending on the artist's intentions. Overall, a red modern painting on canvas is a vibrant and expressive work of art that can add a sense of drama and excitement to any space.", - "fr": undefined, - }, - "key": "red-modern-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Acryl auf Leinwand -- 2 Fuß mal 2 Fuß", - "en-GB": "- Acrylic on canvas -- 2ft by 2ft", - "en-US": "- Acrylic on canvas -- 2ft by 2ft", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das rote moderne Gemälde aus Acrylfarben auf Leinwand ist ein kühnes und markantes Kunst-Statement, das jedem Raum ein zeitgenössisches Flair verleiht. Die Größenwirkung des Gemäldes kann variiert werden, indem es entweder mit mehreren Kunstwerken zusammen oder aber als eigenständiges Statement Piece aufgehängt wird. Das rote Farbschema des Gemäldes kann eine optische Spannung schaffen und ein Gefühl von Dramatik erzeugen. Der zeitgenössische Stil des Gemäldes legt seinen Schwerpunkt darauf, Emotionen und Ideen durch Farbe und Form auszudrücken. Die rote Farbe kann symbolisch gedeutet und als Leidenschaft, Stärke oder Energie ausgelegt werden. Die rote moderne Malerei auf Leinwand ist insgesamt ein lebendiges und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl von Dramatik und Aufregung verleiht.", + "en": undefined, + "en-GB": "A red modern painting on canvas is a bold and striking piece of art that can add a contemporary flair to any room. The painting is created with acrylic paints on a stretched canvas, and features a range of shades of red. The size of the painting can vary, from a small piece that can be hung on a wall as part of a gallery grouping, to a large statement piece that dominates the room. The red color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. The style of the painting is contemporary, with a focus on expressing emotions and ideas through color and form. The red color may be symbolic, representing passion, strength, or energy, depending on the artist's intentions. Overall, a red modern painting on canvas is a vibrant and expressive work of art that can add a sense of drama and excitement to any space.", + "en-US": "A red modern painting on canvas is a bold and striking piece of art that can add a contemporary flair to any room. The painting is created with acrylic paints on a stretched canvas, and features a range of shades of red. The size of the painting can vary, from a small piece that can be hung on a wall as part of a gallery grouping, to a large statement piece that dominates the room. The red color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. The style of the painting is contemporary, with a focus on expressing emotions and ideas through color and form. The red color may be symbolic, representing passion, strength, or energy, depending on the artist's intentions. Overall, a red modern painting on canvas is a vibrant and expressive work of art that can add a sense of drama and excitement to any space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Rot:#ff0000", - "en-GB": "Red:#ff0000", - "en-US": "Red:#ff0000", + "key": "red-modern-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Acryl auf Leinwand + - 2 Fuß mal 2 Fuß", + "en-GB": "- Acrylic on canvas + - 2ft by 2ft", + "en-US": "- Acrylic on canvas + - 2ft by 2ft", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Rot:#ff0000", + "en-GB": "Red:#ff0000", + "en-US": "Red:#ff0000", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3894, + "w": 3893, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Red_Modern_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + ], + "sku": "RMP-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3894, - "w": 3893, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Rotes modernes Gemälde", + "en": undefined, + "en-GB": "Red Modern Painting", + "en-US": "Red Modern Painting", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Red_Modern_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rote-moderne-malerei", + "en": undefined, + "en-GB": "red-modern-painting", + "en-US": "red-modern-painting", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RMP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Rotes modernes Gemälde", - "en": undefined, - "en-GB": "Red Modern Painting", - "en-US": "Red Modern Painting", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rote-moderne-malerei", - "en": undefined, - "en-GB": "red-modern-painting", - "en-US": "red-modern-painting", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a redModernPainting preset when built for graphql`, () => { const redModernPaintingPresetGraphql = redModernPainting().buildGraphql(); expect(redModernPaintingPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A red modern painting on canvas is a bold and striking piece of art that can add a contemporary flair to any room. The painting is created with acrylic paints on a stretched canvas, and features a range of shades of red. The size of the painting can vary, from a small piece that can be hung on a wall as part of a gallery grouping, to a large statement piece that dominates the room. The red color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. The style of the painting is contemporary, with a focus on expressing emotions and ideas through color and form. The red color may be symbolic, representing passion, strength, or energy, depending on the artist's intentions. Overall, a red modern painting on canvas is a vibrant and expressive work of art that can add a sense of drama and excitement to any space.", - }, - { - "locale": "en-US", - "value": "A red modern painting on canvas is a bold and striking piece of art that can add a contemporary flair to any room. The painting is created with acrylic paints on a stretched canvas, and features a range of shades of red. The size of the painting can vary, from a small piece that can be hung on a wall as part of a gallery grouping, to a large statement piece that dominates the room. The red color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. The style of the painting is contemporary, with a focus on expressing emotions and ideas through color and form. The red color may be symbolic, representing passion, strength, or energy, depending on the artist's intentions. Overall, a red modern painting on canvas is a vibrant and expressive work of art that can add a sense of drama and excitement to any space.", - }, - { - "locale": "de-DE", - "value": "Das rote moderne Gemälde aus Acrylfarben auf Leinwand ist ein kühnes und markantes Kunst-Statement, das jedem Raum ein zeitgenössisches Flair verleiht. Die Größenwirkung des Gemäldes kann variiert werden, indem es entweder mit mehreren Kunstwerken zusammen oder aber als eigenständiges Statement Piece aufgehängt wird. Das rote Farbschema des Gemäldes kann eine optische Spannung schaffen und ein Gefühl von Dramatik erzeugen. Der zeitgenössische Stil des Gemäldes legt seinen Schwerpunkt darauf, Emotionen und Ideen durch Farbe und Form auszudrücken. Die rote Farbe kann symbolisch gedeutet und als Leidenschaft, Stärke oder Energie ausgelegt werden. Die rote moderne Malerei auf Leinwand ist insgesamt ein lebendiges und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl von Dramatik und Aufregung verleiht.", - }, - ], - "key": "red-modern-painting", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","en-US":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß"}", - }, - { - "name": "color", - "value": "{"en-GB":"Red:#ff0000","de-DE":"Rot:#ff0000","en-US":"Red:#ff0000"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3894, - "width": 3893, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Red_Modern_Painting-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "EUR", + "categories": [ + { + "key": "home-accents", + "typeId": "category", }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A red modern painting on canvas is a bold and striking piece of art that can add a contemporary flair to any room. The painting is created with acrylic paints on a stretched canvas, and features a range of shades of red. The size of the painting can vary, from a small piece that can be hung on a wall as part of a gallery grouping, to a large statement piece that dominates the room. The red color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. The style of the painting is contemporary, with a focus on expressing emotions and ideas through color and form. The red color may be symbolic, representing passion, strength, or energy, depending on the artist's intentions. Overall, a red modern painting on canvas is a vibrant and expressive work of art that can add a sense of drama and excitement to any space.", + }, + { + "locale": "en-US", + "value": "A red modern painting on canvas is a bold and striking piece of art that can add a contemporary flair to any room. The painting is created with acrylic paints on a stretched canvas, and features a range of shades of red. The size of the painting can vary, from a small piece that can be hung on a wall as part of a gallery grouping, to a large statement piece that dominates the room. The red color scheme of the painting can create a powerful focal point, drawing the eye towards it and creating a sense of drama. The style of the painting is contemporary, with a focus on expressing emotions and ideas through color and form. The red color may be symbolic, representing passion, strength, or energy, depending on the artist's intentions. Overall, a red modern painting on canvas is a vibrant and expressive work of art that can add a sense of drama and excitement to any space.", + }, + { + "locale": "de-DE", + "value": "Das rote moderne Gemälde aus Acrylfarben auf Leinwand ist ein kühnes und markantes Kunst-Statement, das jedem Raum ein zeitgenössisches Flair verleiht. Die Größenwirkung des Gemäldes kann variiert werden, indem es entweder mit mehreren Kunstwerken zusammen oder aber als eigenständiges Statement Piece aufgehängt wird. Das rote Farbschema des Gemäldes kann eine optische Spannung schaffen und ein Gefühl von Dramatik erzeugen. Der zeitgenössische Stil des Gemäldes legt seinen Schwerpunkt darauf, Emotionen und Ideen durch Farbe und Form auszudrücken. Die rote Farbe kann symbolisch gedeutet und als Leidenschaft, Stärke oder Energie ausgelegt werden. Die rote moderne Malerei auf Leinwand ist insgesamt ein lebendiges und ausdrucksstarkes Kunstwerk, das jedem Raum ein Gefühl von Dramatik und Aufregung verleiht.", + }, + ], + "key": "red-modern-painting", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Acrylic on canvas\\n- 2ft by 2ft","en-US":"- Acrylic on canvas\\n- 2ft by 2ft","de-DE":"- Acryl auf Leinwand\\n- 2 Fuß mal 2 Fuß"}", + }, + { + "name": "color", + "value": "{"en-GB":"Red:#ff0000","de-DE":"Rot:#ff0000","en-US":"Red:#ff0000"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3894, + "width": 3893, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Red_Modern_Painting-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RMP-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Red Modern Painting", }, + { + "locale": "en-GB", + "value": "Red Modern Painting", + }, + { + "locale": "de-DE", + "value": "Rotes modernes Gemälde", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "red-modern-painting", + }, + { + "locale": "en-GB", + "value": "red-modern-painting", + }, + { + "locale": "de-DE", + "value": "rote-moderne-malerei", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RMP-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Red Modern Painting", - }, - { - "locale": "en-GB", - "value": "Red Modern Painting", - }, - { - "locale": "de-DE", - "value": "Rotes modernes Gemälde", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "red-modern-painting", - }, - { - "locale": "en-GB", - "value": "red-modern-painting", - }, - { - "locale": "de-DE", - "value": "rote-moderne-malerei", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/round-serving-tray.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/round-serving-tray.spec.ts index a92990409..fa69dfde0 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/round-serving-tray.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/round-serving-tray.spec.ts @@ -5,337 +5,337 @@ describe(`with roundServingTray preset`, () => { it(`should return a roundServingTray preset`, () => { const roundServingTrayPreset = roundServingTray().build(); expect(roundServingTrayPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "cheese-trays", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das runde Serviertablett aus Holz ist ein vielseitiger und langlebiger Gegenstand, der in einer Vielzahl von Gelegenheiten zum Einsatz kommt. Das für das Tablett verwendete Holz mit seiner warmen und natürlichen Ästhetik sorgt für den rustikalen Charme. Runde Holztabletts sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden. Nach dem Gebrauch sollten sie gründlich getrocknet werden, damit keine Feuchtigkeit im Inneren eingeschlossen wird. Ein rundes Serviertablett aus Holz ist ein praktisches und zugleich attraktives Designelement, das jedes Ambiente mit seiner natürlichen Eleganz komplementiert. Es ist langlebig und vielseitig einsetzbar zum Servieren und Präsentieren von Speisen und Getränken, oder aber als Designelement zum Hervorheben einzelner Gegenstände.", - "en": undefined, - "en-GB": "This Round Serving Tray is a versatile and durable item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Round wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a round wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - "en-US": "This Round Serving Tray is a versatile and durable item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Round wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a round wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - "fr": undefined, - }, - "key": "round-serving-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Handwäsche nur", - "en-GB": "- Hand wash only", - "en-US": "- Hand wash only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", + "categories": [ + { + "key": "plates", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "cheese-trays", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das runde Serviertablett aus Holz ist ein vielseitiger und langlebiger Gegenstand, der in einer Vielzahl von Gelegenheiten zum Einsatz kommt. Das für das Tablett verwendete Holz mit seiner warmen und natürlichen Ästhetik sorgt für den rustikalen Charme. Runde Holztabletts sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden. Nach dem Gebrauch sollten sie gründlich getrocknet werden, damit keine Feuchtigkeit im Inneren eingeschlossen wird. Ein rundes Serviertablett aus Holz ist ein praktisches und zugleich attraktives Designelement, das jedes Ambiente mit seiner natürlichen Eleganz komplementiert. Es ist langlebig und vielseitig einsetzbar zum Servieren und Präsentieren von Speisen und Getränken, oder aber als Designelement zum Hervorheben einzelner Gegenstände.", + "en": undefined, + "en-GB": "This Round Serving Tray is a versatile and durable item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Round wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a round wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + "en-US": "This Round Serving Tray is a versatile and durable item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Round wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a round wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3537, - "w": 3537, + "key": "round-serving-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Handwäsche nur", + "en-GB": "- Hand wash only", + "en-US": "- Hand wash only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3537, + "w": 3537, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.1.jpeg", + }, + { + "dimensions": { + "h": 1719, + "w": 3283, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + ], + "sku": "RST-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.1.jpeg", - }, - { - "dimensions": { - "h": 1719, - "w": 3283, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Rundes Serviertablett", + "en": undefined, + "en-GB": "Round Serving Tray", + "en-US": "Round Serving Tray", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rundes-serviertablett", + "en": undefined, + "en-GB": "round-serving-tray", + "en-US": "round-serving-tray", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RST-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Rundes Serviertablett", - "en": undefined, - "en-GB": "Round Serving Tray", - "en-US": "Round Serving Tray", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rundes-serviertablett", - "en": undefined, - "en-GB": "round-serving-tray", - "en-US": "round-serving-tray", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a roundServingTray preset when built for graphql`, () => { const roundServingTrayPresetGraphql = roundServingTray().buildGraphql(); expect(roundServingTrayPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "plates", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "cheese-trays", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This Round Serving Tray is a versatile and durable item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Round wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a round wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - }, - { - "locale": "en-US", - "value": "This Round Serving Tray is a versatile and durable item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Round wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a round wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - }, - { - "locale": "de-DE", - "value": "Das runde Serviertablett aus Holz ist ein vielseitiger und langlebiger Gegenstand, der in einer Vielzahl von Gelegenheiten zum Einsatz kommt. Das für das Tablett verwendete Holz mit seiner warmen und natürlichen Ästhetik sorgt für den rustikalen Charme. Runde Holztabletts sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden. Nach dem Gebrauch sollten sie gründlich getrocknet werden, damit keine Feuchtigkeit im Inneren eingeschlossen wird. Ein rundes Serviertablett aus Holz ist ein praktisches und zugleich attraktives Designelement, das jedes Ambiente mit seiner natürlichen Eleganz komplementiert. Es ist langlebig und vielseitig einsetzbar zum Servieren und Präsentieren von Speisen und Getränken, oder aber als Designelement zum Hervorheben einzelner Gegenstände.", - }, - ], - "key": "round-serving-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Hand wash only","en-US":"- Hand wash only","de-DE":"- Handwäsche nur"}", - }, - { - "name": "color", - "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3537, - "width": 3537, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.1.jpeg", - }, { - "dimensions": { - "height": 1719, - "width": 3283, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "EUR", + "categories": [ + { + "key": "plates", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "cheese-trays", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This Round Serving Tray is a versatile and durable item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Round wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a round wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + }, + { + "locale": "en-US", + "value": "This Round Serving Tray is a versatile and durable item that can be used in a variety of settings. The wooden material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Round wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a round wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", }, + { + "locale": "de-DE", + "value": "Das runde Serviertablett aus Holz ist ein vielseitiger und langlebiger Gegenstand, der in einer Vielzahl von Gelegenheiten zum Einsatz kommt. Das für das Tablett verwendete Holz mit seiner warmen und natürlichen Ästhetik sorgt für den rustikalen Charme. Runde Holztabletts sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden. Nach dem Gebrauch sollten sie gründlich getrocknet werden, damit keine Feuchtigkeit im Inneren eingeschlossen wird. Ein rundes Serviertablett aus Holz ist ein praktisches und zugleich attraktives Designelement, das jedes Ambiente mit seiner natürlichen Eleganz komplementiert. Es ist langlebig und vielseitig einsetzbar zum Servieren und Präsentieren von Speisen und Getränken, oder aber als Designelement zum Hervorheben einzelner Gegenstände.", + }, + ], + "key": "round-serving-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Hand wash only","en-US":"- Hand wash only","de-DE":"- Handwäsche nur"}", + }, + { + "name": "color", + "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3537, + "width": 3537, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.1.jpeg", + }, + { + "dimensions": { + "height": 1719, + "width": 3283, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Round_Serving_Tray-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RST-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Round Serving Tray", + }, + { + "locale": "en-GB", + "value": "Round Serving Tray", + }, + { + "locale": "de-DE", + "value": "Rundes Serviertablett", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "round-serving-tray", + }, + { + "locale": "en-GB", + "value": "round-serving-tray", + }, + { + "locale": "de-DE", + "value": "rundes-serviertablett", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RST-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Round Serving Tray", - }, - { - "locale": "en-GB", - "value": "Round Serving Tray", - }, - { - "locale": "de-DE", - "value": "Rundes Serviertablett", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "round-serving-tray", - }, - { - "locale": "en-GB", - "value": "round-serving-tray", - }, - { - "locale": "de-DE", - "value": "rundes-serviertablett", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rumi-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rumi-chair.spec.ts index 3164db49c..cc362f03b 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rumi-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rumi-chair.spec.ts @@ -5,316 +5,316 @@ describe(`with rumiChair preset`, () => { it(`should return a rumiChair preset`, () => { const rumiChairPreset = rumiChair().build(); expect(rumiChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein malvenfarbener Samtstuhl mit Messingrahmen ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die lila Farbe des Samtstoffs ist sanft und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Weiblichkeit. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus fliederfarbenem Samt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement Piece in jedem Raum. Die Rückenlehne des Stuhls ist hoch und geschwungen im Design, sodass sie Rücken und Schultern zu stützt. Der Stuhl ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", - "en": undefined, - "en-GB": "A lilac velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The lilac color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the lilac velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - "en-US": "A lilac velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The lilac color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the lilac velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - "fr": undefined, - }, - "key": "rumi-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein malvenfarbener Samtstuhl mit Messingrahmen ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die lila Farbe des Samtstoffs ist sanft und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Weiblichkeit. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus fliederfarbenem Samt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement Piece in jedem Raum. Die Rückenlehne des Stuhls ist hoch und geschwungen im Design, sodass sie Rücken und Schultern zu stützt. Der Stuhl ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", + "en": undefined, + "en-GB": "A lilac velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The lilac color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the lilac velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + "en-US": "A lilac velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The lilac color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the lilac velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Lavendel:#fff0f5", - "en-GB": "Lavender Blush:#fff0f5", - "en-US": "Lavender Blush:#fff0f5", + "key": "rumi-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Lavendel:#fff0f5", + "en-GB": "Lavender Blush:#fff0f5", + "en-US": "Lavender Blush:#fff0f5", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Gold:#FFD700", + "en-GB": "Gold:#FFD700", + "en-US": "Gold:#FFD700", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rumi_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 12999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "15000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 15000, + "currencyCode": "USD", + }, + }, + ], + "sku": "RAM-094", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Gold:#FFD700", - "en-GB": "Gold:#FFD700", - "en-US": "Gold:#FFD700", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Stuhl >Rumi<", + "en": undefined, + "en-GB": "Rumi Chair", + "en-US": "Rumi Chair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3200, - "w": 2400, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rumi_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rumi-stuhl", + "en": undefined, + "en-GB": "rumi-chair", + "en-US": "rumi-chair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 12999, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 15000, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RAM-094", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Stuhl >Rumi<", - "en": undefined, - "en-GB": "Rumi Chair", - "en-US": "Rumi Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rumi-stuhl", - "en": undefined, - "en-GB": "rumi-chair", - "en-US": "rumi-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a rumiChair preset when built for graphql`, () => { const rumiChairPresetGraphql = rumiChair().buildGraphql(); expect(rumiChairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A lilac velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The lilac color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the lilac velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - }, - { - "locale": "en-US", - "value": "A lilac velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The lilac color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the lilac velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - }, - { - "locale": "de-DE", - "value": "Ein malvenfarbener Samtstuhl mit Messingrahmen ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die lila Farbe des Samtstoffs ist sanft und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Weiblichkeit. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus fliederfarbenem Samt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement Piece in jedem Raum. Die Rückenlehne des Stuhls ist hoch und geschwungen im Design, sodass sie Rücken und Schultern zu stützt. Der Stuhl ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", - }, - ], - "key": "rumi-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only","en-US":"- Dry clean only","de-DE":"- Nur chemische Reinigung"}", - }, - { - "name": "color", - "value": "{"en-GB":"Lavender Blush:#fff0f5","de-DE":"Lavendel:#fff0f5","en-US":"Lavender Blush:#fff0f5"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Gold:#FFD700","en-US":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3200, - "width": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rumi_Chair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "EUR", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A lilac velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The lilac color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the lilac velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + }, + { + "locale": "en-US", + "value": "A lilac velvet chair with a brass frame is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The lilac color of the velvet fabric is soft and delicate, adding a touch of femininity to the overall look of the chair. The brass frame of the chair is sturdy and durable, providing a solid foundation for the seating area. The brass color of the frame adds a touch of warmth and sophistication to the overall look of the chair. The combination of the lilac velvet and brass frame creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + }, + { + "locale": "de-DE", + "value": "Ein malvenfarbener Samtstuhl mit Messingrahmen ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die lila Farbe des Samtstoffs ist sanft und zart und verleiht dem Gesamtbild des Stuhls einen Hauch von Weiblichkeit. Der Messingrahmen des Stuhls ist robust und langlebig und bietet eine solide Grundlage für den Sitzbereich. Die Messingfarbe des Gestells verleiht dem Gesamtbild des Stuhls einen Hauch von Wärme und Raffinesse. Die Kombination aus fliederfarbenem Samt und Messingrahmen schafft einen auffälligen Kontrast und macht diesen Stuhl zu einem Statement Piece in jedem Raum. Die Rückenlehne des Stuhls ist hoch und geschwungen im Design, sodass sie Rücken und Schultern zu stützt. Der Stuhl ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", }, + ], + "key": "rumi-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only","en-US":"- Dry clean only","de-DE":"- Nur chemische Reinigung"}", + }, + { + "name": "color", + "value": "{"en-GB":"Lavender Blush:#fff0f5","de-DE":"Lavendel:#fff0f5","en-US":"Lavender Blush:#fff0f5"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Gold:#FFD700","en-US":"Gold:#FFD700","de-DE":"Gold:#FFD700"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3200, + "width": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rumi_Chair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "12999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 12999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "15000USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 15000, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RAM-094", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 12999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Rumi Chair", + }, + { + "locale": "en-GB", + "value": "Rumi Chair", + }, + { + "locale": "de-DE", + "value": "Stuhl >Rumi<", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 15000, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "rumi-chair", + }, + { + "locale": "en-GB", + "value": "rumi-chair", + }, + { + "locale": "de-DE", + "value": "rumi-stuhl", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RAM-094", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Rumi Chair", - }, - { - "locale": "en-GB", - "value": "Rumi Chair", - }, - { - "locale": "de-DE", - "value": "Stuhl >Rumi<", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "rumi-chair", - }, - { - "locale": "en-GB", - "value": "rumi-chair", - }, - { - "locale": "de-DE", - "value": "rumi-stuhl", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-bowl.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-bowl.spec.ts index f59294b79..c9d5bc2a5 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-bowl.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-bowl.spec.ts @@ -5,278 +5,278 @@ describe(`with rusticBowl preset`, () => { it(`should return a rusticBowl preset`, () => { const rusticBowlPreset = rusticBowl().build(); expect(rusticBowlPreset).toMatchInlineSnapshot(` -{ - "categories": [], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Diese quadratische Holzschale bietet vielfältige Einsatzmöglichkeiten - vom Servieren von Salaten und Snacks bis hin zum Aufbewahren von Obst und Gemüse. Sie fügt sich ideal in jede ungezwungene oder rustikale Speiseumgebungen ein und verleiht jedem Tisch einen Hauch von Wärme und natürlicher Schönheit. Die quadratische Holzschale ist eine praktische und stilvolle Wahl zum Servieren und Aufbewahren von Speisen. Ihre natürliche Schönheit und Langlebigkeit bietet verschiedene Einsatzmöglichkeiten in der Küche und als Servierobjekt bei unterschiedlichen Anlässen.", - "en": undefined, - "en-GB": "This square wooden bowl is versatile and can be used for a variety of purposes, from serving salads and snacks to holding fruits and vegetables. It is ideal for casual or rustic dining settings and can add a touch of warmth and natural beauty to any table. The square wooden bowl is a practical and stylish choice for serving and holding food. Its natural beauty and durability make it a popular choice for many different types of cuisine and dining occasions.", - "en-US": "This square wooden bowl is versatile and can be used for a variety of purposes, from serving salads and snacks to holding fruits and vegetables. It is ideal for casual or rustic dining settings and can add a touch of warmth and natural beauty to any table. The square wooden bowl is a practical and stylish choice for serving and holding food. Its natural beauty and durability make it a popular choice for many different types of cuisine and dining occasions.", - "fr": undefined, - }, - "key": "rustic-bowl", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Schüssel", - "en-GB": "- Includes 1 bowl", - "en-US": "- Includes 1 bowl", + "categories": [], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Diese quadratische Holzschale bietet vielfältige Einsatzmöglichkeiten - vom Servieren von Salaten und Snacks bis hin zum Aufbewahren von Obst und Gemüse. Sie fügt sich ideal in jede ungezwungene oder rustikale Speiseumgebungen ein und verleiht jedem Tisch einen Hauch von Wärme und natürlicher Schönheit. Die quadratische Holzschale ist eine praktische und stilvolle Wahl zum Servieren und Aufbewahren von Speisen. Ihre natürliche Schönheit und Langlebigkeit bietet verschiedene Einsatzmöglichkeiten in der Küche und als Servierobjekt bei unterschiedlichen Anlässen.", + "en": undefined, + "en-GB": "This square wooden bowl is versatile and can be used for a variety of purposes, from serving salads and snacks to holding fruits and vegetables. It is ideal for casual or rustic dining settings and can add a touch of warmth and natural beauty to any table. The square wooden bowl is a practical and stylish choice for serving and holding food. Its natural beauty and durability make it a popular choice for many different types of cuisine and dining occasions.", + "en-US": "This square wooden bowl is versatile and can be used for a variety of purposes, from serving salads and snacks to holding fruits and vegetables. It is ideal for casual or rustic dining settings and can add a touch of warmth and natural beauty to any table. The square wooden bowl is a practical and stylish choice for serving and holding food. Its natural beauty and durability make it a popular choice for many different types of cuisine and dining occasions.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", + "key": "rustic-bowl", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Schüssel", + "en-GB": "- Includes 1 bowl", + "en-US": "- Includes 1 bowl", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3280, + "w": 5105, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + ], + "sku": "RB-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3280, - "w": 5105, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Rustikale Schale", + "en": undefined, + "en-GB": "Rustic Bowl", + "en-US": "Rustic Bowl", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rustikale-schale", + "en": undefined, + "en-GB": "rustic-bowl", + "en-US": "rustic-bowl", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Rustikale Schale", - "en": undefined, - "en-GB": "Rustic Bowl", - "en-US": "Rustic Bowl", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rustikale-schale", - "en": undefined, - "en-GB": "rustic-bowl", - "en-US": "rustic-bowl", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a rusticBowl preset when built for graphql`, () => { const rusticBowlPresetGraphql = rusticBowl().buildGraphql(); expect(rusticBowlPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This square wooden bowl is versatile and can be used for a variety of purposes, from serving salads and snacks to holding fruits and vegetables. It is ideal for casual or rustic dining settings and can add a touch of warmth and natural beauty to any table. The square wooden bowl is a practical and stylish choice for serving and holding food. Its natural beauty and durability make it a popular choice for many different types of cuisine and dining occasions.", - }, - { - "locale": "en-US", - "value": "This square wooden bowl is versatile and can be used for a variety of purposes, from serving salads and snacks to holding fruits and vegetables. It is ideal for casual or rustic dining settings and can add a touch of warmth and natural beauty to any table. The square wooden bowl is a practical and stylish choice for serving and holding food. Its natural beauty and durability make it a popular choice for many different types of cuisine and dining occasions.", - }, - { - "locale": "de-DE", - "value": "Diese quadratische Holzschale bietet vielfältige Einsatzmöglichkeiten - vom Servieren von Salaten und Snacks bis hin zum Aufbewahren von Obst und Gemüse. Sie fügt sich ideal in jede ungezwungene oder rustikale Speiseumgebungen ein und verleiht jedem Tisch einen Hauch von Wärme und natürlicher Schönheit. Die quadratische Holzschale ist eine praktische und stilvolle Wahl zum Servieren und Aufbewahren von Speisen. Ihre natürliche Schönheit und Langlebigkeit bietet verschiedene Einsatzmöglichkeiten in der Küche und als Servierobjekt bei unterschiedlichen Anlässen.", - }, - ], - "key": "rustic-bowl", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3280, - "width": 5105, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "EUR", + "categories": [], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This square wooden bowl is versatile and can be used for a variety of purposes, from serving salads and snacks to holding fruits and vegetables. It is ideal for casual or rustic dining settings and can add a touch of warmth and natural beauty to any table. The square wooden bowl is a practical and stylish choice for serving and holding food. Its natural beauty and durability make it a popular choice for many different types of cuisine and dining occasions.", }, + { + "locale": "en-US", + "value": "This square wooden bowl is versatile and can be used for a variety of purposes, from serving salads and snacks to holding fruits and vegetables. It is ideal for casual or rustic dining settings and can add a touch of warmth and natural beauty to any table. The square wooden bowl is a practical and stylish choice for serving and holding food. Its natural beauty and durability make it a popular choice for many different types of cuisine and dining occasions.", + }, + { + "locale": "de-DE", + "value": "Diese quadratische Holzschale bietet vielfältige Einsatzmöglichkeiten - vom Servieren von Salaten und Snacks bis hin zum Aufbewahren von Obst und Gemüse. Sie fügt sich ideal in jede ungezwungene oder rustikale Speiseumgebungen ein und verleiht jedem Tisch einen Hauch von Wärme und natürlicher Schönheit. Die quadratische Holzschale ist eine praktische und stilvolle Wahl zum Servieren und Aufbewahren von Speisen. Ihre natürliche Schönheit und Langlebigkeit bietet verschiedene Einsatzmöglichkeiten in der Küche und als Servierobjekt bei unterschiedlichen Anlässen.", + }, + ], + "key": "rustic-bowl", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3280, + "width": 5105, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RB-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Rustic Bowl", + }, + { + "locale": "en-GB", + "value": "Rustic Bowl", }, + { + "locale": "de-DE", + "value": "Rustikale Schale", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "rustic-bowl", + }, + { + "locale": "en-GB", + "value": "rustic-bowl", + }, + { + "locale": "de-DE", + "value": "rustikale-schale", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Rustic Bowl", - }, - { - "locale": "en-GB", - "value": "Rustic Bowl", - }, - { - "locale": "de-DE", - "value": "Rustikale Schale", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "rustic-bowl", - }, - { - "locale": "en-GB", - "value": "rustic-bowl", - }, - { - "locale": "de-DE", - "value": "rustikale-schale", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser.spec.ts index c450a6c38..76483ce7b 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-country-dresser.spec.ts @@ -6,359 +6,359 @@ describe(`with rusticCountryDresser preset`, () => { const rusticCountryDresserPreset = rusticCountryDresser().build(); expect(rusticCountryDresserPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Die rustikale Landhauskommode mit viel Stauraum ist ein charmantes und praktisches Möbelstück, das jedem Schlafzimmer oder Wohnzimmer Wärme und Charakter verleiht. Die stabile Kommode mit Holzrahmen ist im Vintage-Look gehalten und wirkt sowohl rustikal als auch einladend. Die Kommode ist mit einer Reihe von Schubladen in verschiedenen Größen ausgestattet, die ausreichend Stauraum für Kleidung, Bettwäsche und andere Gegenstände bieten. Die Schubladen sind mit Schwalbenschwanzverbindungen und Gleitbeschlägen konstruiert, um sicherzustellen, dass sie langlebig und einfach zu bedienen sind. Die Schubladenfronten sind mit rustikalen Metallgriffen geschmückt, die den Charme und Charakter des Möbelstücks noch verstärken. Die Platte der Kommode bietet zusätzlichen Stauraum für dekorative Gegenstände wie Vasen, Kerzen oder Bilderrahmen. Eine rustikale Landhauskommode schafft auf praktische und stilvolle Weise Stauraum für und verleiht jedem Schlaf- oder Wohnraum gleichzeitig Wärme und Charme. Die robuste Konstruktion und das schlichte Design machen sie zu einer funktionalen und schönen Ergänzung für jedes Zuhause mit rustikalem oder ländlichem Einrichtungsstil.", - "en": undefined, - "en-GB": "A rustic country dresser with ample storage is a charming and practical piece of furniture that can add warmth and character to any bedroom or living space. The dresser features a sturdy wooden frame and a vintage look that is both rustic and inviting. The dresser is equipped with a range of drawers in various sizes, providing ample storage space for clothing, linens, and other items. The drawers are constructed with dovetail joints and gliding hardware, ensuring that they are durable and easy to use. The drawer fronts are adorned with rustic metal pulls, adding to the charm and character of the piece. The top of the dresser provides additional storage space, allowing you to display decorative items, such as vases, candles, or picture frames. Overall, a rustic country dresser with ample storage is a practical and stylish piece of furniture that can add warmth and character to any bedroom or living space. Its sturdy construction, ample storage space, and charming design make it a functional and beautiful addition to any home with a rustic or country decor style.", - "en-US": "A rustic country dresser with ample storage is a charming and practical piece of furniture that can add warmth and character to any bedroom or living space. The dresser features a sturdy wooden frame and a vintage look that is both rustic and inviting. The dresser is equipped with a range of drawers in various sizes, providing ample storage space for clothing, linens, and other items. The drawers are constructed with dovetail joints and gliding hardware, ensuring that they are durable and easy to use. The drawer fronts are adorned with rustic metal pulls, adding to the charm and character of the piece. The top of the dresser provides additional storage space, allowing you to display decorative items, such as vases, candles, or picture frames. Overall, a rustic country dresser with ample storage is a practical and stylish piece of furniture that can add warmth and character to any bedroom or living space. Its sturdy construction, ample storage space, and charming design make it a functional and beautiful addition to any home with a rustic or country decor style.", - "fr": undefined, - }, - "key": "rustic-country-dresser", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- 3 small drawers and 4 large drawers -- Nickel drawer handles -- Assembled on site", - "en-GB": "- 3 small drawers and 4 large drawers -- Nickel drawer handles -- Assembled on site", - "en-US": "- 3 small drawers and 4 large drawers -- Nickel drawer handles -- Assembled on site", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Hell grau:#D3D3D3", - "en-GB": "Light Gray:#D3D3D3", - "en-US": "Light Gray:#D3D3D3", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.2.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Die rustikale Landhauskommode mit viel Stauraum ist ein charmantes und praktisches Möbelstück, das jedem Schlafzimmer oder Wohnzimmer Wärme und Charakter verleiht. Die stabile Kommode mit Holzrahmen ist im Vintage-Look gehalten und wirkt sowohl rustikal als auch einladend. Die Kommode ist mit einer Reihe von Schubladen in verschiedenen Größen ausgestattet, die ausreichend Stauraum für Kleidung, Bettwäsche und andere Gegenstände bieten. Die Schubladen sind mit Schwalbenschwanzverbindungen und Gleitbeschlägen konstruiert, um sicherzustellen, dass sie langlebig und einfach zu bedienen sind. Die Schubladenfronten sind mit rustikalen Metallgriffen geschmückt, die den Charme und Charakter des Möbelstücks noch verstärken. Die Platte der Kommode bietet zusätzlichen Stauraum für dekorative Gegenstände wie Vasen, Kerzen oder Bilderrahmen. Eine rustikale Landhauskommode schafft auf praktische und stilvolle Weise Stauraum für und verleiht jedem Schlaf- oder Wohnraum gleichzeitig Wärme und Charme. Die robuste Konstruktion und das schlichte Design machen sie zu einer funktionalen und schönen Ergänzung für jedes Zuhause mit rustikalem oder ländlichem Einrichtungsstil.", + "en": undefined, + "en-GB": "A rustic country dresser with ample storage is a charming and practical piece of furniture that can add warmth and character to any bedroom or living space. The dresser features a sturdy wooden frame and a vintage look that is both rustic and inviting. The dresser is equipped with a range of drawers in various sizes, providing ample storage space for clothing, linens, and other items. The drawers are constructed with dovetail joints and gliding hardware, ensuring that they are durable and easy to use. The drawer fronts are adorned with rustic metal pulls, adding to the charm and character of the piece. The top of the dresser provides additional storage space, allowing you to display decorative items, such as vases, candles, or picture frames. Overall, a rustic country dresser with ample storage is a practical and stylish piece of furniture that can add warmth and character to any bedroom or living space. Its sturdy construction, ample storage space, and charming design make it a functional and beautiful addition to any home with a rustic or country decor style.", + "en-US": "A rustic country dresser with ample storage is a charming and practical piece of furniture that can add warmth and character to any bedroom or living space. The dresser features a sturdy wooden frame and a vintage look that is both rustic and inviting. The dresser is equipped with a range of drawers in various sizes, providing ample storage space for clothing, linens, and other items. The drawers are constructed with dovetail joints and gliding hardware, ensuring that they are durable and easy to use. The drawer fronts are adorned with rustic metal pulls, adding to the charm and character of the piece. The top of the dresser provides additional storage space, allowing you to display decorative items, such as vases, candles, or picture frames. Overall, a rustic country dresser with ample storage is a practical and stylish piece of furniture that can add warmth and character to any bedroom or living space. Its sturdy construction, ample storage space, and charming design make it a functional and beautiful addition to any home with a rustic or country decor style.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.3.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "key": "rustic-country-dresser", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- 3 small drawers and 4 large drawers + - Nickel drawer handles + - Assembled on site", + "en-GB": "- 3 small drawers and 4 large drawers + - Nickel drawer handles + - Assembled on site", + "en-US": "- 3 small drawers and 4 large drawers + - Nickel drawer handles + - Assembled on site", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Hell grau:#D3D3D3", + "en-GB": "Light Gray:#D3D3D3", + "en-US": "Light Gray:#D3D3D3", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.2.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.3.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.4.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + ], + "sku": "RCD-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Rustikale Landhauskommode", + "en": undefined, + "en-GB": "Rustic Country Dresser", + "en-US": "Rustic Country Dresser", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.4.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rustikale-landhauskommode", + "en": undefined, + "en-GB": "rustic-country-dresser", + "en-US": "rustic-country-dresser", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RCD-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Rustikale Landhauskommode", - "en": undefined, - "en-GB": "Rustic Country Dresser", - "en-US": "Rustic Country Dresser", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rustikale-landhauskommode", - "en": undefined, - "en-GB": "rustic-country-dresser", - "en-US": "rustic-country-dresser", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a rusticCountryDresser preset when built for graphql`, () => { const rusticCountryDresserPresetGraphql = rusticCountryDresser().buildGraphql(); expect(rusticCountryDresserPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A rustic country dresser with ample storage is a charming and practical piece of furniture that can add warmth and character to any bedroom or living space. The dresser features a sturdy wooden frame and a vintage look that is both rustic and inviting. The dresser is equipped with a range of drawers in various sizes, providing ample storage space for clothing, linens, and other items. The drawers are constructed with dovetail joints and gliding hardware, ensuring that they are durable and easy to use. The drawer fronts are adorned with rustic metal pulls, adding to the charm and character of the piece. The top of the dresser provides additional storage space, allowing you to display decorative items, such as vases, candles, or picture frames. Overall, a rustic country dresser with ample storage is a practical and stylish piece of furniture that can add warmth and character to any bedroom or living space. Its sturdy construction, ample storage space, and charming design make it a functional and beautiful addition to any home with a rustic or country decor style.", - }, - { - "locale": "en-US", - "value": "A rustic country dresser with ample storage is a charming and practical piece of furniture that can add warmth and character to any bedroom or living space. The dresser features a sturdy wooden frame and a vintage look that is both rustic and inviting. The dresser is equipped with a range of drawers in various sizes, providing ample storage space for clothing, linens, and other items. The drawers are constructed with dovetail joints and gliding hardware, ensuring that they are durable and easy to use. The drawer fronts are adorned with rustic metal pulls, adding to the charm and character of the piece. The top of the dresser provides additional storage space, allowing you to display decorative items, such as vases, candles, or picture frames. Overall, a rustic country dresser with ample storage is a practical and stylish piece of furniture that can add warmth and character to any bedroom or living space. Its sturdy construction, ample storage space, and charming design make it a functional and beautiful addition to any home with a rustic or country decor style.", - }, - { - "locale": "de-DE", - "value": "Die rustikale Landhauskommode mit viel Stauraum ist ein charmantes und praktisches Möbelstück, das jedem Schlafzimmer oder Wohnzimmer Wärme und Charakter verleiht. Die stabile Kommode mit Holzrahmen ist im Vintage-Look gehalten und wirkt sowohl rustikal als auch einladend. Die Kommode ist mit einer Reihe von Schubladen in verschiedenen Größen ausgestattet, die ausreichend Stauraum für Kleidung, Bettwäsche und andere Gegenstände bieten. Die Schubladen sind mit Schwalbenschwanzverbindungen und Gleitbeschlägen konstruiert, um sicherzustellen, dass sie langlebig und einfach zu bedienen sind. Die Schubladenfronten sind mit rustikalen Metallgriffen geschmückt, die den Charme und Charakter des Möbelstücks noch verstärken. Die Platte der Kommode bietet zusätzlichen Stauraum für dekorative Gegenstände wie Vasen, Kerzen oder Bilderrahmen. Eine rustikale Landhauskommode schafft auf praktische und stilvolle Weise Stauraum für und verleiht jedem Schlaf- oder Wohnraum gleichzeitig Wärme und Charme. Die robuste Konstruktion und das schlichte Design machen sie zu einer funktionalen und schönen Ergänzung für jedes Zuhause mit rustikalem oder ländlichem Einrichtungsstil.", - }, - ], - "key": "rustic-country-dresser", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site","en-GB":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site","de-DE":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site"}", - }, - { - "name": "finish", - "value": "{"en-US":"Light Gray:#D3D3D3","en-GB":"Light Gray:#D3D3D3","de-DE":"Hell grau:#D3D3D3"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.2.jpeg", - }, { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.3.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.4.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A rustic country dresser with ample storage is a charming and practical piece of furniture that can add warmth and character to any bedroom or living space. The dresser features a sturdy wooden frame and a vintage look that is both rustic and inviting. The dresser is equipped with a range of drawers in various sizes, providing ample storage space for clothing, linens, and other items. The drawers are constructed with dovetail joints and gliding hardware, ensuring that they are durable and easy to use. The drawer fronts are adorned with rustic metal pulls, adding to the charm and character of the piece. The top of the dresser provides additional storage space, allowing you to display decorative items, such as vases, candles, or picture frames. Overall, a rustic country dresser with ample storage is a practical and stylish piece of furniture that can add warmth and character to any bedroom or living space. Its sturdy construction, ample storage space, and charming design make it a functional and beautiful addition to any home with a rustic or country decor style.", }, + { + "locale": "en-US", + "value": "A rustic country dresser with ample storage is a charming and practical piece of furniture that can add warmth and character to any bedroom or living space. The dresser features a sturdy wooden frame and a vintage look that is both rustic and inviting. The dresser is equipped with a range of drawers in various sizes, providing ample storage space for clothing, linens, and other items. The drawers are constructed with dovetail joints and gliding hardware, ensuring that they are durable and easy to use. The drawer fronts are adorned with rustic metal pulls, adding to the charm and character of the piece. The top of the dresser provides additional storage space, allowing you to display decorative items, such as vases, candles, or picture frames. Overall, a rustic country dresser with ample storage is a practical and stylish piece of furniture that can add warmth and character to any bedroom or living space. Its sturdy construction, ample storage space, and charming design make it a functional and beautiful addition to any home with a rustic or country decor style.", + }, + { + "locale": "de-DE", + "value": "Die rustikale Landhauskommode mit viel Stauraum ist ein charmantes und praktisches Möbelstück, das jedem Schlafzimmer oder Wohnzimmer Wärme und Charakter verleiht. Die stabile Kommode mit Holzrahmen ist im Vintage-Look gehalten und wirkt sowohl rustikal als auch einladend. Die Kommode ist mit einer Reihe von Schubladen in verschiedenen Größen ausgestattet, die ausreichend Stauraum für Kleidung, Bettwäsche und andere Gegenstände bieten. Die Schubladen sind mit Schwalbenschwanzverbindungen und Gleitbeschlägen konstruiert, um sicherzustellen, dass sie langlebig und einfach zu bedienen sind. Die Schubladenfronten sind mit rustikalen Metallgriffen geschmückt, die den Charme und Charakter des Möbelstücks noch verstärken. Die Platte der Kommode bietet zusätzlichen Stauraum für dekorative Gegenstände wie Vasen, Kerzen oder Bilderrahmen. Eine rustikale Landhauskommode schafft auf praktische und stilvolle Weise Stauraum für und verleiht jedem Schlaf- oder Wohnraum gleichzeitig Wärme und Charme. Die robuste Konstruktion und das schlichte Design machen sie zu einer funktionalen und schönen Ergänzung für jedes Zuhause mit rustikalem oder ländlichem Einrichtungsstil.", + }, + ], + "key": "rustic-country-dresser", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site","en-GB":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site","de-DE":"- 3 small drawers and 4 large drawers\\n- Nickel drawer handles\\n- Assembled on site"}", + }, + { + "name": "finish", + "value": "{"en-US":"Light Gray:#D3D3D3","en-GB":"Light Gray:#D3D3D3","de-DE":"Hell grau:#D3D3D3"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.2.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.3.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Dresser-1.4.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RCD-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Rustic Country Dresser", + }, + { + "locale": "en-GB", + "value": "Rustic Country Dresser", }, + { + "locale": "de-DE", + "value": "Rustikale Landhauskommode", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "rustic-country-dresser", + }, + { + "locale": "en-GB", + "value": "rustic-country-dresser", + }, + { + "locale": "de-DE", + "value": "rustikale-landhauskommode", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RCD-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Rustic Country Dresser", - }, - { - "locale": "en-GB", - "value": "Rustic Country Dresser", - }, - { - "locale": "de-DE", - "value": "Rustikale Landhauskommode", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "rustic-country-dresser", - }, - { - "locale": "en-GB", - "value": "rustic-country-dresser", - }, - { - "locale": "de-DE", - "value": "rustikale-landhauskommode", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed.spec.ts index 2ef5e72c0..7b12ed273 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-country-queen-bed.spec.ts @@ -6,331 +6,331 @@ describe(`with rusticCountryQueenBed preset`, () => { const rusticCountryQueenBedPreset = rusticCountryQueenBed().build(); expect(rusticCountryQueenBedPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das rustikale Queensize-Bett mit dem Kopfteil aus Wildleder ist ein schönes und komfortables Möbelstück, das jedem Schlafzimmer Wärme und Struktur verleiht. Das Bett hat einen stabilen Holzrahmen im Vintage-Look, der zum Relaxen einlädt. Das Kopfteil des Bettes ist mit weichem Wildleder bezogen und bietet eine bequeme und stilvolle Rückenlehne zum Lesen oder Entspannen im Bett. Das Wildledermaterial verleiht dem Bett luxuriöses Gefühl zum Anfassen und schafft eine gemütliche und einladende Atmosphäre im Schlafzimmer. Der stabile Holzlattenrost des Betts bietet eine solide Grundlage für die Matratze und somit für einen komfortablen und erholsamen Schlaf. Das rustikale Queensize-Bett mit Kopfteil aus Wildleder ist sowohl funktional als auch stilvoll designt. Zu dem Bett gibt es eine passende Kommode, mit der ein zusammenhängendes und stilvolles Schlafzimmerdekor geschaffen werden kann. Ein rustikales Queensize-Bett mit einem Kopfteil aus Wildleder ist ein schönes und komfortables Möbelstück, das Wärme und Textur in jedes Schlafzimmer bringt. Seine robuste Konstruktion, sein komfortables Design und der charmant-rustikale Charakter machen es zu einer funktionalen und schönen Ergänzung für jedes Zuhause im angesagten Landhausstil.", - "en": undefined, - "en-GB": "A rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. The bed features a sturdy wooden frame and a vintage look that is both rustic and inviting. The headboard of the bed is upholstered in soft suede fabric, providing a comfortable and stylish backrest for reading or relaxing in bed. The suede material also adds a tactile and luxurious feel to the bed, creating a cozy and inviting atmosphere in the bedroom. The bed comes with a sturdy wooden slat system that provides excellent support for the mattress and ensures a comfortable and restful night's sleep. The rustic queen bed with a suede headboard is designed to be both functional and stylish. The bed comes with a matching dresser to create a cohesive and stylish bedroom decor. Overall, a rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. Its sturdy construction, comfortable design, and charming rustic style make it a functional and beautiful addition to any home with a rustic or country decor style.", - "en-US": "A rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. The bed features a sturdy wooden frame and a vintage look that is both rustic and inviting. The headboard of the bed is upholstered in soft suede fabric, providing a comfortable and stylish backrest for reading or relaxing in bed. The suede material also adds a tactile and luxurious feel to the bed, creating a cozy and inviting atmosphere in the bedroom. The bed comes with a sturdy wooden slat system that provides excellent support for the mattress and ensures a comfortable and restful night's sleep. The rustic queen bed with a suede headboard is designed to be both functional and stylish. The bed comes with a matching dresser to create a cohesive and stylish bedroom decor. Overall, a rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. Its sturdy construction, comfortable design, and charming rustic style make it a functional and beautiful addition to any home with a rustic or country decor style.", - "fr": undefined, - }, - "key": "rustic-country-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das rustikale Queensize-Bett mit dem Kopfteil aus Wildleder ist ein schönes und komfortables Möbelstück, das jedem Schlafzimmer Wärme und Struktur verleiht. Das Bett hat einen stabilen Holzrahmen im Vintage-Look, der zum Relaxen einlädt. Das Kopfteil des Bettes ist mit weichem Wildleder bezogen und bietet eine bequeme und stilvolle Rückenlehne zum Lesen oder Entspannen im Bett. Das Wildledermaterial verleiht dem Bett luxuriöses Gefühl zum Anfassen und schafft eine gemütliche und einladende Atmosphäre im Schlafzimmer. Der stabile Holzlattenrost des Betts bietet eine solide Grundlage für die Matratze und somit für einen komfortablen und erholsamen Schlaf. Das rustikale Queensize-Bett mit Kopfteil aus Wildleder ist sowohl funktional als auch stilvoll designt. Zu dem Bett gibt es eine passende Kommode, mit der ein zusammenhängendes und stilvolles Schlafzimmerdekor geschaffen werden kann. Ein rustikales Queensize-Bett mit einem Kopfteil aus Wildleder ist ein schönes und komfortables Möbelstück, das Wärme und Textur in jedes Schlafzimmer bringt. Seine robuste Konstruktion, sein komfortables Design und der charmant-rustikale Charakter machen es zu einer funktionalen und schönen Ergänzung für jedes Zuhause im angesagten Landhausstil.", + "en": undefined, + "en-GB": "A rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. The bed features a sturdy wooden frame and a vintage look that is both rustic and inviting. The headboard of the bed is upholstered in soft suede fabric, providing a comfortable and stylish backrest for reading or relaxing in bed. The suede material also adds a tactile and luxurious feel to the bed, creating a cozy and inviting atmosphere in the bedroom. The bed comes with a sturdy wooden slat system that provides excellent support for the mattress and ensures a comfortable and restful night's sleep. The rustic queen bed with a suede headboard is designed to be both functional and stylish. The bed comes with a matching dresser to create a cohesive and stylish bedroom decor. Overall, a rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. Its sturdy construction, comfortable design, and charming rustic style make it a functional and beautiful addition to any home with a rustic or country decor style.", + "en-US": "A rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. The bed features a sturdy wooden frame and a vintage look that is both rustic and inviting. The headboard of the bed is upholstered in soft suede fabric, providing a comfortable and stylish backrest for reading or relaxing in bed. The suede material also adds a tactile and luxurious feel to the bed, creating a cozy and inviting atmosphere in the bedroom. The bed comes with a sturdy wooden slat system that provides excellent support for the mattress and ensures a comfortable and restful night's sleep. The rustic queen bed with a suede headboard is designed to be both functional and stylish. The bed comes with a matching dresser to create a cohesive and stylish bedroom decor. Overall, a rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. Its sturdy construction, comfortable design, and charming rustic style make it a functional and beautiful addition to any home with a rustic or country decor style.", + "fr": undefined, }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Leather upholstery -- Standard Queen size -- Assembly on site", - "en-GB": "- Leather upholstery -- Standard Queen size -- Assembly on site", - "en-US": "- Leather upholstery -- Standard Queen size -- Assembly on site", + "key": "rustic-country-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Leather upholstery + - Standard Queen size + - Assembly on site", + "en-GB": "- Leather upholstery + - Standard Queen size + - Assembly on site", + "en-US": "- Leather upholstery + - Standard Queen size + - Assembly on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 329900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 329900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 329900, + "currencyCode": "USD", + }, + }, + ], + "sku": "RCQB-01", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5000, - "w": 5000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Rustikales Queensize-Bett im Landhausstil", + "en": undefined, + "en-GB": "Rustic Country Queen Bed", + "en-US": "Rustic Country Queen Bed", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 329900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 329900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rustikales-country-queen-bett", + "en": undefined, + "en-GB": "rustic-country-queen-bed", + "en-US": "rustic-country-queen-bed", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 329900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RCQB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Rustikales Queensize-Bett im Landhausstil", - "en": undefined, - "en-GB": "Rustic Country Queen Bed", - "en-US": "Rustic Country Queen Bed", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rustikales-country-queen-bett", - "en": undefined, - "en-GB": "rustic-country-queen-bed", - "en-US": "rustic-country-queen-bed", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a rusticCountryQueenBed preset when built for graphql`, () => { const rusticCountryQueenBedPresetGraphql = rusticCountryQueenBed().buildGraphql(); expect(rusticCountryQueenBedPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. The bed features a sturdy wooden frame and a vintage look that is both rustic and inviting. The headboard of the bed is upholstered in soft suede fabric, providing a comfortable and stylish backrest for reading or relaxing in bed. The suede material also adds a tactile and luxurious feel to the bed, creating a cozy and inviting atmosphere in the bedroom. The bed comes with a sturdy wooden slat system that provides excellent support for the mattress and ensures a comfortable and restful night's sleep. The rustic queen bed with a suede headboard is designed to be both functional and stylish. The bed comes with a matching dresser to create a cohesive and stylish bedroom decor. Overall, a rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. Its sturdy construction, comfortable design, and charming rustic style make it a functional and beautiful addition to any home with a rustic or country decor style.", - }, - { - "locale": "en-US", - "value": "A rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. The bed features a sturdy wooden frame and a vintage look that is both rustic and inviting. The headboard of the bed is upholstered in soft suede fabric, providing a comfortable and stylish backrest for reading or relaxing in bed. The suede material also adds a tactile and luxurious feel to the bed, creating a cozy and inviting atmosphere in the bedroom. The bed comes with a sturdy wooden slat system that provides excellent support for the mattress and ensures a comfortable and restful night's sleep. The rustic queen bed with a suede headboard is designed to be both functional and stylish. The bed comes with a matching dresser to create a cohesive and stylish bedroom decor. Overall, a rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. Its sturdy construction, comfortable design, and charming rustic style make it a functional and beautiful addition to any home with a rustic or country decor style.", - }, - { - "locale": "de-DE", - "value": "Das rustikale Queensize-Bett mit dem Kopfteil aus Wildleder ist ein schönes und komfortables Möbelstück, das jedem Schlafzimmer Wärme und Struktur verleiht. Das Bett hat einen stabilen Holzrahmen im Vintage-Look, der zum Relaxen einlädt. Das Kopfteil des Bettes ist mit weichem Wildleder bezogen und bietet eine bequeme und stilvolle Rückenlehne zum Lesen oder Entspannen im Bett. Das Wildledermaterial verleiht dem Bett luxuriöses Gefühl zum Anfassen und schafft eine gemütliche und einladende Atmosphäre im Schlafzimmer. Der stabile Holzlattenrost des Betts bietet eine solide Grundlage für die Matratze und somit für einen komfortablen und erholsamen Schlaf. Das rustikale Queensize-Bett mit Kopfteil aus Wildleder ist sowohl funktional als auch stilvoll designt. Zu dem Bett gibt es eine passende Kommode, mit der ein zusammenhängendes und stilvolles Schlafzimmerdekor geschaffen werden kann. Ein rustikales Queensize-Bett mit einem Kopfteil aus Wildleder ist ein schönes und komfortables Möbelstück, das Wärme und Textur in jedes Schlafzimmer bringt. Seine robuste Konstruktion, sein komfortables Design und der charmant-rustikale Charakter machen es zu einer funktionalen und schönen Ergänzung für jedes Zuhause im angesagten Landhausstil.", - }, - ], - "key": "rustic-country-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site","en-GB":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site","de-DE":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site"}", - }, - ], - "images": [ { - "dimensions": { - "height": 5000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 329900, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. The bed features a sturdy wooden frame and a vintage look that is both rustic and inviting. The headboard of the bed is upholstered in soft suede fabric, providing a comfortable and stylish backrest for reading or relaxing in bed. The suede material also adds a tactile and luxurious feel to the bed, creating a cozy and inviting atmosphere in the bedroom. The bed comes with a sturdy wooden slat system that provides excellent support for the mattress and ensures a comfortable and restful night's sleep. The rustic queen bed with a suede headboard is designed to be both functional and stylish. The bed comes with a matching dresser to create a cohesive and stylish bedroom decor. Overall, a rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. Its sturdy construction, comfortable design, and charming rustic style make it a functional and beautiful addition to any home with a rustic or country decor style.", + }, + { + "locale": "en-US", + "value": "A rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. The bed features a sturdy wooden frame and a vintage look that is both rustic and inviting. The headboard of the bed is upholstered in soft suede fabric, providing a comfortable and stylish backrest for reading or relaxing in bed. The suede material also adds a tactile and luxurious feel to the bed, creating a cozy and inviting atmosphere in the bedroom. The bed comes with a sturdy wooden slat system that provides excellent support for the mattress and ensures a comfortable and restful night's sleep. The rustic queen bed with a suede headboard is designed to be both functional and stylish. The bed comes with a matching dresser to create a cohesive and stylish bedroom decor. Overall, a rustic queen bed with a suede headboard is a beautiful and comfortable piece of furniture that can add warmth and texture to any bedroom. Its sturdy construction, comfortable design, and charming rustic style make it a functional and beautiful addition to any home with a rustic or country decor style.", }, + { + "locale": "de-DE", + "value": "Das rustikale Queensize-Bett mit dem Kopfteil aus Wildleder ist ein schönes und komfortables Möbelstück, das jedem Schlafzimmer Wärme und Struktur verleiht. Das Bett hat einen stabilen Holzrahmen im Vintage-Look, der zum Relaxen einlädt. Das Kopfteil des Bettes ist mit weichem Wildleder bezogen und bietet eine bequeme und stilvolle Rückenlehne zum Lesen oder Entspannen im Bett. Das Wildledermaterial verleiht dem Bett luxuriöses Gefühl zum Anfassen und schafft eine gemütliche und einladende Atmosphäre im Schlafzimmer. Der stabile Holzlattenrost des Betts bietet eine solide Grundlage für die Matratze und somit für einen komfortablen und erholsamen Schlaf. Das rustikale Queensize-Bett mit Kopfteil aus Wildleder ist sowohl funktional als auch stilvoll designt. Zu dem Bett gibt es eine passende Kommode, mit der ein zusammenhängendes und stilvolles Schlafzimmerdekor geschaffen werden kann. Ein rustikales Queensize-Bett mit einem Kopfteil aus Wildleder ist ein schönes und komfortables Möbelstück, das Wärme und Textur in jedes Schlafzimmer bringt. Seine robuste Konstruktion, sein komfortables Design und der charmant-rustikale Charakter machen es zu einer funktionalen und schönen Ergänzung für jedes Zuhause im angesagten Landhausstil.", + }, + ], + "key": "rustic-country-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Tan:#D2B48C","en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site","en-GB":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site","de-DE":"- Leather upholstery\\n- Standard Queen size\\n- Assembly on site"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Country_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 329900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 329900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "329900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 329900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RCQB-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 329900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Rustic Country Queen Bed", + }, + { + "locale": "en-GB", + "value": "Rustic Country Queen Bed", + }, + { + "locale": "de-DE", + "value": "Rustikales Queensize-Bett im Landhausstil", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 329900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "rustic-country-queen-bed", + }, + { + "locale": "en-GB", + "value": "rustic-country-queen-bed", + }, + { + "locale": "de-DE", + "value": "rustikales-country-queen-bett", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RCQB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Rustic Country Queen Bed", - }, - { - "locale": "en-GB", - "value": "Rustic Country Queen Bed", - }, - { - "locale": "de-DE", - "value": "Rustikales Queensize-Bett im Landhausstil", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "rustic-country-queen-bed", - }, - { - "locale": "en-GB", - "value": "rustic-country-queen-bed", - }, - { - "locale": "de-DE", - "value": "rustikales-country-queen-bett", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole.spec.ts index dc6f5250b..d76bba14d 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rustic-oven-casserole.spec.ts @@ -6,279 +6,279 @@ describe(`with rusticOvenCasserole preset`, () => { const rusticOvenCasserolePreset = rusticOvenCasserole().build(); expect(rusticOvenCasserolePreset).toMatchInlineSnapshot(` -{ - "categories": [], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Die rustikale Keramik-Kasserolle eignet sich ideal zum Backen oder Braten von Aufläufen, Eintöpfen oder anderen Ofengerichten. Im traditionellen Stil gehalten, hat die Ofenform ein rustikales Aussehen, ist in erdigen Farben und mit strukturierter Oberfläche und unebenen Rändern gestaltet. Die Dicke des Materials macht sie langlebig und temperaturfest, sodass Risse und Absplitterungen ausgeschlossen werden können. Das Material ist zudem so beständig, dass es nicht auf saure oder scharfe Speisen reagiert. Die Aromen der Gerichte bleiben somit jederzeit unverändert. Das Design der Keramikform sorgt für rustikalen Charme in der Küche und im Essbereich. Besonders in der kalten Jahreszeit eignet sich die Ofenform außerdem ideal zum Servieren warmer und herzhafter Speisen. Für die Reinigung der rustikalen Servierform empfiehlt es sich, sie nach vollständigem Abkühlen mit warmem Seifenwasser zu waschen. Sie sollte vor der Lagerung gründlich getrocknet werden, um zu verhindern, dass Feuchtigkeit im Inneren eingeschlossen wird. Eine rustikale Auflaufform aus Keramik ist ein praktisches und ästhetisch ansprechendes Kochgeschirr, das jeder Küche einen Hauch von Wärme und Charakter verleiht. Die robuste Machart und das klassische Design machen sie zum Must-have der Küchenausstattung für Hobbyköche und Köche gleichermaßen.", - "en": undefined, - "en-GB": "A rustic ceramic oven casserole is a cooking dish made of ceramic that is designed to be used in the oven for baking or roasting casseroles, stews, or other dishes. It has a traditional and rustic look, often featuring earthy colors, textured surfaces, and uneven edges. The ceramic material is thick and durable, allowing it to withstand high temperatures in the oven without cracking or chipping. It is also non-reactive, meaning it won't interact with acidic or spicy foods, ensuring that the flavors of the dish remain intact. The rustic design of the ceramic oven casserole adds a touch of warmth and charm to the kitchen and dining area. It is perfect for serving hot and hearty meals, particularly during colder months. To clean a rustic ceramic oven casserole, it is recommended to let it cool down after use before washing it with warm, soapy water. It should be dried thoroughly before storing to prevent any moisture from being trapped inside. Overall, a rustic ceramic oven casserole is a practical and aesthetically pleasing cooking dish that adds a touch of warmth and character to any kitchen. Its sturdy construction and classic design make it a staple for home cooks and chefs alike.", - "en-US": "A rustic ceramic oven casserole is a cooking dish made of ceramic that is designed to be used in the oven for baking or roasting casseroles, stews, or other dishes. It has a traditional and rustic look, often featuring earthy colors, textured surfaces, and uneven edges. The ceramic material is thick and durable, allowing it to withstand high temperatures in the oven without cracking or chipping. It is also non-reactive, meaning it won't interact with acidic or spicy foods, ensuring that the flavors of the dish remain intact. The rustic design of the ceramic oven casserole adds a touch of warmth and charm to the kitchen and dining area. It is perfect for serving hot and hearty meals, particularly during colder months. To clean a rustic ceramic oven casserole, it is recommended to let it cool down after use before washing it with warm, soapy water. It should be dried thoroughly before storing to prevent any moisture from being trapped inside. Overall, a rustic ceramic oven casserole is a practical and aesthetically pleasing cooking dish that adds a touch of warmth and character to any kitchen. Its sturdy construction and classic design make it a staple for home cooks and chefs alike.", - "fr": undefined, - }, - "key": "rustic-oven-casserole", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Ohne Deckel", - "en-GB": "- Does not include lid", - "en-US": "- Does not include lid", + "categories": [], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Die rustikale Keramik-Kasserolle eignet sich ideal zum Backen oder Braten von Aufläufen, Eintöpfen oder anderen Ofengerichten. Im traditionellen Stil gehalten, hat die Ofenform ein rustikales Aussehen, ist in erdigen Farben und mit strukturierter Oberfläche und unebenen Rändern gestaltet. Die Dicke des Materials macht sie langlebig und temperaturfest, sodass Risse und Absplitterungen ausgeschlossen werden können. Das Material ist zudem so beständig, dass es nicht auf saure oder scharfe Speisen reagiert. Die Aromen der Gerichte bleiben somit jederzeit unverändert. Das Design der Keramikform sorgt für rustikalen Charme in der Küche und im Essbereich. Besonders in der kalten Jahreszeit eignet sich die Ofenform außerdem ideal zum Servieren warmer und herzhafter Speisen. Für die Reinigung der rustikalen Servierform empfiehlt es sich, sie nach vollständigem Abkühlen mit warmem Seifenwasser zu waschen. Sie sollte vor der Lagerung gründlich getrocknet werden, um zu verhindern, dass Feuchtigkeit im Inneren eingeschlossen wird. Eine rustikale Auflaufform aus Keramik ist ein praktisches und ästhetisch ansprechendes Kochgeschirr, das jeder Küche einen Hauch von Wärme und Charakter verleiht. Die robuste Machart und das klassische Design machen sie zum Must-have der Küchenausstattung für Hobbyköche und Köche gleichermaßen.", + "en": undefined, + "en-GB": "A rustic ceramic oven casserole is a cooking dish made of ceramic that is designed to be used in the oven for baking or roasting casseroles, stews, or other dishes. It has a traditional and rustic look, often featuring earthy colors, textured surfaces, and uneven edges. The ceramic material is thick and durable, allowing it to withstand high temperatures in the oven without cracking or chipping. It is also non-reactive, meaning it won't interact with acidic or spicy foods, ensuring that the flavors of the dish remain intact. The rustic design of the ceramic oven casserole adds a touch of warmth and charm to the kitchen and dining area. It is perfect for serving hot and hearty meals, particularly during colder months. To clean a rustic ceramic oven casserole, it is recommended to let it cool down after use before washing it with warm, soapy water. It should be dried thoroughly before storing to prevent any moisture from being trapped inside. Overall, a rustic ceramic oven casserole is a practical and aesthetically pleasing cooking dish that adds a touch of warmth and character to any kitchen. Its sturdy construction and classic design make it a staple for home cooks and chefs alike.", + "en-US": "A rustic ceramic oven casserole is a cooking dish made of ceramic that is designed to be used in the oven for baking or roasting casseroles, stews, or other dishes. It has a traditional and rustic look, often featuring earthy colors, textured surfaces, and uneven edges. The ceramic material is thick and durable, allowing it to withstand high temperatures in the oven without cracking or chipping. It is also non-reactive, meaning it won't interact with acidic or spicy foods, ensuring that the flavors of the dish remain intact. The rustic design of the ceramic oven casserole adds a touch of warmth and charm to the kitchen and dining area. It is perfect for serving hot and hearty meals, particularly during colder months. To clean a rustic ceramic oven casserole, it is recommended to let it cool down after use before washing it with warm, soapy water. It should be dried thoroughly before storing to prevent any moisture from being trapped inside. Overall, a rustic ceramic oven casserole is a practical and aesthetically pleasing cooking dish that adds a touch of warmth and character to any kitchen. Its sturdy construction and classic design make it a staple for home cooks and chefs alike.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Peru:#CD853F", - "en-GB": "Peru:#CD853F", - "en-US": "Peru:#CD853F", + "key": "rustic-oven-casserole", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Ohne Deckel", + "en-GB": "- Does not include lid", + "en-US": "- Does not include lid", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Peru:#CD853F", + "en-GB": "Peru:#CD853F", + "en-US": "Peru:#CD853F", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3710, + "w": 4746, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Oven_Casserole-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + ], + "sku": "RCC-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3710, - "w": 4746, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Rustikale Auflaufform", + "en": undefined, + "en-GB": "Rustic Oven Casserole", + "en-US": "Rustic Oven Casserole", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Oven_Casserole-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "rustikaler-ofentopf", + "en": undefined, + "en-GB": "rustic-oven-casserole", + "en-US": "rustic-oven-casserole", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2599, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RCC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Rustikale Auflaufform", - "en": undefined, - "en-GB": "Rustic Oven Casserole", - "en-US": "Rustic Oven Casserole", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "rustikaler-ofentopf", - "en": undefined, - "en-GB": "rustic-oven-casserole", - "en-US": "rustic-oven-casserole", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a rusticOvenCasserole preset when built for graphql`, () => { const rusticOvenCasserolePresetGraphql = rusticOvenCasserole().buildGraphql(); expect(rusticOvenCasserolePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "de-DE", - "value": "Die rustikale Keramik-Kasserolle eignet sich ideal zum Backen oder Braten von Aufläufen, Eintöpfen oder anderen Ofengerichten. Im traditionellen Stil gehalten, hat die Ofenform ein rustikales Aussehen, ist in erdigen Farben und mit strukturierter Oberfläche und unebenen Rändern gestaltet. Die Dicke des Materials macht sie langlebig und temperaturfest, sodass Risse und Absplitterungen ausgeschlossen werden können. Das Material ist zudem so beständig, dass es nicht auf saure oder scharfe Speisen reagiert. Die Aromen der Gerichte bleiben somit jederzeit unverändert. Das Design der Keramikform sorgt für rustikalen Charme in der Küche und im Essbereich. Besonders in der kalten Jahreszeit eignet sich die Ofenform außerdem ideal zum Servieren warmer und herzhafter Speisen. Für die Reinigung der rustikalen Servierform empfiehlt es sich, sie nach vollständigem Abkühlen mit warmem Seifenwasser zu waschen. Sie sollte vor der Lagerung gründlich getrocknet werden, um zu verhindern, dass Feuchtigkeit im Inneren eingeschlossen wird. Eine rustikale Auflaufform aus Keramik ist ein praktisches und ästhetisch ansprechendes Kochgeschirr, das jeder Küche einen Hauch von Wärme und Charakter verleiht. Die robuste Machart und das klassische Design machen sie zum Must-have der Küchenausstattung für Hobbyköche und Köche gleichermaßen.", - }, - { - "locale": "en-GB", - "value": "A rustic ceramic oven casserole is a cooking dish made of ceramic that is designed to be used in the oven for baking or roasting casseroles, stews, or other dishes. It has a traditional and rustic look, often featuring earthy colors, textured surfaces, and uneven edges. The ceramic material is thick and durable, allowing it to withstand high temperatures in the oven without cracking or chipping. It is also non-reactive, meaning it won't interact with acidic or spicy foods, ensuring that the flavors of the dish remain intact. The rustic design of the ceramic oven casserole adds a touch of warmth and charm to the kitchen and dining area. It is perfect for serving hot and hearty meals, particularly during colder months. To clean a rustic ceramic oven casserole, it is recommended to let it cool down after use before washing it with warm, soapy water. It should be dried thoroughly before storing to prevent any moisture from being trapped inside. Overall, a rustic ceramic oven casserole is a practical and aesthetically pleasing cooking dish that adds a touch of warmth and character to any kitchen. Its sturdy construction and classic design make it a staple for home cooks and chefs alike.", - }, - { - "locale": "en-US", - "value": "A rustic ceramic oven casserole is a cooking dish made of ceramic that is designed to be used in the oven for baking or roasting casseroles, stews, or other dishes. It has a traditional and rustic look, often featuring earthy colors, textured surfaces, and uneven edges. The ceramic material is thick and durable, allowing it to withstand high temperatures in the oven without cracking or chipping. It is also non-reactive, meaning it won't interact with acidic or spicy foods, ensuring that the flavors of the dish remain intact. The rustic design of the ceramic oven casserole adds a touch of warmth and charm to the kitchen and dining area. It is perfect for serving hot and hearty meals, particularly during colder months. To clean a rustic ceramic oven casserole, it is recommended to let it cool down after use before washing it with warm, soapy water. It should be dried thoroughly before storing to prevent any moisture from being trapped inside. Overall, a rustic ceramic oven casserole is a practical and aesthetically pleasing cooking dish that adds a touch of warmth and character to any kitchen. Its sturdy construction and classic design make it a staple for home cooks and chefs alike.", - }, - ], - "key": "rustic-oven-casserole", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Does not include lid","en-US":"- Does not include lid","de-DE":"- Ohne Deckel"}", - }, - { - "name": "color", - "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3710, - "width": 4746, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Oven_Casserole-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "EUR", + "categories": [], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "de-DE", + "value": "Die rustikale Keramik-Kasserolle eignet sich ideal zum Backen oder Braten von Aufläufen, Eintöpfen oder anderen Ofengerichten. Im traditionellen Stil gehalten, hat die Ofenform ein rustikales Aussehen, ist in erdigen Farben und mit strukturierter Oberfläche und unebenen Rändern gestaltet. Die Dicke des Materials macht sie langlebig und temperaturfest, sodass Risse und Absplitterungen ausgeschlossen werden können. Das Material ist zudem so beständig, dass es nicht auf saure oder scharfe Speisen reagiert. Die Aromen der Gerichte bleiben somit jederzeit unverändert. Das Design der Keramikform sorgt für rustikalen Charme in der Küche und im Essbereich. Besonders in der kalten Jahreszeit eignet sich die Ofenform außerdem ideal zum Servieren warmer und herzhafter Speisen. Für die Reinigung der rustikalen Servierform empfiehlt es sich, sie nach vollständigem Abkühlen mit warmem Seifenwasser zu waschen. Sie sollte vor der Lagerung gründlich getrocknet werden, um zu verhindern, dass Feuchtigkeit im Inneren eingeschlossen wird. Eine rustikale Auflaufform aus Keramik ist ein praktisches und ästhetisch ansprechendes Kochgeschirr, das jeder Küche einen Hauch von Wärme und Charakter verleiht. Die robuste Machart und das klassische Design machen sie zum Must-have der Küchenausstattung für Hobbyköche und Köche gleichermaßen.", }, + { + "locale": "en-GB", + "value": "A rustic ceramic oven casserole is a cooking dish made of ceramic that is designed to be used in the oven for baking or roasting casseroles, stews, or other dishes. It has a traditional and rustic look, often featuring earthy colors, textured surfaces, and uneven edges. The ceramic material is thick and durable, allowing it to withstand high temperatures in the oven without cracking or chipping. It is also non-reactive, meaning it won't interact with acidic or spicy foods, ensuring that the flavors of the dish remain intact. The rustic design of the ceramic oven casserole adds a touch of warmth and charm to the kitchen and dining area. It is perfect for serving hot and hearty meals, particularly during colder months. To clean a rustic ceramic oven casserole, it is recommended to let it cool down after use before washing it with warm, soapy water. It should be dried thoroughly before storing to prevent any moisture from being trapped inside. Overall, a rustic ceramic oven casserole is a practical and aesthetically pleasing cooking dish that adds a touch of warmth and character to any kitchen. Its sturdy construction and classic design make it a staple for home cooks and chefs alike.", + }, + { + "locale": "en-US", + "value": "A rustic ceramic oven casserole is a cooking dish made of ceramic that is designed to be used in the oven for baking or roasting casseroles, stews, or other dishes. It has a traditional and rustic look, often featuring earthy colors, textured surfaces, and uneven edges. The ceramic material is thick and durable, allowing it to withstand high temperatures in the oven without cracking or chipping. It is also non-reactive, meaning it won't interact with acidic or spicy foods, ensuring that the flavors of the dish remain intact. The rustic design of the ceramic oven casserole adds a touch of warmth and charm to the kitchen and dining area. It is perfect for serving hot and hearty meals, particularly during colder months. To clean a rustic ceramic oven casserole, it is recommended to let it cool down after use before washing it with warm, soapy water. It should be dried thoroughly before storing to prevent any moisture from being trapped inside. Overall, a rustic ceramic oven casserole is a practical and aesthetically pleasing cooking dish that adds a touch of warmth and character to any kitchen. Its sturdy construction and classic design make it a staple for home cooks and chefs alike.", + }, + ], + "key": "rustic-oven-casserole", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Does not include lid","en-US":"- Does not include lid","de-DE":"- Ohne Deckel"}", + }, + { + "name": "color", + "value": "{"en-GB":"Peru:#CD853F","de-DE":"Peru:#CD853F","en-US":"Peru:#CD853F"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3710, + "width": 4746, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rustic_Oven_Casserole-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RCC-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Rustic Oven Casserole", + }, + { + "locale": "en-GB", + "value": "Rustic Oven Casserole", }, + { + "locale": "de-DE", + "value": "Rustikale Auflaufform", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2599, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "rustic-oven-casserole", + }, + { + "locale": "en-GB", + "value": "rustic-oven-casserole", + }, + { + "locale": "de-DE", + "value": "rustikaler-ofentopf", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RCC-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Rustic Oven Casserole", - }, - { - "locale": "en-GB", - "value": "Rustic Oven Casserole", - }, - { - "locale": "de-DE", - "value": "Rustikale Auflaufform", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "rustic-oven-casserole", - }, - { - "locale": "en-GB", - "value": "rustic-oven-casserole", - }, - { - "locale": "de-DE", - "value": "rustikaler-ofentopf", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass.spec.ts index 471fcf24a..b9dead270 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/rye-whiskey-glass.spec.ts @@ -5,333 +5,333 @@ describe(`with ryeWhiskeyGlass preset`, () => { it(`should return a ryeWhiskeyGlass preset`, () => { const ryeWhiskeyGlassPreset = ryeWhiskeyGlass().build(); expect(ryeWhiskeyGlassPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das Rye-Whiskyglas wurde speziell für den Genuss von Whisky und anderen Spirituosen entwickelt. Es hat eine breite Form mit einer dickglasigen, schweren Basis, die für Stabilität und Gleichgewicht sorgt. Das Design des Whiskyglases ist auf ein verbessertes Trinkerlebnis abgestimmt, bei dem die Aromen der Geschmack des Whiskys im Mittelpunkt stehen. Die breite Öffnung des Glases ermöglicht es dem Genießer, die Farbe, Klarheit und Textur des Whiskys voll und ganz wahrzunehmen, während der schwere Boden für Stabilität beim Abstellen sorgt. Insgesamt ist das Rye-Whiskyglas ein klassisches und zeitloses Trinkglas, das sich ideal eignet, um den reichen Geschmack und das Aroma von feinem Whisky zu genießen. Sein schlichtes, aber elegantes Design macht es zu einer beliebten Wahl für Whiskykenner und Gelegenheitsgenießer gleichermaßen.", - "en": undefined, - "en-GB": "The Rye Whiskey Glass is designed specifically for enjoying whiskey or other spirits. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the whiskey glass is intended to enhance the drinking experience by allowing the whiskey's aroma and flavor to be fully appreciated. The wide opening of the glass allows the drinker to fully appreciate the color, clarity, and texture of the whiskey, while the heavy base helps to keep the drink from spilling or tipping over. Overall, the Rye Whiskey Glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine whiskey. Its simple yet elegant design makes it a popular choice for whiskey connoisseurs and casual drinkers alike.", - "en-US": "The Rye Whiskey Glass is designed specifically for enjoying whiskey or other spirits. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the whiskey glass is intended to enhance the drinking experience by allowing the whiskey's aroma and flavor to be fully appreciated. The wide opening of the glass allows the drinker to fully appreciate the color, clarity, and texture of the whiskey, while the heavy base helps to keep the drink from spilling or tipping over. Overall, the Rye Whiskey Glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine whiskey. Its simple yet elegant design makes it a popular choice for whiskey connoisseurs and casual drinkers alike.", - "fr": undefined, - }, - "key": "rye-whiskey-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", + "categories": [ + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das Rye-Whiskyglas wurde speziell für den Genuss von Whisky und anderen Spirituosen entwickelt. Es hat eine breite Form mit einer dickglasigen, schweren Basis, die für Stabilität und Gleichgewicht sorgt. Das Design des Whiskyglases ist auf ein verbessertes Trinkerlebnis abgestimmt, bei dem die Aromen der Geschmack des Whiskys im Mittelpunkt stehen. Die breite Öffnung des Glases ermöglicht es dem Genießer, die Farbe, Klarheit und Textur des Whiskys voll und ganz wahrzunehmen, während der schwere Boden für Stabilität beim Abstellen sorgt. Insgesamt ist das Rye-Whiskyglas ein klassisches und zeitloses Trinkglas, das sich ideal eignet, um den reichen Geschmack und das Aroma von feinem Whisky zu genießen. Sein schlichtes, aber elegantes Design macht es zu einer beliebten Wahl für Whiskykenner und Gelegenheitsgenießer gleichermaßen.", + "en": undefined, + "en-GB": "The Rye Whiskey Glass is designed specifically for enjoying whiskey or other spirits. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the whiskey glass is intended to enhance the drinking experience by allowing the whiskey's aroma and flavor to be fully appreciated. The wide opening of the glass allows the drinker to fully appreciate the color, clarity, and texture of the whiskey, while the heavy base helps to keep the drink from spilling or tipping over. Overall, the Rye Whiskey Glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine whiskey. Its simple yet elegant design makes it a popular choice for whiskey connoisseurs and casual drinkers alike.", + "en-US": "The Rye Whiskey Glass is designed specifically for enjoying whiskey or other spirits. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the whiskey glass is intended to enhance the drinking experience by allowing the whiskey's aroma and flavor to be fully appreciated. The wide opening of the glass allows the drinker to fully appreciate the color, clarity, and texture of the whiskey, while the heavy base helps to keep the drink from spilling or tipping over. Overall, the Rye Whiskey Glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine whiskey. Its simple yet elegant design makes it a popular choice for whiskey connoisseurs and casual drinkers alike.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + "key": "rye-whiskey-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2990, + "w": 2848, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.1.jpeg", + }, + { + "dimensions": { + "h": 2268, + "w": 2632, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 3499, + "currencyCode": "USD", + }, + }, + ], + "sku": "RWG-09", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Rye-Whiskyglas", + "en": undefined, + "en-GB": "Rye Whiskey Glass", + "en-US": "Rye Whiskey Glass", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2990, - "w": 2848, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.1.jpeg", - }, - { - "dimensions": { - "h": 2268, - "w": 2632, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "roggen-whisky-glas", + "en": undefined, + "en-GB": "rye-whiskey-glass", + "en-US": "rye-whiskey-glass", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "EUR", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 3499, - "currencyCode": "USD", - }, - }, - ], - "sku": "RWG-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Rye-Whiskyglas", - "en": undefined, - "en-GB": "Rye Whiskey Glass", - "en-US": "Rye Whiskey Glass", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "roggen-whisky-glas", - "en": undefined, - "en-GB": "rye-whiskey-glass", - "en-US": "rye-whiskey-glass", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a ryeWhiskeyGlass preset when built for graphql`, () => { const ryeWhiskeyGlassPresetGraphql = ryeWhiskeyGlass().buildGraphql(); expect(ryeWhiskeyGlassPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "The Rye Whiskey Glass is designed specifically for enjoying whiskey or other spirits. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the whiskey glass is intended to enhance the drinking experience by allowing the whiskey's aroma and flavor to be fully appreciated. The wide opening of the glass allows the drinker to fully appreciate the color, clarity, and texture of the whiskey, while the heavy base helps to keep the drink from spilling or tipping over. Overall, the Rye Whiskey Glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine whiskey. Its simple yet elegant design makes it a popular choice for whiskey connoisseurs and casual drinkers alike.", - }, - { - "locale": "en-US", - "value": "The Rye Whiskey Glass is designed specifically for enjoying whiskey or other spirits. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the whiskey glass is intended to enhance the drinking experience by allowing the whiskey's aroma and flavor to be fully appreciated. The wide opening of the glass allows the drinker to fully appreciate the color, clarity, and texture of the whiskey, while the heavy base helps to keep the drink from spilling or tipping over. Overall, the Rye Whiskey Glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine whiskey. Its simple yet elegant design makes it a popular choice for whiskey connoisseurs and casual drinkers alike.", - }, - { - "locale": "de-DE", - "value": "Das Rye-Whiskyglas wurde speziell für den Genuss von Whisky und anderen Spirituosen entwickelt. Es hat eine breite Form mit einer dickglasigen, schweren Basis, die für Stabilität und Gleichgewicht sorgt. Das Design des Whiskyglases ist auf ein verbessertes Trinkerlebnis abgestimmt, bei dem die Aromen der Geschmack des Whiskys im Mittelpunkt stehen. Die breite Öffnung des Glases ermöglicht es dem Genießer, die Farbe, Klarheit und Textur des Whiskys voll und ganz wahrzunehmen, während der schwere Boden für Stabilität beim Abstellen sorgt. Insgesamt ist das Rye-Whiskyglas ein klassisches und zeitloses Trinkglas, das sich ideal eignet, um den reichen Geschmack und das Aroma von feinem Whisky zu genießen. Sein schlichtes, aber elegantes Design macht es zu einer beliebten Wahl für Whiskykenner und Gelegenheitsgenießer gleichermaßen.", - }, - ], - "key": "rye-whiskey-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ { - "dimensions": { - "height": 2990, - "width": 2848, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.1.jpeg", - }, - { - "dimensions": { - "height": 2268, - "width": 2632, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3499, - "currencyCode": "EUR", + "categories": [ + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "The Rye Whiskey Glass is designed specifically for enjoying whiskey or other spirits. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the whiskey glass is intended to enhance the drinking experience by allowing the whiskey's aroma and flavor to be fully appreciated. The wide opening of the glass allows the drinker to fully appreciate the color, clarity, and texture of the whiskey, while the heavy base helps to keep the drink from spilling or tipping over. Overall, the Rye Whiskey Glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine whiskey. Its simple yet elegant design makes it a popular choice for whiskey connoisseurs and casual drinkers alike.", + }, + { + "locale": "en-US", + "value": "The Rye Whiskey Glass is designed specifically for enjoying whiskey or other spirits. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the whiskey glass is intended to enhance the drinking experience by allowing the whiskey's aroma and flavor to be fully appreciated. The wide opening of the glass allows the drinker to fully appreciate the color, clarity, and texture of the whiskey, while the heavy base helps to keep the drink from spilling or tipping over. Overall, the Rye Whiskey Glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine whiskey. Its simple yet elegant design makes it a popular choice for whiskey connoisseurs and casual drinkers alike.", }, + { + "locale": "de-DE", + "value": "Das Rye-Whiskyglas wurde speziell für den Genuss von Whisky und anderen Spirituosen entwickelt. Es hat eine breite Form mit einer dickglasigen, schweren Basis, die für Stabilität und Gleichgewicht sorgt. Das Design des Whiskyglases ist auf ein verbessertes Trinkerlebnis abgestimmt, bei dem die Aromen der Geschmack des Whiskys im Mittelpunkt stehen. Die breite Öffnung des Glases ermöglicht es dem Genießer, die Farbe, Klarheit und Textur des Whiskys voll und ganz wahrzunehmen, während der schwere Boden für Stabilität beim Abstellen sorgt. Insgesamt ist das Rye-Whiskyglas ein klassisches und zeitloses Trinkglas, das sich ideal eignet, um den reichen Geschmack und das Aroma von feinem Whisky zu genießen. Sein schlichtes, aber elegantes Design macht es zu einer beliebten Wahl für Whiskykenner und Gelegenheitsgenießer gleichermaßen.", + }, + ], + "key": "rye-whiskey-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2990, + "width": 2848, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.1.jpeg", + }, + { + "dimensions": { + "height": 2268, + "width": 2632, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Rye_Whiskey_Glass-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "3499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 3499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "RWG-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3499, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Rye Whiskey Glass", + }, + { + "locale": "en-GB", + "value": "Rye Whiskey Glass", + }, + { + "locale": "de-DE", + "value": "Rye-Whiskyglas", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 3499, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "rye-whiskey-glass", + }, + { + "locale": "en-GB", + "value": "rye-whiskey-glass", + }, + { + "locale": "de-DE", + "value": "roggen-whisky-glas", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "RWG-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Rye Whiskey Glass", - }, - { - "locale": "en-GB", - "value": "Rye Whiskey Glass", - }, - { - "locale": "de-DE", - "value": "Rye-Whiskyglas", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "rye-whiskey-glass", - }, - { - "locale": "en-GB", - "value": "rye-whiskey-glass", - }, - { - "locale": "de-DE", - "value": "roggen-whisky-glas", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sally-armchair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sally-armchair.spec.ts index 6dcf86abd..8099f2360 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sally-armchair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sally-armchair.spec.ts @@ -5,317 +5,317 @@ describe(`with sallyArmchair preset`, () => { it(`should return a sallyArmchair preset`, () => { const sallyArmchairPreset = sallyArmchair().build(); expect(sallyArmchairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser getuftete Sessel mit Holzbeinen ist ein elegantes und bequemes Sitzmöbel. Der Lounge-Sessel verfügt über eine tiefe gepolsterte Sitzfläche mit hoher Rückenlehne, die beide mit weichem Plüschmaterial bezogen sind. Das getuftete Design sorgt für einen raffinierten und dennoch zeitlosen Look, der von der Wärme der abgerundet wird. Die Beine des Lounge-Möbels sind schmal und verjüngt, was dem Stuhl ein leichtes und modernes Aussehen verleiht. Die Armlehnen sind gebogen und weich und bieten sowohl Komfort als auch Halt für die Arme. Ein getufteter Sessel mit Holzbeinen ist eine stilvolle und bequeme Ergänzung für jeden Wohn- oder Lounge-Bereich.", - "en": undefined, - "en-GB": "A tufted armchair with wooden legs is an elegant and comfortable piece of furniture. The chair features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the wooden legs adding a touch of softness and warmth. The legs are thin and tapered, giving the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", - "en-US": "A tufted armchair with wooden legs is an elegant and comfortable piece of furniture. The chair features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the wooden legs adding a touch of softness and warmth. The legs are thin and tapered, giving the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", - "fr": undefined, - }, - "key": "sally-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Wird mit passendem Dekokissen geliefert", - "en-GB": "- Comes with matching throw pillow", - "en-US": "- Comes with matching throw pillow", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser getuftete Sessel mit Holzbeinen ist ein elegantes und bequemes Sitzmöbel. Der Lounge-Sessel verfügt über eine tiefe gepolsterte Sitzfläche mit hoher Rückenlehne, die beide mit weichem Plüschmaterial bezogen sind. Das getuftete Design sorgt für einen raffinierten und dennoch zeitlosen Look, der von der Wärme der abgerundet wird. Die Beine des Lounge-Möbels sind schmal und verjüngt, was dem Stuhl ein leichtes und modernes Aussehen verleiht. Die Armlehnen sind gebogen und weich und bieten sowohl Komfort als auch Halt für die Arme. Ein getufteter Sessel mit Holzbeinen ist eine stilvolle und bequeme Ergänzung für jeden Wohn- oder Lounge-Bereich.", + "en": undefined, + "en-GB": "A tufted armchair with wooden legs is an elegant and comfortable piece of furniture. The chair features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the wooden legs adding a touch of softness and warmth. The legs are thin and tapered, giving the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", + "en-US": "A tufted armchair with wooden legs is an elegant and comfortable piece of furniture. The chair features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the wooden legs adding a touch of softness and warmth. The legs are thin and tapered, giving the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Rosa:#FFC0CB", - "en-GB": "Pink:#FFC0CB", - "en-US": "Pink:#FFC0CB", + "key": "sally-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Wird mit passendem Dekokissen geliefert", + "en-GB": "- Comes with matching throw pillow", + "en-US": "- Comes with matching throw pillow", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Rosa:#FFC0CB", + "en-GB": "Pink:#FFC0CB", + "en-US": "Pink:#FFC0CB", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sally_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 19900, + "currencyCode": "USD", + }, + }, + ], + "sku": "SARMO-034", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sessel >Sally<", + "en": undefined, + "en-GB": "Sally Armchair", + "en-US": "Sally Armchair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 5000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sally_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "sally-sessel", + "en": undefined, + "en-GB": "sally-armchair", + "en-US": "sally-armchair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 19900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SARMO-034", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sessel >Sally<", - "en": undefined, - "en-GB": "Sally Armchair", - "en-US": "Sally Armchair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "sally-sessel", - "en": undefined, - "en-GB": "sally-armchair", - "en-US": "sally-armchair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a sallyArmchair preset when built for graphql`, () => { const sallyArmchairPresetGraphql = sallyArmchair().buildGraphql(); expect(sallyArmchairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A tufted armchair with wooden legs is an elegant and comfortable piece of furniture. The chair features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the wooden legs adding a touch of softness and warmth. The legs are thin and tapered, giving the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", - }, - { - "locale": "en-US", - "value": "A tufted armchair with wooden legs is an elegant and comfortable piece of furniture. The chair features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the wooden legs adding a touch of softness and warmth. The legs are thin and tapered, giving the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", - }, - { - "locale": "de-DE", - "value": "Dieser getuftete Sessel mit Holzbeinen ist ein elegantes und bequemes Sitzmöbel. Der Lounge-Sessel verfügt über eine tiefe gepolsterte Sitzfläche mit hoher Rückenlehne, die beide mit weichem Plüschmaterial bezogen sind. Das getuftete Design sorgt für einen raffinierten und dennoch zeitlosen Look, der von der Wärme der abgerundet wird. Die Beine des Lounge-Möbels sind schmal und verjüngt, was dem Stuhl ein leichtes und modernes Aussehen verleiht. Die Armlehnen sind gebogen und weich und bieten sowohl Komfort als auch Halt für die Arme. Ein getufteter Sessel mit Holzbeinen ist eine stilvolle und bequeme Ergänzung für jeden Wohn- oder Lounge-Bereich.", - }, - ], - "key": "sally-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Comes with matching throw pillow","en-US":"- Comes with matching throw pillow","de-DE":"- Wird mit passendem Dekokissen geliefert"}", - }, - { - "name": "color", - "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", - }, - ], - "images": [ { - "dimensions": { - "height": 4000, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sally_Armchair-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "EUR", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A tufted armchair with wooden legs is an elegant and comfortable piece of furniture. The chair features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the wooden legs adding a touch of softness and warmth. The legs are thin and tapered, giving the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", + }, + { + "locale": "en-US", + "value": "A tufted armchair with wooden legs is an elegant and comfortable piece of furniture. The chair features a deep seat and a high backrest, which are both padded and upholstered with soft and plush material. The tufted design creates a sophisticated and timeless look, while the wooden legs adding a touch of softness and warmth. The legs are thin and tapered, giving the chair a sleek and modern appearance. The armrests are curved and plush, providing both comfort and support for the arms. Overall, a tufted armchair with brass legs is a stylish and comfortable addition to any living space or lounge area.", + }, + { + "locale": "de-DE", + "value": "Dieser getuftete Sessel mit Holzbeinen ist ein elegantes und bequemes Sitzmöbel. Der Lounge-Sessel verfügt über eine tiefe gepolsterte Sitzfläche mit hoher Rückenlehne, die beide mit weichem Plüschmaterial bezogen sind. Das getuftete Design sorgt für einen raffinierten und dennoch zeitlosen Look, der von der Wärme der abgerundet wird. Die Beine des Lounge-Möbels sind schmal und verjüngt, was dem Stuhl ein leichtes und modernes Aussehen verleiht. Die Armlehnen sind gebogen und weich und bieten sowohl Komfort als auch Halt für die Arme. Ein getufteter Sessel mit Holzbeinen ist eine stilvolle und bequeme Ergänzung für jeden Wohn- oder Lounge-Bereich.", }, + ], + "key": "sally-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Comes with matching throw pillow","en-US":"- Comes with matching throw pillow","de-DE":"- Wird mit passendem Dekokissen geliefert"}", + }, + { + "name": "color", + "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sally_Armchair-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "19900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 19900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SARMO-034", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Sally Armchair", + }, + { + "locale": "en-GB", + "value": "Sally Armchair", + }, + { + "locale": "de-DE", + "value": "Sessel >Sally<", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 19900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "sally-armchair", + }, + { + "locale": "en-GB", + "value": "sally-armchair", + }, + { + "locale": "de-DE", + "value": "sally-sessel", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SARMO-034", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Sally Armchair", - }, - { - "locale": "en-GB", - "value": "Sally Armchair", - }, - { - "locale": "de-DE", - "value": "Sessel >Sally<", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "sally-armchair", - }, - { - "locale": "en-GB", - "value": "sally-armchair", - }, - { - "locale": "de-DE", - "value": "sally-sessel", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup.spec.ts index 4831c0eb3..5de0fe248 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sand-tea-cup.spec.ts @@ -5,304 +5,304 @@ describe(`with sandTeaCup preset`, () => { it(`should return a sandTeaCup preset`, () => { const sandTeaCupPreset = sandTeaCup().build(); expect(sandTeaCupPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Die sandfarbene Tasse ist mit ihrer zylindrischen oder leicht konischen Form und einem Fassungsvermögen von etwa 8 bis 16 Unzen das ideale Trinkgefäß für jeden Tee- oder Kaffeeliebhaber. Der Keramikbecher hat glatte Seiten und eine breite Öffnung, die das Eingießen und den Genuss von Kaffee oder Tee erleichtern. Der Henkel der Tasse ist so konzipiert, dass er für jede Handgröße angenehm zu greifen ist und bequem in der Hand liegt. Der Boden des Henkeltasse ist flach und stabil, um ein Umkippen und Verschütten zu verhindern. Die hellbraune Teetasse ist leicht zu reinigen und zu pflegen. Sie kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Die Tasse ist ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Genuss von Heißgetränken Zuhause oder auf der Arbeit eignet. Die neutrale Farbe und das schlichte Design machen sie zu einer beliebten Wahl für alle Tee- und Kaffeeliebhaber, die einen klassischen und minimalistischen Look bevorzugen.", - "en": undefined, - "en-GB": "The Sand Tea Cup is a type of drinking vessel that is designed to hold and serve tea and/or coffee. It has a cylindrical or slightly tapered shape, with a capacity of around 8 to 16 ounces, and is a light brownish color. The mug is made of ceramic. The body of the mug is smooth-sided, with a wide opening that makes it easy to pour and drink coffee or tea. The handle of the mug is designed to be easy to grip, with a comfortable shape and a size that fits most hands. The bottom of the mug is typically flat, with a stable base that helps to prevent tipping and spilling. The Sand Tea Cup is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, this mug is a practical and functional type of drinking vessel that is ideal for enjoying a hot drink at home or at work. Its neutral color and simple design make it a popular choice for coffee lovers who prefer a classic and understated look.", - "en-US": "The Sand Tea Cup is a type of drinking vessel that is designed to hold and serve tea and/or coffee. It has a cylindrical or slightly tapered shape, with a capacity of around 8 to 16 ounces, and is a light brownish color. The mug is made of ceramic. The body of the mug is smooth-sided, with a wide opening that makes it easy to pour and drink coffee or tea. The handle of the mug is designed to be easy to grip, with a comfortable shape and a size that fits most hands. The bottom of the mug is typically flat, with a stable base that helps to prevent tipping and spilling. The Sand Tea Cup is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, this mug is a practical and functional type of drinking vessel that is ideal for enjoying a hot drink at home or at work. Its neutral color and simple design make it a popular choice for coffee lovers who prefer a classic and understated look.", - "fr": undefined, - }, - "key": "sand-tea-cup", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Tasse", - "en-GB": "- Includes 1 mug", - "en-US": "- Includes 1 mug", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Die sandfarbene Tasse ist mit ihrer zylindrischen oder leicht konischen Form und einem Fassungsvermögen von etwa 8 bis 16 Unzen das ideale Trinkgefäß für jeden Tee- oder Kaffeeliebhaber. Der Keramikbecher hat glatte Seiten und eine breite Öffnung, die das Eingießen und den Genuss von Kaffee oder Tee erleichtern. Der Henkel der Tasse ist so konzipiert, dass er für jede Handgröße angenehm zu greifen ist und bequem in der Hand liegt. Der Boden des Henkeltasse ist flach und stabil, um ein Umkippen und Verschütten zu verhindern. Die hellbraune Teetasse ist leicht zu reinigen und zu pflegen. Sie kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Die Tasse ist ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Genuss von Heißgetränken Zuhause oder auf der Arbeit eignet. Die neutrale Farbe und das schlichte Design machen sie zu einer beliebten Wahl für alle Tee- und Kaffeeliebhaber, die einen klassischen und minimalistischen Look bevorzugen.", + "en": undefined, + "en-GB": "The Sand Tea Cup is a type of drinking vessel that is designed to hold and serve tea and/or coffee. It has a cylindrical or slightly tapered shape, with a capacity of around 8 to 16 ounces, and is a light brownish color. The mug is made of ceramic. The body of the mug is smooth-sided, with a wide opening that makes it easy to pour and drink coffee or tea. The handle of the mug is designed to be easy to grip, with a comfortable shape and a size that fits most hands. The bottom of the mug is typically flat, with a stable base that helps to prevent tipping and spilling. The Sand Tea Cup is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, this mug is a practical and functional type of drinking vessel that is ideal for enjoying a hot drink at home or at work. Its neutral color and simple design make it a popular choice for coffee lovers who prefer a classic and understated look.", + "en-US": "The Sand Tea Cup is a type of drinking vessel that is designed to hold and serve tea and/or coffee. It has a cylindrical or slightly tapered shape, with a capacity of around 8 to 16 ounces, and is a light brownish color. The mug is made of ceramic. The body of the mug is smooth-sided, with a wide opening that makes it easy to pour and drink coffee or tea. The handle of the mug is designed to be easy to grip, with a comfortable shape and a size that fits most hands. The bottom of the mug is typically flat, with a stable base that helps to prevent tipping and spilling. The Sand Tea Cup is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, this mug is a practical and functional type of drinking vessel that is ideal for enjoying a hot drink at home or at work. Its neutral color and simple design make it a popular choice for coffee lovers who prefer a classic and understated look.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Sand:#C2B280", - "en-GB": "Sand:#C2B280", - "en-US": "Sand:#C2B280", + "key": "sand-tea-cup", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Tasse", + "en-GB": "- Includes 1 mug", + "en-US": "- Includes 1 mug", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Sand:#C2B280", + "en-GB": "Sand:#C2B280", + "en-US": "Sand:#C2B280", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4020, + "w": 6046, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sand_Tea_Cup-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "STM-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4020, - "w": 6046, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sandfarbene Tasse", + "en": undefined, + "en-GB": "Sand Tea Cup", + "en-US": "Sand Tea Cup", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sand_Tea_Cup-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "sand-teetasse", + "en": undefined, + "en-GB": "sand-tea-cup", + "en-US": "sand-tea-cup", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "STM-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sandfarbene Tasse", - "en": undefined, - "en-GB": "Sand Tea Cup", - "en-US": "Sand Tea Cup", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "sand-teetasse", - "en": undefined, - "en-GB": "sand-tea-cup", - "en-US": "sand-tea-cup", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a sandTeaCup preset when built for graphql`, () => { const sandTeaCupPresetGraphql = sandTeaCup().buildGraphql(); expect(sandTeaCupPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "The Sand Tea Cup is a type of drinking vessel that is designed to hold and serve tea and/or coffee. It has a cylindrical or slightly tapered shape, with a capacity of around 8 to 16 ounces, and is a light brownish color. The mug is made of ceramic. The body of the mug is smooth-sided, with a wide opening that makes it easy to pour and drink coffee or tea. The handle of the mug is designed to be easy to grip, with a comfortable shape and a size that fits most hands. The bottom of the mug is typically flat, with a stable base that helps to prevent tipping and spilling. The Sand Tea Cup is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, this mug is a practical and functional type of drinking vessel that is ideal for enjoying a hot drink at home or at work. Its neutral color and simple design make it a popular choice for coffee lovers who prefer a classic and understated look.", - }, - { - "locale": "en-US", - "value": "The Sand Tea Cup is a type of drinking vessel that is designed to hold and serve tea and/or coffee. It has a cylindrical or slightly tapered shape, with a capacity of around 8 to 16 ounces, and is a light brownish color. The mug is made of ceramic. The body of the mug is smooth-sided, with a wide opening that makes it easy to pour and drink coffee or tea. The handle of the mug is designed to be easy to grip, with a comfortable shape and a size that fits most hands. The bottom of the mug is typically flat, with a stable base that helps to prevent tipping and spilling. The Sand Tea Cup is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, this mug is a practical and functional type of drinking vessel that is ideal for enjoying a hot drink at home or at work. Its neutral color and simple design make it a popular choice for coffee lovers who prefer a classic and understated look.", - }, - { - "locale": "de-DE", - "value": "Die sandfarbene Tasse ist mit ihrer zylindrischen oder leicht konischen Form und einem Fassungsvermögen von etwa 8 bis 16 Unzen das ideale Trinkgefäß für jeden Tee- oder Kaffeeliebhaber. Der Keramikbecher hat glatte Seiten und eine breite Öffnung, die das Eingießen und den Genuss von Kaffee oder Tee erleichtern. Der Henkel der Tasse ist so konzipiert, dass er für jede Handgröße angenehm zu greifen ist und bequem in der Hand liegt. Der Boden des Henkeltasse ist flach und stabil, um ein Umkippen und Verschütten zu verhindern. Die hellbraune Teetasse ist leicht zu reinigen und zu pflegen. Sie kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Die Tasse ist ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Genuss von Heißgetränken Zuhause oder auf der Arbeit eignet. Die neutrale Farbe und das schlichte Design machen sie zu einer beliebten Wahl für alle Tee- und Kaffeeliebhaber, die einen klassischen und minimalistischen Look bevorzugen.", - }, - ], - "key": "sand-tea-cup", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 mug","en-US":"- Includes 1 mug","de-DE":"- Enthält 1 Tasse"}", - }, - { - "name": "color", - "value": "{"en-GB":"Sand:#C2B280","de-DE":"Sand:#C2B280","en-US":"Sand:#C2B280"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4020, - "width": 6046, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sand_Tea_Cup-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "The Sand Tea Cup is a type of drinking vessel that is designed to hold and serve tea and/or coffee. It has a cylindrical or slightly tapered shape, with a capacity of around 8 to 16 ounces, and is a light brownish color. The mug is made of ceramic. The body of the mug is smooth-sided, with a wide opening that makes it easy to pour and drink coffee or tea. The handle of the mug is designed to be easy to grip, with a comfortable shape and a size that fits most hands. The bottom of the mug is typically flat, with a stable base that helps to prevent tipping and spilling. The Sand Tea Cup is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, this mug is a practical and functional type of drinking vessel that is ideal for enjoying a hot drink at home or at work. Its neutral color and simple design make it a popular choice for coffee lovers who prefer a classic and understated look.", + }, + { + "locale": "en-US", + "value": "The Sand Tea Cup is a type of drinking vessel that is designed to hold and serve tea and/or coffee. It has a cylindrical or slightly tapered shape, with a capacity of around 8 to 16 ounces, and is a light brownish color. The mug is made of ceramic. The body of the mug is smooth-sided, with a wide opening that makes it easy to pour and drink coffee or tea. The handle of the mug is designed to be easy to grip, with a comfortable shape and a size that fits most hands. The bottom of the mug is typically flat, with a stable base that helps to prevent tipping and spilling. The Sand Tea Cup is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, this mug is a practical and functional type of drinking vessel that is ideal for enjoying a hot drink at home or at work. Its neutral color and simple design make it a popular choice for coffee lovers who prefer a classic and understated look.", + }, + { + "locale": "de-DE", + "value": "Die sandfarbene Tasse ist mit ihrer zylindrischen oder leicht konischen Form und einem Fassungsvermögen von etwa 8 bis 16 Unzen das ideale Trinkgefäß für jeden Tee- oder Kaffeeliebhaber. Der Keramikbecher hat glatte Seiten und eine breite Öffnung, die das Eingießen und den Genuss von Kaffee oder Tee erleichtern. Der Henkel der Tasse ist so konzipiert, dass er für jede Handgröße angenehm zu greifen ist und bequem in der Hand liegt. Der Boden des Henkeltasse ist flach und stabil, um ein Umkippen und Verschütten zu verhindern. Die hellbraune Teetasse ist leicht zu reinigen und zu pflegen. Sie kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Die Tasse ist ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Genuss von Heißgetränken Zuhause oder auf der Arbeit eignet. Die neutrale Farbe und das schlichte Design machen sie zu einer beliebten Wahl für alle Tee- und Kaffeeliebhaber, die einen klassischen und minimalistischen Look bevorzugen.", + }, + ], + "key": "sand-tea-cup", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 mug","en-US":"- Includes 1 mug","de-DE":"- Enthält 1 Tasse"}", + }, + { + "name": "color", + "value": "{"en-GB":"Sand:#C2B280","de-DE":"Sand:#C2B280","en-US":"Sand:#C2B280"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4020, + "width": 6046, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sand_Tea_Cup-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "STM-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Sand Tea Cup", }, + { + "locale": "en-GB", + "value": "Sand Tea Cup", + }, + { + "locale": "de-DE", + "value": "Sandfarbene Tasse", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "sand-tea-cup", + }, + { + "locale": "en-GB", + "value": "sand-tea-cup", + }, + { + "locale": "de-DE", + "value": "sand-teetasse", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "STM-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Sand Tea Cup", - }, - { - "locale": "en-GB", - "value": "Sand Tea Cup", - }, - { - "locale": "de-DE", - "value": "Sandfarbene Tasse", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "sand-tea-cup", - }, - { - "locale": "en-GB", - "value": "sand-tea-cup", - }, - { - "locale": "de-DE", - "value": "sand-teetasse", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed.spec.ts index 2c42e8cb9..faf663d5c 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/serenity-queen-bed.spec.ts @@ -5,305 +5,305 @@ describe(`with serenityQueenBed preset`, () => { it(`should return a serenityQueenBed preset`, () => { const serenityQueenBedPreset = serenityQueenBed().build(); expect(serenityQueenBedPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das Queensize-Bett mit gepolstertem Kopfteil im industriellen Look hat ein einzigartiges und kantigen Design. Das Kopfteil ist mit einem robusten beigefarbenen Stoff bezogen und ist mit Lederriemen versehen, die ihm zusammen mit den freiliegenden Schrauben ein industrielles Aussehen verleihen. Der Rahmen ist mit dem gleichen Stoff wie das Kopfteil bespannt. Das französische Bett hat ein schlichtes, minimalistisches Design unterstützt durch den Holzrahmen und den geraden Linien, die das Statement des Kopfteils abrunden. Das Bett eignet sich ideal für all diejenigen, die ihrem Schlafzimmerdekor einen Hauch von industriellem Charme verleihen möchten.", - "en": undefined, - "en-GB": "A queen bed with an industrial pillow headboard has a unique and edgy look. The headboard is covered in a sturdy beige canvas. The headboard includes leather straps that give it an industrial look with exposed screws and bolts. The frame is also covered in the same canvas as the headboard. The bed has a simple, minimalist design with a wood frame and straight lines to complement the bold statement of the headboard. Overall, this type of bed would be perfect for someone who wants to add a touch of industrial style to their bedroom décor.", - "en-US": "A queen bed with an industrial pillow headboard has a unique and edgy look. The headboard is covered in a sturdy beige canvas. The headboard includes leather straps that give it an industrial look with exposed screws and bolts. The frame is also covered in the same canvas as the headboard. The bed has a simple, minimalist design with a wood frame and straight lines to complement the bold statement of the headboard. Overall, this type of bed would be perfect for someone who wants to add a touch of industrial style to their bedroom décor.", - "fr": undefined, - }, - "key": "serenity-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das Queensize-Bett mit gepolstertem Kopfteil im industriellen Look hat ein einzigartiges und kantigen Design. Das Kopfteil ist mit einem robusten beigefarbenen Stoff bezogen und ist mit Lederriemen versehen, die ihm zusammen mit den freiliegenden Schrauben ein industrielles Aussehen verleihen. Der Rahmen ist mit dem gleichen Stoff wie das Kopfteil bespannt. Das französische Bett hat ein schlichtes, minimalistisches Design unterstützt durch den Holzrahmen und den geraden Linien, die das Statement des Kopfteils abrunden. Das Bett eignet sich ideal für all diejenigen, die ihrem Schlafzimmerdekor einen Hauch von industriellem Charme verleihen möchten.", + "en": undefined, + "en-GB": "A queen bed with an industrial pillow headboard has a unique and edgy look. The headboard is covered in a sturdy beige canvas. The headboard includes leather straps that give it an industrial look with exposed screws and bolts. The frame is also covered in the same canvas as the headboard. The bed has a simple, minimalist design with a wood frame and straight lines to complement the bold statement of the headboard. Overall, this type of bed would be perfect for someone who wants to add a touch of industrial style to their bedroom décor.", + "en-US": "A queen bed with an industrial pillow headboard has a unique and edgy look. The headboard is covered in a sturdy beige canvas. The headboard includes leather straps that give it an industrial look with exposed screws and bolts. The frame is also covered in the same canvas as the headboard. The bed has a simple, minimalist design with a wood frame and straight lines to complement the bold statement of the headboard. Overall, this type of bed would be perfect for someone who wants to add a touch of industrial style to their bedroom décor.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", + "key": "serenity-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2000, + "w": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Serenity_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 99900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 99900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 99900, + "currencyCode": "USD", + }, + }, + ], + "sku": "IQB-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2000, - "w": 2000, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Queensize-Bett >Serenity<", + "en": undefined, + "en-GB": "Serenity Queen Bed", + "en-US": "Serenity Queen Bed", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Serenity_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 99900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 99900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "gelassenheit-queen-bett", + "en": undefined, + "en-GB": "serenity-queen-bed", + "en-US": "serenity-queen-bed", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 99900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "IQB-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Queensize-Bett >Serenity<", - "en": undefined, - "en-GB": "Serenity Queen Bed", - "en-US": "Serenity Queen Bed", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "gelassenheit-queen-bett", - "en": undefined, - "en-GB": "serenity-queen-bed", - "en-US": "serenity-queen-bed", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a serenityQueenBed preset when built for graphql`, () => { const serenityQueenBedPresetGraphql = serenityQueenBed().buildGraphql(); expect(serenityQueenBedPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A queen bed with an industrial pillow headboard has a unique and edgy look. The headboard is covered in a sturdy beige canvas. The headboard includes leather straps that give it an industrial look with exposed screws and bolts. The frame is also covered in the same canvas as the headboard. The bed has a simple, minimalist design with a wood frame and straight lines to complement the bold statement of the headboard. Overall, this type of bed would be perfect for someone who wants to add a touch of industrial style to their bedroom décor.", - }, - { - "locale": "en-US", - "value": "A queen bed with an industrial pillow headboard has a unique and edgy look. The headboard is covered in a sturdy beige canvas. The headboard includes leather straps that give it an industrial look with exposed screws and bolts. The frame is also covered in the same canvas as the headboard. The bed has a simple, minimalist design with a wood frame and straight lines to complement the bold statement of the headboard. Overall, this type of bed would be perfect for someone who wants to add a touch of industrial style to their bedroom décor.", - }, - { - "locale": "de-DE", - "value": "Das Queensize-Bett mit gepolstertem Kopfteil im industriellen Look hat ein einzigartiges und kantigen Design. Das Kopfteil ist mit einem robusten beigefarbenen Stoff bezogen und ist mit Lederriemen versehen, die ihm zusammen mit den freiliegenden Schrauben ein industrielles Aussehen verleihen. Der Rahmen ist mit dem gleichen Stoff wie das Kopfteil bespannt. Das französische Bett hat ein schlichtes, minimalistisches Design unterstützt durch den Holzrahmen und den geraden Linien, die das Statement des Kopfteils abrunden. Das Bett eignet sich ideal für all diejenigen, die ihrem Schlafzimmerdekor einen Hauch von industriellem Charme verleihen möchten.", - }, - ], - "key": "serenity-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", - }, - { - "name": "color", - "value": "{"de-DE":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2000, - "width": 2000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Serenity_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 99900, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedroom-furniture", + "typeId": "category", }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A queen bed with an industrial pillow headboard has a unique and edgy look. The headboard is covered in a sturdy beige canvas. The headboard includes leather straps that give it an industrial look with exposed screws and bolts. The frame is also covered in the same canvas as the headboard. The bed has a simple, minimalist design with a wood frame and straight lines to complement the bold statement of the headboard. Overall, this type of bed would be perfect for someone who wants to add a touch of industrial style to their bedroom décor.", + }, + { + "locale": "en-US", + "value": "A queen bed with an industrial pillow headboard has a unique and edgy look. The headboard is covered in a sturdy beige canvas. The headboard includes leather straps that give it an industrial look with exposed screws and bolts. The frame is also covered in the same canvas as the headboard. The bed has a simple, minimalist design with a wood frame and straight lines to complement the bold statement of the headboard. Overall, this type of bed would be perfect for someone who wants to add a touch of industrial style to their bedroom décor.", + }, + { + "locale": "de-DE", + "value": "Das Queensize-Bett mit gepolstertem Kopfteil im industriellen Look hat ein einzigartiges und kantigen Design. Das Kopfteil ist mit einem robusten beigefarbenen Stoff bezogen und ist mit Lederriemen versehen, die ihm zusammen mit den freiliegenden Schrauben ein industrielles Aussehen verleihen. Der Rahmen ist mit dem gleichen Stoff wie das Kopfteil bespannt. Das französische Bett hat ein schlichtes, minimalistisches Design unterstützt durch den Holzrahmen und den geraden Linien, die das Statement des Kopfteils abrunden. Das Bett eignet sich ideal für all diejenigen, die ihrem Schlafzimmerdekor einen Hauch von industriellem Charme verleihen möchten.", + }, + ], + "key": "serenity-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", + }, + { + "name": "color", + "value": "{"de-DE":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","en-US":"Beige:#F5F5DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2000, + "width": 2000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Serenity_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 99900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 99900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "99900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 99900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "IQB-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 99900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Serenity Queen Bed", }, + { + "locale": "en-GB", + "value": "Serenity Queen Bed", + }, + { + "locale": "de-DE", + "value": "Queensize-Bett >Serenity<", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 99900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "serenity-queen-bed", + }, + { + "locale": "en-GB", + "value": "serenity-queen-bed", + }, + { + "locale": "de-DE", + "value": "gelassenheit-queen-bett", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "IQB-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Serenity Queen Bed", - }, - { - "locale": "en-GB", - "value": "Serenity Queen Bed", - }, - { - "locale": "de-DE", - "value": "Queensize-Bett >Serenity<", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "serenity-queen-bed", - }, - { - "locale": "en-GB", - "value": "serenity-queen-bed", - }, - { - "locale": "de-DE", - "value": "gelassenheit-queen-bett", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover.spec.ts index df31f6014..6773ab2fc 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/silky-pillow-cover.spec.ts @@ -5,297 +5,297 @@ describe(`with silkyPillowCover preset`, () => { it(`should return a silkyPillowCover preset`, () => { const silkyPillowCoverPreset = silkyPillowCover().build(); expect(silkyPillowCoverPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der Seidenbezug ist ein luxuriöser und weicher Kissenbezug aus natürlichen Seidenfasern. Seide ist eine natürliche Proteinfaser, die von bestimmten Insektenlarven, einschließlich der Seidenraupe, produziert wird. Die Fasern sind für ihre Weichheit, Geschmeidigkeit und ihren natürlichen Glanz bekannt und verleihen Seidenkissenbezügen ihr luxuriöses und elegantes Aussehen und Gefühl. Seidenkissenbezüge sind bekannt für die vielen Vorteile für Haut und Haar. Die glatte Textur von Seide trägt dazu bei, Reibung und Irritationen auf der Haut zu reduzieren und das Risiko von Falten und feinen Linien zu verringern. Sie hilft auch dabei, Haarbruch und Frizz zu verhindern, wodurch das Haar glatter und geschmeidiger aussieht. Kissenbezüge aus Seide erfordern besondere Pflege, da sie empfindlich sind und leicht durch scharfe Reinigungsmittel oder grobe Behandlung beschädigt werden können. Sie sollten von Hand oder im Schonwaschgang mit Feinwaschmittel gewaschen und liegend getrocknet oder zum Trocknen aufgehängt werden. Ein Kissenbezug aus Seide ist eine luxuriöse und elegante Wahl für jedes Schlafzimmer. Seine vielen Vorteile für Haut und Haar sowie seine weiche und glatte Textur machen es zu einer beliebten Wahl für diejenigen, die ein komfortables und verwöhnendes Schlaferlebnis suchen.", - "en": undefined, - "en-GB": "A silk pillowcase is a luxurious and soft pillow cover made from natural silk fibers. Silk is a natural protein fiber that is produced by certain insect larvae, including the silkworm. The fibers are known for their softness, smoothness, and natural shine, giving silk pillowcases a luxurious and elegant look and feel. Silk pillowcases are known for their many benefits for the skin and hair. The smooth texture of silk helps reduce friction and irritation on the skin, reducing the risk of wrinkles and fine lines. It also helps prevent hair breakage and frizz, leaving hair looking smoother and more manageable. Silk pillowcases require some special care, as they are delicate and can easily be damaged by harsh detergents or rough handling. They should be washed by hand or in a gentle cycle with mild detergent, and dried flat or hung to dry. Overall, a silk pillowcase is a luxurious and elegant choice for any bedroom. Its many benefits for the skin and hair, as well as its soft and smooth texture, make it a popular choice among those looking for a comfortable and indulgent sleeping experience.", - "en-US": "A silk pillowcase is a luxurious and soft pillow cover made from natural silk fibers. Silk is a natural protein fiber that is produced by certain insect larvae, including the silkworm. The fibers are known for their softness, smoothness, and natural shine, giving silk pillowcases a luxurious and elegant look and feel. Silk pillowcases are known for their many benefits for the skin and hair. The smooth texture of silk helps reduce friction and irritation on the skin, reducing the risk of wrinkles and fine lines. It also helps prevent hair breakage and frizz, leaving hair looking smoother and more manageable. Silk pillowcases require some special care, as they are delicate and can easily be damaged by harsh detergents or rough handling. They should be washed by hand or in a gentle cycle with mild detergent, and dried flat or hung to dry. Overall, a silk pillowcase is a luxurious and elegant choice for any bedroom. Its many benefits for the skin and hair, as well as its soft and smooth texture, make it a popular choice among those looking for a comfortable and indulgent sleeping experience.", - "fr": undefined, - }, - "key": "silky-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Kissen nicht im Lieferumfang enthalten", - "en-GB": "- Pillow not included", - "en-US": "- Pillow not included", + "categories": [ + { + "key": "bedding", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der Seidenbezug ist ein luxuriöser und weicher Kissenbezug aus natürlichen Seidenfasern. Seide ist eine natürliche Proteinfaser, die von bestimmten Insektenlarven, einschließlich der Seidenraupe, produziert wird. Die Fasern sind für ihre Weichheit, Geschmeidigkeit und ihren natürlichen Glanz bekannt und verleihen Seidenkissenbezügen ihr luxuriöses und elegantes Aussehen und Gefühl. Seidenkissenbezüge sind bekannt für die vielen Vorteile für Haut und Haar. Die glatte Textur von Seide trägt dazu bei, Reibung und Irritationen auf der Haut zu reduzieren und das Risiko von Falten und feinen Linien zu verringern. Sie hilft auch dabei, Haarbruch und Frizz zu verhindern, wodurch das Haar glatter und geschmeidiger aussieht. Kissenbezüge aus Seide erfordern besondere Pflege, da sie empfindlich sind und leicht durch scharfe Reinigungsmittel oder grobe Behandlung beschädigt werden können. Sie sollten von Hand oder im Schonwaschgang mit Feinwaschmittel gewaschen und liegend getrocknet oder zum Trocknen aufgehängt werden. Ein Kissenbezug aus Seide ist eine luxuriöse und elegante Wahl für jedes Schlafzimmer. Seine vielen Vorteile für Haut und Haar sowie seine weiche und glatte Textur machen es zu einer beliebten Wahl für diejenigen, die ein komfortables und verwöhnendes Schlaferlebnis suchen.", + "en": undefined, + "en-GB": "A silk pillowcase is a luxurious and soft pillow cover made from natural silk fibers. Silk is a natural protein fiber that is produced by certain insect larvae, including the silkworm. The fibers are known for their softness, smoothness, and natural shine, giving silk pillowcases a luxurious and elegant look and feel. Silk pillowcases are known for their many benefits for the skin and hair. The smooth texture of silk helps reduce friction and irritation on the skin, reducing the risk of wrinkles and fine lines. It also helps prevent hair breakage and frizz, leaving hair looking smoother and more manageable. Silk pillowcases require some special care, as they are delicate and can easily be damaged by harsh detergents or rough handling. They should be washed by hand or in a gentle cycle with mild detergent, and dried flat or hung to dry. Overall, a silk pillowcase is a luxurious and elegant choice for any bedroom. Its many benefits for the skin and hair, as well as its soft and smooth texture, make it a popular choice among those looking for a comfortable and indulgent sleeping experience.", + "en-US": "A silk pillowcase is a luxurious and soft pillow cover made from natural silk fibers. Silk is a natural protein fiber that is produced by certain insect larvae, including the silkworm. The fibers are known for their softness, smoothness, and natural shine, giving silk pillowcases a luxurious and elegant look and feel. Silk pillowcases are known for their many benefits for the skin and hair. The smooth texture of silk helps reduce friction and irritation on the skin, reducing the risk of wrinkles and fine lines. It also helps prevent hair breakage and frizz, leaving hair looking smoother and more manageable. Silk pillowcases require some special care, as they are delicate and can easily be damaged by harsh detergents or rough handling. They should be washed by hand or in a gentle cycle with mild detergent, and dried flat or hung to dry. Overall, a silk pillowcase is a luxurious and elegant choice for any bedroom. Its many benefits for the skin and hair, as well as its soft and smooth texture, make it a popular choice among those looking for a comfortable and indulgent sleeping experience.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "key": "silky-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Kissen nicht im Lieferumfang enthalten", + "en-GB": "- Pillow not included", + "en-US": "- Pillow not included", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4011, + "w": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Silky_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + ], + "sku": "SPC-06", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4011, - "w": 6016, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Kissenbezug aus Seide", + "en": undefined, + "en-GB": "Silky Pillow Cover", + "en-US": "Silky Pillow Cover", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Silky_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "seidige-kissenhlle", + "en": undefined, + "en-GB": "silky-pillow-cover", + "en-US": "silky-pillow-cover", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SPC-06", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Kissenbezug aus Seide", - "en": undefined, - "en-GB": "Silky Pillow Cover", - "en-US": "Silky Pillow Cover", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "seidige-kissenhlle", - "en": undefined, - "en-GB": "silky-pillow-cover", - "en-US": "silky-pillow-cover", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a silkyPillowCover preset when built for graphql`, () => { const silkyPillowCoverPresetGraphql = silkyPillowCover().buildGraphql(); expect(silkyPillowCoverPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bedding", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "A silk pillowcase is a luxurious and soft pillow cover made from natural silk fibers. Silk is a natural protein fiber that is produced by certain insect larvae, including the silkworm. The fibers are known for their softness, smoothness, and natural shine, giving silk pillowcases a luxurious and elegant look and feel. Silk pillowcases are known for their many benefits for the skin and hair. The smooth texture of silk helps reduce friction and irritation on the skin, reducing the risk of wrinkles and fine lines. It also helps prevent hair breakage and frizz, leaving hair looking smoother and more manageable. Silk pillowcases require some special care, as they are delicate and can easily be damaged by harsh detergents or rough handling. They should be washed by hand or in a gentle cycle with mild detergent, and dried flat or hung to dry. Overall, a silk pillowcase is a luxurious and elegant choice for any bedroom. Its many benefits for the skin and hair, as well as its soft and smooth texture, make it a popular choice among those looking for a comfortable and indulgent sleeping experience.", - }, - { - "locale": "en-US", - "value": "A silk pillowcase is a luxurious and soft pillow cover made from natural silk fibers. Silk is a natural protein fiber that is produced by certain insect larvae, including the silkworm. The fibers are known for their softness, smoothness, and natural shine, giving silk pillowcases a luxurious and elegant look and feel. Silk pillowcases are known for their many benefits for the skin and hair. The smooth texture of silk helps reduce friction and irritation on the skin, reducing the risk of wrinkles and fine lines. It also helps prevent hair breakage and frizz, leaving hair looking smoother and more manageable. Silk pillowcases require some special care, as they are delicate and can easily be damaged by harsh detergents or rough handling. They should be washed by hand or in a gentle cycle with mild detergent, and dried flat or hung to dry. Overall, a silk pillowcase is a luxurious and elegant choice for any bedroom. Its many benefits for the skin and hair, as well as its soft and smooth texture, make it a popular choice among those looking for a comfortable and indulgent sleeping experience.", - }, - { - "locale": "de-DE", - "value": "Der Seidenbezug ist ein luxuriöser und weicher Kissenbezug aus natürlichen Seidenfasern. Seide ist eine natürliche Proteinfaser, die von bestimmten Insektenlarven, einschließlich der Seidenraupe, produziert wird. Die Fasern sind für ihre Weichheit, Geschmeidigkeit und ihren natürlichen Glanz bekannt und verleihen Seidenkissenbezügen ihr luxuriöses und elegantes Aussehen und Gefühl. Seidenkissenbezüge sind bekannt für die vielen Vorteile für Haut und Haar. Die glatte Textur von Seide trägt dazu bei, Reibung und Irritationen auf der Haut zu reduzieren und das Risiko von Falten und feinen Linien zu verringern. Sie hilft auch dabei, Haarbruch und Frizz zu verhindern, wodurch das Haar glatter und geschmeidiger aussieht. Kissenbezüge aus Seide erfordern besondere Pflege, da sie empfindlich sind und leicht durch scharfe Reinigungsmittel oder grobe Behandlung beschädigt werden können. Sie sollten von Hand oder im Schonwaschgang mit Feinwaschmittel gewaschen und liegend getrocknet oder zum Trocknen aufgehängt werden. Ein Kissenbezug aus Seide ist eine luxuriöse und elegante Wahl für jedes Schlafzimmer. Seine vielen Vorteile für Haut und Haar sowie seine weiche und glatte Textur machen es zu einer beliebten Wahl für diejenigen, die ein komfortables und verwöhnendes Schlaferlebnis suchen.", - }, - ], - "key": "silky-pillow-cover", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Pillow not included","en-US":"- Pillow not included","de-DE":"- Kissen nicht im Lieferumfang enthalten"}", - }, - { - "name": "color", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4011, - "width": 6016, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Silky_Pillow_Cover-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "EUR", + "categories": [ + { + "key": "bedding", + "typeId": "category", }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "A silk pillowcase is a luxurious and soft pillow cover made from natural silk fibers. Silk is a natural protein fiber that is produced by certain insect larvae, including the silkworm. The fibers are known for their softness, smoothness, and natural shine, giving silk pillowcases a luxurious and elegant look and feel. Silk pillowcases are known for their many benefits for the skin and hair. The smooth texture of silk helps reduce friction and irritation on the skin, reducing the risk of wrinkles and fine lines. It also helps prevent hair breakage and frizz, leaving hair looking smoother and more manageable. Silk pillowcases require some special care, as they are delicate and can easily be damaged by harsh detergents or rough handling. They should be washed by hand or in a gentle cycle with mild detergent, and dried flat or hung to dry. Overall, a silk pillowcase is a luxurious and elegant choice for any bedroom. Its many benefits for the skin and hair, as well as its soft and smooth texture, make it a popular choice among those looking for a comfortable and indulgent sleeping experience.", + }, + { + "locale": "en-US", + "value": "A silk pillowcase is a luxurious and soft pillow cover made from natural silk fibers. Silk is a natural protein fiber that is produced by certain insect larvae, including the silkworm. The fibers are known for their softness, smoothness, and natural shine, giving silk pillowcases a luxurious and elegant look and feel. Silk pillowcases are known for their many benefits for the skin and hair. The smooth texture of silk helps reduce friction and irritation on the skin, reducing the risk of wrinkles and fine lines. It also helps prevent hair breakage and frizz, leaving hair looking smoother and more manageable. Silk pillowcases require some special care, as they are delicate and can easily be damaged by harsh detergents or rough handling. They should be washed by hand or in a gentle cycle with mild detergent, and dried flat or hung to dry. Overall, a silk pillowcase is a luxurious and elegant choice for any bedroom. Its many benefits for the skin and hair, as well as its soft and smooth texture, make it a popular choice among those looking for a comfortable and indulgent sleeping experience.", + }, + { + "locale": "de-DE", + "value": "Der Seidenbezug ist ein luxuriöser und weicher Kissenbezug aus natürlichen Seidenfasern. Seide ist eine natürliche Proteinfaser, die von bestimmten Insektenlarven, einschließlich der Seidenraupe, produziert wird. Die Fasern sind für ihre Weichheit, Geschmeidigkeit und ihren natürlichen Glanz bekannt und verleihen Seidenkissenbezügen ihr luxuriöses und elegantes Aussehen und Gefühl. Seidenkissenbezüge sind bekannt für die vielen Vorteile für Haut und Haar. Die glatte Textur von Seide trägt dazu bei, Reibung und Irritationen auf der Haut zu reduzieren und das Risiko von Falten und feinen Linien zu verringern. Sie hilft auch dabei, Haarbruch und Frizz zu verhindern, wodurch das Haar glatter und geschmeidiger aussieht. Kissenbezüge aus Seide erfordern besondere Pflege, da sie empfindlich sind und leicht durch scharfe Reinigungsmittel oder grobe Behandlung beschädigt werden können. Sie sollten von Hand oder im Schonwaschgang mit Feinwaschmittel gewaschen und liegend getrocknet oder zum Trocknen aufgehängt werden. Ein Kissenbezug aus Seide ist eine luxuriöse und elegante Wahl für jedes Schlafzimmer. Seine vielen Vorteile für Haut und Haar sowie seine weiche und glatte Textur machen es zu einer beliebten Wahl für diejenigen, die ein komfortables und verwöhnendes Schlaferlebnis suchen.", + }, + ], + "key": "silky-pillow-cover", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Pillow not included","en-US":"- Pillow not included","de-DE":"- Kissen nicht im Lieferumfang enthalten"}", + }, + { + "name": "color", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4011, + "width": 6016, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Silky_Pillow_Cover-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SPC-06", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Silky Pillow Cover", }, + { + "locale": "en-GB", + "value": "Silky Pillow Cover", + }, + { + "locale": "de-DE", + "value": "Kissenbezug aus Seide", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "silky-pillow-cover", + }, + { + "locale": "en-GB", + "value": "silky-pillow-cover", + }, + { + "locale": "de-DE", + "value": "seidige-kissenhlle", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SPC-06", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Silky Pillow Cover", - }, - { - "locale": "en-GB", - "value": "Silky Pillow Cover", - }, - { - "locale": "de-DE", - "value": "Kissenbezug aus Seide", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "silky-pillow-cover", - }, - { - "locale": "en-GB", - "value": "silky-pillow-cover", - }, - { - "locale": "de-DE", - "value": "seidige-kissenhlle", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug.spec.ts index 1eff38c10..c10c064a2 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sipper-coffee-mug.spec.ts @@ -5,305 +5,305 @@ describe(`with sipperCoffeeMug preset`, () => { it(`should return a sipperCoffeeMug preset`, () => { const sipperCoffeeMugPreset = sipperCoffeeMug().build(); expect(sipperCoffeeMugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Die Sipper-Tasse besteht aus Keramik und besticht durch ihr schlichtes Design mit seitlichem Henkel, der ein bequemes Halten und Trinken ermöglicht. Das grundlegende Design ist minimalistisch und funktional. Der Körper des Bechers ist glatt abgerundet und hat eine breite Trinköffnung, die das Eingießen und Trinken von Heißgetränken erleichtert. Der Sipper-Kaffeebecher ist leicht zu reinigen und zu pflegen. Er kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Die Sipper-Kaffeetasse ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Tee- oder Kaffeegenuss zu Hause oder auf der Arbeit eignet. Ihr schlichtes Design und die benutzerfreundliche Handhabung machen sie zu einer beliebten Wahl für Kaffeeliebhaber aller Art.", - "en": undefined, - "en-GB": "The Sipper Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Sipper Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Sipper Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", - "en-US": "The Sipper Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Sipper Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Sipper Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", - "fr": undefined, - }, - "key": "sipper-coffee-mug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Tasse", - "en-GB": "- Includes 1 mug", - "en-US": "- Includes 1 mug", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Die Sipper-Tasse besteht aus Keramik und besticht durch ihr schlichtes Design mit seitlichem Henkel, der ein bequemes Halten und Trinken ermöglicht. Das grundlegende Design ist minimalistisch und funktional. Der Körper des Bechers ist glatt abgerundet und hat eine breite Trinköffnung, die das Eingießen und Trinken von Heißgetränken erleichtert. Der Sipper-Kaffeebecher ist leicht zu reinigen und zu pflegen. Er kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Die Sipper-Kaffeetasse ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Tee- oder Kaffeegenuss zu Hause oder auf der Arbeit eignet. Ihr schlichtes Design und die benutzerfreundliche Handhabung machen sie zu einer beliebten Wahl für Kaffeeliebhaber aller Art.", + "en": undefined, + "en-GB": "The Sipper Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Sipper Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Sipper Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", + "en-US": "The Sipper Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Sipper Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Sipper Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "key": "sipper-coffee-mug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Tasse", + "en-GB": "- Includes 1 mug", + "en-US": "- Includes 1 mug", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sipper_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + ], + "sku": "SCM-02", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 4500, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sipper-Kaffeetasse", + "en": undefined, + "en-GB": "Sipper Coffee Mug", + "en-US": "Sipper Coffee Mug", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sipper_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "sipper-kaffeetasse", + "en": undefined, + "en-GB": "sipper-coffee-mug", + "en-US": "sipper-coffee-mug", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SCM-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sipper-Kaffeetasse", - "en": undefined, - "en-GB": "Sipper Coffee Mug", - "en-US": "Sipper Coffee Mug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "sipper-kaffeetasse", - "en": undefined, - "en-GB": "sipper-coffee-mug", - "en-US": "sipper-coffee-mug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a sipperCoffeeMug preset when built for graphql`, () => { const sipperCoffeeMugPresetGraphql = sipperCoffeeMug().buildGraphql(); expect(sipperCoffeeMugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "The Sipper Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Sipper Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Sipper Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", - }, - { - "locale": "en-US", - "value": "The Sipper Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Sipper Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Sipper Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", - }, - { - "locale": "de-DE", - "value": "Die Sipper-Tasse besteht aus Keramik und besticht durch ihr schlichtes Design mit seitlichem Henkel, der ein bequemes Halten und Trinken ermöglicht. Das grundlegende Design ist minimalistisch und funktional. Der Körper des Bechers ist glatt abgerundet und hat eine breite Trinköffnung, die das Eingießen und Trinken von Heißgetränken erleichtert. Der Sipper-Kaffeebecher ist leicht zu reinigen und zu pflegen. Er kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Die Sipper-Kaffeetasse ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Tee- oder Kaffeegenuss zu Hause oder auf der Arbeit eignet. Ihr schlichtes Design und die benutzerfreundliche Handhabung machen sie zu einer beliebten Wahl für Kaffeeliebhaber aller Art.", - }, - ], - "key": "sipper-coffee-mug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 mug","en-US":"- Includes 1 mug","de-DE":"- Enthält 1 Tasse"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3000, - "width": 4500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sipper_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "The Sipper Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Sipper Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Sipper Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", + }, + { + "locale": "en-US", + "value": "The Sipper Coffee Mug is made from ceramic. The design of the mug is intended to make it easy to hold and drink from, with a handle on one side for comfortable grip. The mug is plain, but its basic design is generally simple and functional. The body of the mug is often smooth-sided, with a wide opening that makes it easy to pour and drink coffee. The Sipper Coffee Mug is easy to clean and maintain. It can be washed by hand or in a dishwasher, and should be dried thoroughly to prevent water spots or residue from forming. Overall, the Sipper Coffee Mug is a practical and functional type of drinking vessel that is ideal for enjoying a cup of coffee at home or at work. Its basic design and ease of use make it a popular choice for coffee lovers of all types.", + }, + { + "locale": "de-DE", + "value": "Die Sipper-Tasse besteht aus Keramik und besticht durch ihr schlichtes Design mit seitlichem Henkel, der ein bequemes Halten und Trinken ermöglicht. Das grundlegende Design ist minimalistisch und funktional. Der Körper des Bechers ist glatt abgerundet und hat eine breite Trinköffnung, die das Eingießen und Trinken von Heißgetränken erleichtert. Der Sipper-Kaffeebecher ist leicht zu reinigen und zu pflegen. Er kann von Hand oder in der Spülmaschine gewaschen werden und sollte gründlich getrocknet werden, um Wasserflecken oder Rückstände zu vermeiden. Die Sipper-Kaffeetasse ein praktisches und funktionelles Trinkgefäß, das sich ideal für den Tee- oder Kaffeegenuss zu Hause oder auf der Arbeit eignet. Ihr schlichtes Design und die benutzerfreundliche Handhabung machen sie zu einer beliebten Wahl für Kaffeeliebhaber aller Art.", + }, + ], + "key": "sipper-coffee-mug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 mug","en-US":"- Includes 1 mug","de-DE":"- Enthält 1 Tasse"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 4500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sipper_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SCM-02", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Sipper Coffee Mug", }, + { + "locale": "en-GB", + "value": "Sipper Coffee Mug", + }, + { + "locale": "de-DE", + "value": "Sipper-Kaffeetasse", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "sipper-coffee-mug", + }, + { + "locale": "en-GB", + "value": "sipper-coffee-mug", + }, + { + "locale": "de-DE", + "value": "sipper-kaffeetasse", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SCM-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Sipper Coffee Mug", - }, - { - "locale": "en-GB", - "value": "Sipper Coffee Mug", - }, - { - "locale": "de-DE", - "value": "Sipper-Kaffeetasse", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "sipper-coffee-mug", - }, - { - "locale": "en-GB", - "value": "sipper-coffee-mug", - }, - { - "locale": "de-DE", - "value": "sipper-kaffeetasse", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/slate-armchair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/slate-armchair.spec.ts index 820949ded..0c30a3286 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/slate-armchair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/slate-armchair.spec.ts @@ -5,321 +5,321 @@ describe(`with slateArmchair preset`, () => { it(`should return a slateArmchair preset`, () => { const slateArmchairPreset = slateArmchair().build(); expect(slateArmchairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das minimalistische Sitzmöbel mit Ottomane besticht durch sein schlankes und schlichtes Design, bei dem klare Linien und Funktionalität im Vordergrund stehen. Die Ottomane ist passend zu dem Lounge-Möbel designt und bietet erweiterten Sitzkomfort. Das Polstermöbel ist mit seinen neutralen Farben und schlichten Mustern minimalistisch gehalten. Das Design ist von der modernen Ästhetik inspiriert und legt seinen Fokus auf Schlichtheit und Funktionalität. Das Ergebnis ist ein bequemer und stilvoller Sessel, der sich problemlos in eine Vielzahl von Einrichtungsstilen einfügt.", - "en": undefined, - "en-GB": "A minimalist chair with ottoman is a sleek and simple design that emphasizes clean lines and functionality. The ottoman is a matching piece, providing a place for the user to prop up their feet and relax. The upholstery is minimal, with neutral colors and simple patterns. The design is inspired by mid-century modern aesthetics, with a focus on simplicity and functionality. The result is a comfortable and stylish chair that fits seamlessly into a variety of interior design styles.", - "en-US": "A minimalist chair with ottoman is a sleek and simple design that emphasizes clean lines and functionality. The ottoman is a matching piece, providing a place for the user to prop up their feet and relax. The upholstery is minimal, with neutral colors and simple patterns. The design is inspired by mid-century modern aesthetics, with a focus on simplicity and functionality. The result is a comfortable and stylish chair that fits seamlessly into a variety of interior design styles.", - "fr": undefined, - }, - "key": "slate-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Inklusive Ottomane", - "en-GB": "- Includes ottoman", - "en-US": "- Includes ottoman", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Schiefer grau:#708090", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Slate Gray:#708090", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das minimalistische Sitzmöbel mit Ottomane besticht durch sein schlankes und schlichtes Design, bei dem klare Linien und Funktionalität im Vordergrund stehen. Die Ottomane ist passend zu dem Lounge-Möbel designt und bietet erweiterten Sitzkomfort. Das Polstermöbel ist mit seinen neutralen Farben und schlichten Mustern minimalistisch gehalten. Das Design ist von der modernen Ästhetik inspiriert und legt seinen Fokus auf Schlichtheit und Funktionalität. Das Ergebnis ist ein bequemer und stilvoller Sessel, der sich problemlos in eine Vielzahl von Einrichtungsstilen einfügt.", + "en": undefined, + "en-GB": "A minimalist chair with ottoman is a sleek and simple design that emphasizes clean lines and functionality. The ottoman is a matching piece, providing a place for the user to prop up their feet and relax. The upholstery is minimal, with neutral colors and simple patterns. The design is inspired by mid-century modern aesthetics, with a focus on simplicity and functionality. The result is a comfortable and stylish chair that fits seamlessly into a variety of interior design styles.", + "en-US": "A minimalist chair with ottoman is a sleek and simple design that emphasizes clean lines and functionality. The ottoman is a matching piece, providing a place for the user to prop up their feet and relax. The upholstery is minimal, with neutral colors and simple patterns. The design is inspired by mid-century modern aesthetics, with a focus on simplicity and functionality. The result is a comfortable and stylish chair that fits seamlessly into a variety of interior design styles.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4004, - "w": 5009, + "key": "slate-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Inklusive Ottomane", + "en-GB": "- Includes ottoman", + "en-US": "- Includes ottoman", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schiefer grau:#708090", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Slate Gray:#708090", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4004, + "w": 5009, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "h": 3498, + "w": 5544, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + ], + "sku": "SARM-09", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.1.jpeg", - }, - { - "dimensions": { - "h": 3498, - "w": 5544, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sessel aus Schiefer", + "en": undefined, + "en-GB": "Slate Armchair", + "en-US": "Slate Armchair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "sessel-aus-schiefer", + "en": undefined, + "en-GB": "slate-armchair", + "en-US": "slate-armchair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 59900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SARM-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sessel aus Schiefer", - "en": undefined, - "en-GB": "Slate Armchair", - "en-US": "Slate Armchair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "sessel-aus-schiefer", - "en": undefined, - "en-GB": "slate-armchair", - "en-US": "slate-armchair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a slateArmchair preset when built for graphql`, () => { const slateArmchairPresetGraphql = slateArmchair().buildGraphql(); expect(slateArmchairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "de-DE", - "value": "Das minimalistische Sitzmöbel mit Ottomane besticht durch sein schlankes und schlichtes Design, bei dem klare Linien und Funktionalität im Vordergrund stehen. Die Ottomane ist passend zu dem Lounge-Möbel designt und bietet erweiterten Sitzkomfort. Das Polstermöbel ist mit seinen neutralen Farben und schlichten Mustern minimalistisch gehalten. Das Design ist von der modernen Ästhetik inspiriert und legt seinen Fokus auf Schlichtheit und Funktionalität. Das Ergebnis ist ein bequemer und stilvoller Sessel, der sich problemlos in eine Vielzahl von Einrichtungsstilen einfügt.", - }, - { - "locale": "en-GB", - "value": "A minimalist chair with ottoman is a sleek and simple design that emphasizes clean lines and functionality. The ottoman is a matching piece, providing a place for the user to prop up their feet and relax. The upholstery is minimal, with neutral colors and simple patterns. The design is inspired by mid-century modern aesthetics, with a focus on simplicity and functionality. The result is a comfortable and stylish chair that fits seamlessly into a variety of interior design styles.", - }, - { - "locale": "en-US", - "value": "A minimalist chair with ottoman is a sleek and simple design that emphasizes clean lines and functionality. The ottoman is a matching piece, providing a place for the user to prop up their feet and relax. The upholstery is minimal, with neutral colors and simple patterns. The design is inspired by mid-century modern aesthetics, with a focus on simplicity and functionality. The result is a comfortable and stylish chair that fits seamlessly into a variety of interior design styles.", - }, - ], - "key": "slate-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes ottoman","en-US":"- Includes ottoman","de-DE":"- Inklusive Ottomane"}", - }, - { - "name": "color", - "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Schiefer grau:#708090","en-US":"Slate Gray:#708090"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4004, - "width": 5009, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.1.jpeg", - }, { - "dimensions": { - "height": 3498, - "width": 5544, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "de-DE", + "value": "Das minimalistische Sitzmöbel mit Ottomane besticht durch sein schlankes und schlichtes Design, bei dem klare Linien und Funktionalität im Vordergrund stehen. Die Ottomane ist passend zu dem Lounge-Möbel designt und bietet erweiterten Sitzkomfort. Das Polstermöbel ist mit seinen neutralen Farben und schlichten Mustern minimalistisch gehalten. Das Design ist von der modernen Ästhetik inspiriert und legt seinen Fokus auf Schlichtheit und Funktionalität. Das Ergebnis ist ein bequemer und stilvoller Sessel, der sich problemlos in eine Vielzahl von Einrichtungsstilen einfügt.", + }, + { + "locale": "en-GB", + "value": "A minimalist chair with ottoman is a sleek and simple design that emphasizes clean lines and functionality. The ottoman is a matching piece, providing a place for the user to prop up their feet and relax. The upholstery is minimal, with neutral colors and simple patterns. The design is inspired by mid-century modern aesthetics, with a focus on simplicity and functionality. The result is a comfortable and stylish chair that fits seamlessly into a variety of interior design styles.", + }, + { + "locale": "en-US", + "value": "A minimalist chair with ottoman is a sleek and simple design that emphasizes clean lines and functionality. The ottoman is a matching piece, providing a place for the user to prop up their feet and relax. The upholstery is minimal, with neutral colors and simple patterns. The design is inspired by mid-century modern aesthetics, with a focus on simplicity and functionality. The result is a comfortable and stylish chair that fits seamlessly into a variety of interior design styles.", }, + ], + "key": "slate-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes ottoman","en-US":"- Includes ottoman","de-DE":"- Inklusive Ottomane"}", + }, + { + "name": "color", + "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","de-DE":"Schiefer grau:#708090","en-US":"Slate Gray:#708090"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4004, + "width": 5009, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "height": 3498, + "width": 5544, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Slate_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "59900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 59900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SARM-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Slate Armchair", + }, + { + "locale": "en-GB", + "value": "Slate Armchair", + }, + { + "locale": "de-DE", + "value": "Sessel aus Schiefer", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 59900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "slate-armchair", + }, + { + "locale": "en-GB", + "value": "slate-armchair", + }, + { + "locale": "de-DE", + "value": "sessel-aus-schiefer", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SARM-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Slate Armchair", - }, - { - "locale": "en-GB", - "value": "Slate Armchair", - }, - { - "locale": "de-DE", - "value": "Sessel aus Schiefer", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "slate-armchair", - }, - { - "locale": "en-GB", - "value": "slate-armchair", - }, - { - "locale": "de-DE", - "value": "sessel-aus-schiefer", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl.spec.ts index bd9816dcf..a0a5e35e7 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/small-wooden-bowl.spec.ts @@ -5,369 +5,369 @@ describe(`with smallWoodenBowl preset`, () => { it(`should return a smallWoodenBowl preset`, () => { const smallWoodenBowlPreset = smallWoodenBowl().build(); expect(smallWoodenBowlPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bowls", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Diese Holzschale ist so konzipiert, dass sie kleinere Snacks oder andere Gegenstände fassen kann. Sie eignet sich ideal zum Servieren kleiner Portionen wie Nüsse, Bonbons, Dips oder Saucen. Sie kann aber auch als Dekorationsartikel verwendet werden, da ihr natürliches Material und die einzigartige Textur jeder Umgebung Wärme und Charakter verleihen. Die Schale kann eigenständig oder als Teil eines größeren Sets ihre Wirkung entfalten. Sie kann zudem mit anderen Holz-Accessoires gestylt werden, um einen zusammenhängenden Look zu schaffen. Die Schale ist leicht zu reinigen und zu pflegen und kann mit Wasser und Seife gewaschen oder mit einem feuchten Tuch abgewischt werden. Sie sollte vor Gebrauch gründlich trocknen, um ein Verziehen oder Reißen zu vermeiden. Eine kleine runde Holzschale ist ein vielseitiges und funktionales Geschirr- oder Dekorations-Element, das jeder Umgebung einen Hauch von natürlicher Wärme und Charakter verleiht. Die Schlichtheit und Haltbarkeit machen sie zur perfekten Ergänzung in vielen Küchen und Esszimmern.", - "en": undefined, - "en-GB": "This wooden bowl is designed to hold small servings of food or other small items. It is ideal for serving small portions of food, such as nuts, candies, dips, or sauces. It can also be used as a decorative item, as its natural material and unique texture add warmth and character to any setting. It can be used as a standalone piece or as part of a larger set, and can be styled with other wooden pieces to create a cohesive look. The bowl is easy to clean and maintain, and can be washed with soap and water or wiped clean with a damp cloth. It should be allowed to dry thoroughly before use to prevent warping or cracking. Overall, a small round wooden bowl is a versatile and functional dish that adds a touch of natural warmth and character to any setting. Its simplicity and durability make it a staple in many kitchens and dining rooms.", - "en-US": "This wooden bowl is designed to hold small servings of food or other small items. It is ideal for serving small portions of food, such as nuts, candies, dips, or sauces. It can also be used as a decorative item, as its natural material and unique texture add warmth and character to any setting. It can be used as a standalone piece or as part of a larger set, and can be styled with other wooden pieces to create a cohesive look. The bowl is easy to clean and maintain, and can be washed with soap and water or wiped clean with a damp cloth. It should be allowed to dry thoroughly before use to prevent warping or cracking. Overall, a small round wooden bowl is a versatile and functional dish that adds a touch of natural warmth and character to any setting. Its simplicity and durability make it a staple in many kitchens and dining rooms.", - "fr": undefined, - }, - "key": "small-wooden-bowl", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Enthält 1 Schüssel", - "en-GB": "- Includes 1 bowl", - "en-US": "- Includes 1 bowl", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 3241, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.1.jpeg", - }, - { - "dimensions": { - "h": 3456, - "w": 5184, + "categories": [ + { + "key": "bowls", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Diese Holzschale ist so konzipiert, dass sie kleinere Snacks oder andere Gegenstände fassen kann. Sie eignet sich ideal zum Servieren kleiner Portionen wie Nüsse, Bonbons, Dips oder Saucen. Sie kann aber auch als Dekorationsartikel verwendet werden, da ihr natürliches Material und die einzigartige Textur jeder Umgebung Wärme und Charakter verleihen. Die Schale kann eigenständig oder als Teil eines größeren Sets ihre Wirkung entfalten. Sie kann zudem mit anderen Holz-Accessoires gestylt werden, um einen zusammenhängenden Look zu schaffen. Die Schale ist leicht zu reinigen und zu pflegen und kann mit Wasser und Seife gewaschen oder mit einem feuchten Tuch abgewischt werden. Sie sollte vor Gebrauch gründlich trocknen, um ein Verziehen oder Reißen zu vermeiden. Eine kleine runde Holzschale ist ein vielseitiges und funktionales Geschirr- oder Dekorations-Element, das jeder Umgebung einen Hauch von natürlicher Wärme und Charakter verleiht. Die Schlichtheit und Haltbarkeit machen sie zur perfekten Ergänzung in vielen Küchen und Esszimmern.", + "en": undefined, + "en-GB": "This wooden bowl is designed to hold small servings of food or other small items. It is ideal for serving small portions of food, such as nuts, candies, dips, or sauces. It can also be used as a decorative item, as its natural material and unique texture add warmth and character to any setting. It can be used as a standalone piece or as part of a larger set, and can be styled with other wooden pieces to create a cohesive look. The bowl is easy to clean and maintain, and can be washed with soap and water or wiped clean with a damp cloth. It should be allowed to dry thoroughly before use to prevent warping or cracking. Overall, a small round wooden bowl is a versatile and functional dish that adds a touch of natural warmth and character to any setting. Its simplicity and durability make it a staple in many kitchens and dining rooms.", + "en-US": "This wooden bowl is designed to hold small servings of food or other small items. It is ideal for serving small portions of food, such as nuts, candies, dips, or sauces. It can also be used as a decorative item, as its natural material and unique texture add warmth and character to any setting. It can be used as a standalone piece or as part of a larger set, and can be styled with other wooden pieces to create a cohesive look. The bowl is easy to clean and maintain, and can be washed with soap and water or wiped clean with a damp cloth. It should be allowed to dry thoroughly before use to prevent warping or cracking. Overall, a small round wooden bowl is a versatile and functional dish that adds a touch of natural warmth and character to any setting. Its simplicity and durability make it a staple in many kitchens and dining rooms.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.3.jpeg", - }, - { - "dimensions": { - "h": 4096, - "w": 6144, + "key": "small-wooden-bowl", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Enthält 1 Schüssel", + "en-GB": "- Includes 1 bowl", + "en-US": "- Includes 1 bowl", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 3241, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.1.jpeg", + }, + { + "dimensions": { + "h": 3456, + "w": 5184, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.3.jpeg", + }, + { + "dimensions": { + "h": 4096, + "w": 6144, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.4.jpeg", + }, + { + "dimensions": { + "h": 5133, + "w": 7696, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + ], + "sku": "SWB-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.4.jpeg", - }, - { - "dimensions": { - "h": 5133, - "w": 7696, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Kleine Holzschale", + "en": undefined, + "en-GB": "Small Wooden Bowl", + "en-US": "Small Wooden Bowl", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "kleine-holzschale", + "en": undefined, + "en-GB": "small-wooden-bowl", + "en-US": "small-wooden-bowl", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 399, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SWB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Kleine Holzschale", - "en": undefined, - "en-GB": "Small Wooden Bowl", - "en-US": "Small Wooden Bowl", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "kleine-holzschale", - "en": undefined, - "en-GB": "small-wooden-bowl", - "en-US": "small-wooden-bowl", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a smallWoodenBowl preset when built for graphql`, () => { const smallWoodenBowlPresetGraphql = smallWoodenBowl().buildGraphql(); expect(smallWoodenBowlPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bowls", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-GB", - "value": "This wooden bowl is designed to hold small servings of food or other small items. It is ideal for serving small portions of food, such as nuts, candies, dips, or sauces. It can also be used as a decorative item, as its natural material and unique texture add warmth and character to any setting. It can be used as a standalone piece or as part of a larger set, and can be styled with other wooden pieces to create a cohesive look. The bowl is easy to clean and maintain, and can be washed with soap and water or wiped clean with a damp cloth. It should be allowed to dry thoroughly before use to prevent warping or cracking. Overall, a small round wooden bowl is a versatile and functional dish that adds a touch of natural warmth and character to any setting. Its simplicity and durability make it a staple in many kitchens and dining rooms.", - }, - { - "locale": "en-US", - "value": "This wooden bowl is designed to hold small servings of food or other small items. It is ideal for serving small portions of food, such as nuts, candies, dips, or sauces. It can also be used as a decorative item, as its natural material and unique texture add warmth and character to any setting. It can be used as a standalone piece or as part of a larger set, and can be styled with other wooden pieces to create a cohesive look. The bowl is easy to clean and maintain, and can be washed with soap and water or wiped clean with a damp cloth. It should be allowed to dry thoroughly before use to prevent warping or cracking. Overall, a small round wooden bowl is a versatile and functional dish that adds a touch of natural warmth and character to any setting. Its simplicity and durability make it a staple in many kitchens and dining rooms.", - }, - { - "locale": "de-DE", - "value": "Diese Holzschale ist so konzipiert, dass sie kleinere Snacks oder andere Gegenstände fassen kann. Sie eignet sich ideal zum Servieren kleiner Portionen wie Nüsse, Bonbons, Dips oder Saucen. Sie kann aber auch als Dekorationsartikel verwendet werden, da ihr natürliches Material und die einzigartige Textur jeder Umgebung Wärme und Charakter verleihen. Die Schale kann eigenständig oder als Teil eines größeren Sets ihre Wirkung entfalten. Sie kann zudem mit anderen Holz-Accessoires gestylt werden, um einen zusammenhängenden Look zu schaffen. Die Schale ist leicht zu reinigen und zu pflegen und kann mit Wasser und Seife gewaschen oder mit einem feuchten Tuch abgewischt werden. Sie sollte vor Gebrauch gründlich trocknen, um ein Verziehen oder Reißen zu vermeiden. Eine kleine runde Holzschale ist ein vielseitiges und funktionales Geschirr- oder Dekorations-Element, das jeder Umgebung einen Hauch von natürlicher Wärme und Charakter verleiht. Die Schlichtheit und Haltbarkeit machen sie zur perfekten Ergänzung in vielen Küchen und Esszimmern.", - }, - ], - "key": "small-wooden-bowl", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", - }, - { - "name": "color", - "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 3241, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.1.jpeg", - }, { - "dimensions": { - "height": 3456, - "width": 5184, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.3.jpeg", - }, - { - "dimensions": { - "height": 4096, - "width": 6144, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.4.jpeg", - }, - { - "dimensions": { - "height": 5133, - "width": 7696, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "EUR", + "categories": [ + { + "key": "bowls", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-GB", + "value": "This wooden bowl is designed to hold small servings of food or other small items. It is ideal for serving small portions of food, such as nuts, candies, dips, or sauces. It can also be used as a decorative item, as its natural material and unique texture add warmth and character to any setting. It can be used as a standalone piece or as part of a larger set, and can be styled with other wooden pieces to create a cohesive look. The bowl is easy to clean and maintain, and can be washed with soap and water or wiped clean with a damp cloth. It should be allowed to dry thoroughly before use to prevent warping or cracking. Overall, a small round wooden bowl is a versatile and functional dish that adds a touch of natural warmth and character to any setting. Its simplicity and durability make it a staple in many kitchens and dining rooms.", + }, + { + "locale": "en-US", + "value": "This wooden bowl is designed to hold small servings of food or other small items. It is ideal for serving small portions of food, such as nuts, candies, dips, or sauces. It can also be used as a decorative item, as its natural material and unique texture add warmth and character to any setting. It can be used as a standalone piece or as part of a larger set, and can be styled with other wooden pieces to create a cohesive look. The bowl is easy to clean and maintain, and can be washed with soap and water or wiped clean with a damp cloth. It should be allowed to dry thoroughly before use to prevent warping or cracking. Overall, a small round wooden bowl is a versatile and functional dish that adds a touch of natural warmth and character to any setting. Its simplicity and durability make it a staple in many kitchens and dining rooms.", + }, + { + "locale": "de-DE", + "value": "Diese Holzschale ist so konzipiert, dass sie kleinere Snacks oder andere Gegenstände fassen kann. Sie eignet sich ideal zum Servieren kleiner Portionen wie Nüsse, Bonbons, Dips oder Saucen. Sie kann aber auch als Dekorationsartikel verwendet werden, da ihr natürliches Material und die einzigartige Textur jeder Umgebung Wärme und Charakter verleihen. Die Schale kann eigenständig oder als Teil eines größeren Sets ihre Wirkung entfalten. Sie kann zudem mit anderen Holz-Accessoires gestylt werden, um einen zusammenhängenden Look zu schaffen. Die Schale ist leicht zu reinigen und zu pflegen und kann mit Wasser und Seife gewaschen oder mit einem feuchten Tuch abgewischt werden. Sie sollte vor Gebrauch gründlich trocknen, um ein Verziehen oder Reißen zu vermeiden. Eine kleine runde Holzschale ist ein vielseitiges und funktionales Geschirr- oder Dekorations-Element, das jeder Umgebung einen Hauch von natürlicher Wärme und Charakter verleiht. Die Schlichtheit und Haltbarkeit machen sie zur perfekten Ergänzung in vielen Küchen und Esszimmern.", + }, + ], + "key": "small-wooden-bowl", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 bowl","en-US":"- Includes 1 bowl","de-DE":"- Enthält 1 Schüssel"}", + }, + { + "name": "color", + "value": "{"en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513","en-US":"Saddle Brown:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 3241, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.1.jpeg", + }, + { + "dimensions": { + "height": 3456, + "width": 5184, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.3.jpeg", + }, + { + "dimensions": { + "height": 4096, + "width": 6144, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.4.jpeg", + }, + { + "dimensions": { + "height": 5133, + "width": 7696, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Small_Wooden_Bowl-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "399USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 399, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SWB-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Small Wooden Bowl", + }, + { + "locale": "en-GB", + "value": "Small Wooden Bowl", }, + { + "locale": "de-DE", + "value": "Kleine Holzschale", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 399, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "small-wooden-bowl", + }, + { + "locale": "en-GB", + "value": "small-wooden-bowl", + }, + { + "locale": "de-DE", + "value": "kleine-holzschale", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SWB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Small Wooden Bowl", - }, - { - "locale": "en-GB", - "value": "Small Wooden Bowl", - }, - { - "locale": "de-DE", - "value": "Kleine Holzschale", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "small-wooden-bowl", - }, - { - "locale": "en-GB", - "value": "small-wooden-bowl", - }, - { - "locale": "de-DE", - "value": "kleine-holzschale", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass.spec.ts index 85a5c091d..42e0ad0be 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sparkle-champagne-glass.spec.ts @@ -6,317 +6,317 @@ describe(`with sparkleChampagneGlass preset`, () => { const sparkleChampagneGlassPreset = sparkleChampagneGlass().build(); expect(sparkleChampagneGlassPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein konisches Champagnerglas, auch als Champagnerflöte bekannt, ist eine Art Stielglas, das speziell entwickelt wurde, um das Trinkerlebnis beim Genießen von Champagner oder Sekt zu steigern. Das Glas hat einen hohen, schmalen Kelch, der sich nach oben hin verjüngt, sodass das Aufsteigen die Bläschen an die Oberfläche des Getränks gut beobachtet werden kann. Der hohe, schlanke Stiel des Glases schafft genug Raum zwischen Hand und Getränk und verhindert so, dass der Champagner durch Körperwärme die Temperatur ändert. Der Fuß des Glases ist typischerweise breit und flach und sorgt für Stabilität und Balance. Das Design des konisch zulaufenden Sektglases soll das Aroma und den Geschmack des Getränks verstärken. Der schmale Kelch konzentriert die Bläschen und das Aroma des Champagners und lenkt ihn zur Nase hin. Dies steigert das Aroma und den Geschmack des Champagners. Das konische Sektglas wird typischerweise zum Servieren von Sekt oder anderen Schaumweinen verwendet, kann aber auch für andere kohlensäurehaltige Getränke oder Cocktails verwendet werden. Es ist leicht zu reinigen und zu pflegen und kann von Hand oder in der Spülmaschine gewaschen werden. Das konische Champagnerglas ein stilvolles und elegantes Stielglas, das speziell entwickelt wurde, um dem Genuss von Champagner oder Sekt zu steigern. Sein einzigartiges Design und die Liebe zum Detail machen es zu einer beliebten Wahl für besondere Anlässe und Feiern.", - "en": undefined, - "en-GB": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", - "en-US": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", - "fr": undefined, - }, - "key": "sparkle-champagne-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein konisches Champagnerglas, auch als Champagnerflöte bekannt, ist eine Art Stielglas, das speziell entwickelt wurde, um das Trinkerlebnis beim Genießen von Champagner oder Sekt zu steigern. Das Glas hat einen hohen, schmalen Kelch, der sich nach oben hin verjüngt, sodass das Aufsteigen die Bläschen an die Oberfläche des Getränks gut beobachtet werden kann. Der hohe, schlanke Stiel des Glases schafft genug Raum zwischen Hand und Getränk und verhindert so, dass der Champagner durch Körperwärme die Temperatur ändert. Der Fuß des Glases ist typischerweise breit und flach und sorgt für Stabilität und Balance. Das Design des konisch zulaufenden Sektglases soll das Aroma und den Geschmack des Getränks verstärken. Der schmale Kelch konzentriert die Bläschen und das Aroma des Champagners und lenkt ihn zur Nase hin. Dies steigert das Aroma und den Geschmack des Champagners. Das konische Sektglas wird typischerweise zum Servieren von Sekt oder anderen Schaumweinen verwendet, kann aber auch für andere kohlensäurehaltige Getränke oder Cocktails verwendet werden. Es ist leicht zu reinigen und zu pflegen und kann von Hand oder in der Spülmaschine gewaschen werden. Das konische Champagnerglas ein stilvolles und elegantes Stielglas, das speziell entwickelt wurde, um dem Genuss von Champagner oder Sekt zu steigern. Sein einzigartiges Design und die Liebe zum Detail machen es zu einer beliebten Wahl für besondere Anlässe und Feiern.", + "en": undefined, + "en-GB": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", + "en-US": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + "key": "sparkle-champagne-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sparkle_Champagne_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4599, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 4599, + "currencyCode": "USD", + }, + }, + ], + "sku": "SCG-09", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Champagnerglas", + "en": undefined, + "en-GB": "Sparkle Champagne Glass", + "en-US": "Sparkle Champagne Glass", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sparkle_Champagne_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4599, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "funkelndes-champagnerglas", + "en": undefined, + "en-GB": "sparkle-champagne-glass", + "en-US": "sparkle-champagne-glass", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4599, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 4599, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SCG-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Champagnerglas", - "en": undefined, - "en-GB": "Sparkle Champagne Glass", - "en-US": "Sparkle Champagne Glass", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "funkelndes-champagnerglas", - "en": undefined, - "en-GB": "sparkle-champagne-glass", - "en-US": "sparkle-champagne-glass", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a sparkleChampagneGlass preset when built for graphql`, () => { const sparkleChampagneGlassPresetGraphql = sparkleChampagneGlass().buildGraphql(); expect(sparkleChampagneGlassPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "de-DE", - "value": "Ein konisches Champagnerglas, auch als Champagnerflöte bekannt, ist eine Art Stielglas, das speziell entwickelt wurde, um das Trinkerlebnis beim Genießen von Champagner oder Sekt zu steigern. Das Glas hat einen hohen, schmalen Kelch, der sich nach oben hin verjüngt, sodass das Aufsteigen die Bläschen an die Oberfläche des Getränks gut beobachtet werden kann. Der hohe, schlanke Stiel des Glases schafft genug Raum zwischen Hand und Getränk und verhindert so, dass der Champagner durch Körperwärme die Temperatur ändert. Der Fuß des Glases ist typischerweise breit und flach und sorgt für Stabilität und Balance. Das Design des konisch zulaufenden Sektglases soll das Aroma und den Geschmack des Getränks verstärken. Der schmale Kelch konzentriert die Bläschen und das Aroma des Champagners und lenkt ihn zur Nase hin. Dies steigert das Aroma und den Geschmack des Champagners. Das konische Sektglas wird typischerweise zum Servieren von Sekt oder anderen Schaumweinen verwendet, kann aber auch für andere kohlensäurehaltige Getränke oder Cocktails verwendet werden. Es ist leicht zu reinigen und zu pflegen und kann von Hand oder in der Spülmaschine gewaschen werden. Das konische Champagnerglas ein stilvolles und elegantes Stielglas, das speziell entwickelt wurde, um dem Genuss von Champagner oder Sekt zu steigern. Sein einzigartiges Design und die Liebe zum Detail machen es zu einer beliebten Wahl für besondere Anlässe und Feiern.", - }, - { - "locale": "en-US", - "value": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", - }, - { - "locale": "en-GB", - "value": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", - }, - ], - "key": "sparkle-champagne-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sparkle_Champagne_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4599, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "de-DE", + "value": "Ein konisches Champagnerglas, auch als Champagnerflöte bekannt, ist eine Art Stielglas, das speziell entwickelt wurde, um das Trinkerlebnis beim Genießen von Champagner oder Sekt zu steigern. Das Glas hat einen hohen, schmalen Kelch, der sich nach oben hin verjüngt, sodass das Aufsteigen die Bläschen an die Oberfläche des Getränks gut beobachtet werden kann. Der hohe, schlanke Stiel des Glases schafft genug Raum zwischen Hand und Getränk und verhindert so, dass der Champagner durch Körperwärme die Temperatur ändert. Der Fuß des Glases ist typischerweise breit und flach und sorgt für Stabilität und Balance. Das Design des konisch zulaufenden Sektglases soll das Aroma und den Geschmack des Getränks verstärken. Der schmale Kelch konzentriert die Bläschen und das Aroma des Champagners und lenkt ihn zur Nase hin. Dies steigert das Aroma und den Geschmack des Champagners. Das konische Sektglas wird typischerweise zum Servieren von Sekt oder anderen Schaumweinen verwendet, kann aber auch für andere kohlensäurehaltige Getränke oder Cocktails verwendet werden. Es ist leicht zu reinigen und zu pflegen und kann von Hand oder in der Spülmaschine gewaschen werden. Das konische Champagnerglas ein stilvolles und elegantes Stielglas, das speziell entwickelt wurde, um dem Genuss von Champagner oder Sekt zu steigern. Sein einzigartiges Design und die Liebe zum Detail machen es zu einer beliebten Wahl für besondere Anlässe und Feiern.", + }, + { + "locale": "en-US", + "value": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", + }, + { + "locale": "en-GB", + "value": "A tapered champagne glass, also known as a champagne flute, is a type of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. The glass has a tall, narrow bowl that tapers towards the top, allowing the drinker to see the bubbles rising to the surface of the drink. The tall, slender stem of the glass helps to keep the drinker's hand away from the bowl, preventing the champagne from being warmed by body heat. The base of the glass is typically wide and flat, providing stability and balance. The design of the tapered champagne glass is intended to enhance the aroma and flavor of the drink. The narrow bowl concentrates the bubbles and the aroma of the champagne, directing it towards the drinker's nose. This allows the drinker to fully appreciate the aroma and flavor of the champagne. The tapered champagne glass is typically used for serving champagne or other sparkling wines, but may also be used for other carbonated drinks or cocktails. It is easy to clean and maintain, and can be washed by hand or in a dishwasher. Overall, the tapered champagne glass is a stylish and elegant piece of stemware that is specifically designed to enhance the experience of drinking champagne or sparkling wine. Its unique design and attention to detail make it a popular choice for special occasions and celebrations.", }, + ], + "key": "sparkle-champagne-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sparkle_Champagne_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "4599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 4599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SCG-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4599, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Sparkle Champagne Glass", + }, + { + "locale": "en-GB", + "value": "Sparkle Champagne Glass", + }, + { + "locale": "de-DE", + "value": "Champagnerglas", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 4599, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "sparkle-champagne-glass", + }, + { + "locale": "en-GB", + "value": "sparkle-champagne-glass", + }, + { + "locale": "de-DE", + "value": "funkelndes-champagnerglas", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SCG-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Sparkle Champagne Glass", - }, - { - "locale": "en-GB", - "value": "Sparkle Champagne Glass", - }, - { - "locale": "de-DE", - "value": "Champagnerglas", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "sparkle-champagne-glass", - }, - { - "locale": "en-GB", - "value": "sparkle-champagne-glass", - }, - { - "locale": "de-DE", - "value": "funkelndes-champagnerglas", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster.spec.ts index b9f421469..e0d39ff82 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/square-bamboo-coaster.spec.ts @@ -6,308 +6,308 @@ describe(`with squareBambooCoaster preset`, () => { const squareBambooCoasterPreset = squareBambooCoaster().build(); expect(squareBambooCoasterPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der quadratische Untersetzer aus Bambus besteht aus einer kleinen Matte mit großer Wirkung, da sie Oberflächen vor Wasserflecken oder Beschädigungen durch Trinkgläser oder Tassen schützt. Er besteht aus natürlichem Bambusmaterial und hat eine glatte Oberfläche. Der Untersetzer hat eine quadratische Form mit leicht abgerundeten Kanten und misst etwa 3,5 Zoll x 3,5 Zoll. Seine leichte und strapazierfähige Beschaffenheit macht ihn zu einer beliebten Wahl für legere und formelle Anlässe gleichermaßen.", - "en": undefined, - "en-GB": "A square bamboo coaster is a small mat used to protect surfaces from water stains or damage caused by drinking glasses or mugs. It is made of natural bamboo material and has a smooth surface. The coaster is square in shape with slightly rounded edges, and measures approximately 3.5 inches by 3.5 inches. Its lightweight and durable nature make it a popular choice for casual and formal occasions alike.", - "en-US": "A square bamboo coaster is a small mat used to protect surfaces from water stains or damage caused by drinking glasses or mugs. It is made of natural bamboo material and has a smooth surface. The coaster is square in shape with slightly rounded edges, and measures approximately 3.5 inches by 3.5 inches. Its lightweight and durable nature make it a popular choice for casual and formal occasions alike.", - "fr": undefined, - }, - "key": "square-bamboo-coaster", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Mit einem feuchten Tuch abwischen -- Das Set enthält 4 Untersetzer", - "en-GB": "- Wipe clean with wet cloth -- Set includes 4 coaster", - "en-US": "- Wipe clean with wet cloth -- Set includes 4 coaster", + "categories": [ + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der quadratische Untersetzer aus Bambus besteht aus einer kleinen Matte mit großer Wirkung, da sie Oberflächen vor Wasserflecken oder Beschädigungen durch Trinkgläser oder Tassen schützt. Er besteht aus natürlichem Bambusmaterial und hat eine glatte Oberfläche. Der Untersetzer hat eine quadratische Form mit leicht abgerundeten Kanten und misst etwa 3,5 Zoll x 3,5 Zoll. Seine leichte und strapazierfähige Beschaffenheit macht ihn zu einer beliebten Wahl für legere und formelle Anlässe gleichermaßen.", + "en": undefined, + "en-GB": "A square bamboo coaster is a small mat used to protect surfaces from water stains or damage caused by drinking glasses or mugs. It is made of natural bamboo material and has a smooth surface. The coaster is square in shape with slightly rounded edges, and measures approximately 3.5 inches by 3.5 inches. Its lightweight and durable nature make it a popular choice for casual and formal occasions alike.", + "en-US": "A square bamboo coaster is a small mat used to protect surfaces from water stains or damage caused by drinking glasses or mugs. It is made of natural bamboo material and has a smooth surface. The coaster is square in shape with slightly rounded edges, and measures approximately 3.5 inches by 3.5 inches. Its lightweight and durable nature make it a popular choice for casual and formal occasions alike.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weizen:#f5deb3", - "en-GB": "Wheat:#f5deb3", - "en-US": "Wheat:#f5deb3", + "key": "square-bamboo-coaster", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Mit einem feuchten Tuch abwischen + - Das Set enthält 4 Untersetzer", + "en-GB": "- Wipe clean with wet cloth + - Set includes 4 coaster", + "en-US": "- Wipe clean with wet cloth + - Set includes 4 coaster", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weizen:#f5deb3", + "en-GB": "Wheat:#f5deb3", + "en-US": "Wheat:#f5deb3", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2912, + "w": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Square_Bamboo_Coaster-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + ], + "sku": "BAMB-084", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2912, - "w": 2912, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Quadratischer Untersetzer aus Bambus", + "en": undefined, + "en-GB": "Square Bamboo Coaster", + "en-US": "Square Bamboo Coaster", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Square_Bamboo_Coaster-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "quadratischer-untersetzer-aus-bambus", + "en": undefined, + "en-GB": "square-bamboo-coaster", + "en-US": "square-bamboo-coaster", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1099, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BAMB-084", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Quadratischer Untersetzer aus Bambus", - "en": undefined, - "en-GB": "Square Bamboo Coaster", - "en-US": "Square Bamboo Coaster", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "quadratischer-untersetzer-aus-bambus", - "en": undefined, - "en-GB": "square-bamboo-coaster", - "en-US": "square-bamboo-coaster", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a squareBambooCoaster preset when built for graphql`, () => { const squareBambooCoasterPresetGraphql = squareBambooCoaster().buildGraphql(); expect(squareBambooCoasterPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "de-DE", - "value": "Der quadratische Untersetzer aus Bambus besteht aus einer kleinen Matte mit großer Wirkung, da sie Oberflächen vor Wasserflecken oder Beschädigungen durch Trinkgläser oder Tassen schützt. Er besteht aus natürlichem Bambusmaterial und hat eine glatte Oberfläche. Der Untersetzer hat eine quadratische Form mit leicht abgerundeten Kanten und misst etwa 3,5 Zoll x 3,5 Zoll. Seine leichte und strapazierfähige Beschaffenheit macht ihn zu einer beliebten Wahl für legere und formelle Anlässe gleichermaßen.", - }, - { - "locale": "en-GB", - "value": "A square bamboo coaster is a small mat used to protect surfaces from water stains or damage caused by drinking glasses or mugs. It is made of natural bamboo material and has a smooth surface. The coaster is square in shape with slightly rounded edges, and measures approximately 3.5 inches by 3.5 inches. Its lightweight and durable nature make it a popular choice for casual and formal occasions alike.", - }, - { - "locale": "en-US", - "value": "A square bamboo coaster is a small mat used to protect surfaces from water stains or damage caused by drinking glasses or mugs. It is made of natural bamboo material and has a smooth surface. The coaster is square in shape with slightly rounded edges, and measures approximately 3.5 inches by 3.5 inches. Its lightweight and durable nature make it a popular choice for casual and formal occasions alike.", - }, - ], - "key": "square-bamboo-coaster", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Wipe clean with wet cloth\\n- Set includes 4 coaster","en-US":"- Wipe clean with wet cloth\\n- Set includes 4 coaster","de-DE":"- Mit einem feuchten Tuch abwischen\\n- Das Set enthält 4 Untersetzer"}", - }, - { - "name": "color", - "value": "{"en-GB":"Wheat:#f5deb3","de-DE":"Weizen:#f5deb3","en-US":"Wheat:#f5deb3"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2912, - "width": 2912, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Square_Bamboo_Coaster-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "EUR", + "categories": [ + { + "key": "kitchen", + "typeId": "category", }, + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "de-DE", + "value": "Der quadratische Untersetzer aus Bambus besteht aus einer kleinen Matte mit großer Wirkung, da sie Oberflächen vor Wasserflecken oder Beschädigungen durch Trinkgläser oder Tassen schützt. Er besteht aus natürlichem Bambusmaterial und hat eine glatte Oberfläche. Der Untersetzer hat eine quadratische Form mit leicht abgerundeten Kanten und misst etwa 3,5 Zoll x 3,5 Zoll. Seine leichte und strapazierfähige Beschaffenheit macht ihn zu einer beliebten Wahl für legere und formelle Anlässe gleichermaßen.", + }, + { + "locale": "en-GB", + "value": "A square bamboo coaster is a small mat used to protect surfaces from water stains or damage caused by drinking glasses or mugs. It is made of natural bamboo material and has a smooth surface. The coaster is square in shape with slightly rounded edges, and measures approximately 3.5 inches by 3.5 inches. Its lightweight and durable nature make it a popular choice for casual and formal occasions alike.", + }, + { + "locale": "en-US", + "value": "A square bamboo coaster is a small mat used to protect surfaces from water stains or damage caused by drinking glasses or mugs. It is made of natural bamboo material and has a smooth surface. The coaster is square in shape with slightly rounded edges, and measures approximately 3.5 inches by 3.5 inches. Its lightweight and durable nature make it a popular choice for casual and formal occasions alike.", + }, + ], + "key": "square-bamboo-coaster", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Wipe clean with wet cloth\\n- Set includes 4 coaster","en-US":"- Wipe clean with wet cloth\\n- Set includes 4 coaster","de-DE":"- Mit einem feuchten Tuch abwischen\\n- Das Set enthält 4 Untersetzer"}", + }, + { + "name": "color", + "value": "{"en-GB":"Wheat:#f5deb3","de-DE":"Weizen:#f5deb3","en-US":"Wheat:#f5deb3"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2912, + "width": 2912, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Square_Bamboo_Coaster-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "BAMB-084", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Square Bamboo Coaster", }, + { + "locale": "en-GB", + "value": "Square Bamboo Coaster", + }, + { + "locale": "de-DE", + "value": "Quadratischer Untersetzer aus Bambus", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1099, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "square-bamboo-coaster", + }, + { + "locale": "en-GB", + "value": "square-bamboo-coaster", + }, + { + "locale": "de-DE", + "value": "quadratischer-untersetzer-aus-bambus", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "BAMB-084", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Square Bamboo Coaster", - }, - { - "locale": "en-GB", - "value": "Square Bamboo Coaster", - }, - { - "locale": "de-DE", - "value": "Quadratischer Untersetzer aus Bambus", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "square-bamboo-coaster", - }, - { - "locale": "en-GB", - "value": "square-bamboo-coaster", - }, - { - "locale": "de-DE", - "value": "quadratischer-untersetzer-aus-bambus", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask.spec.ts index e7a091a3d..12ba2e3ee 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/steel-hip-flask.spec.ts @@ -5,311 +5,343 @@ describe(`with steelHipFlask preset`, () => { it(`should return a steelHipFlask preset`, () => { const steelHipFlaskPreset = steelHipFlask().build(); expect(steelHipFlaskPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der Flachmann aus Stahl ist ein kleiner, gebogener und flacher Behälter aus Edelstahl. Er ist so konzipiert, dass er eine kleine Menge alkoholischer Getränke aufnehmen und transportieren kann, normalerweise umfasst er etwa 6 bis 10 Unzen. Der Flachmann hat einen Scharnier- oder Schraubdeckel, der ein einfaches Öffnen und Schließen ermöglicht, sowie eine kleine Öffnung zum Ausgießen oder Trinken des Inhalts. Die Außenseite des Trinkbehälters ist glatt. Flachmänner werden oft in einer Tasche oder Handtasche getragen und eignen sich ideal für den diskreten Konsum von Alkohol unterwegs.", - "en": undefined, - "en-GB": "A steel hip flask is a small, curved, and flat container made of stainless steel. It is designed to hold and transport a small amount of alcoholic beverage, usually around 6-10 ounces. The flask has a hinged or screw-top lid that allows for easy opening and closing, as well as a small opening for pouring or drinking the contents. The exterior of the flask is smooth. Hip flasks are often carried in a pocket or purse for discreet consumption of alcohol while on-the-go.", - "en-US": "A steel hip flask is a small, curved, and flat container made of stainless steel. It is designed to hold and transport a small amount of alcoholic beverage, usually around 6-10 ounces. The flask has a hinged or screw-top lid that allows for easy opening and closing, as well as a small opening for pouring or drinking the contents. The exterior of the flask is smooth. Hip flasks are often carried in a pocket or purse for discreet consumption of alcohol while on-the-go.", - "fr": undefined, - }, - "key": "steel-hip-flask", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl", - "en-GB": "- Stainless steel", - "en-US": "- Stainless steel", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der Flachmann aus Stahl ist ein kleiner, gebogener und flacher Behälter aus Edelstahl. Er ist so konzipiert, dass er eine kleine Menge alkoholischer Getränke aufnehmen und transportieren kann, normalerweise umfasst er etwa 6 bis 10 Unzen. Der Flachmann hat einen Scharnier- oder Schraubdeckel, der ein einfaches Öffnen und Schließen ermöglicht, sowie eine kleine Öffnung zum Ausgießen oder Trinken des Inhalts. Die Außenseite des Trinkbehälters ist glatt. Flachmänner werden oft in einer Tasche oder Handtasche getragen und eignen sich ideal für den diskreten Konsum von Alkohol unterwegs.", + "en": undefined, + "en-GB": "A steel hip flask is a small, curved, and flat container made of stainless steel. It is designed to hold and transport a small amount of alcoholic beverage, usually around 6-10 ounces. The flask has a hinged or screw-top lid that allows for easy opening and closing, as well as a small opening for pouring or drinking the contents. The exterior of the flask is smooth. Hip flasks are often carried in a pocket or purse for discreet consumption of alcohol while on-the-go.", + "en-US": "A steel hip flask is a small, curved, and flat container made of stainless steel. It is designed to hold and transport a small amount of alcoholic beverage, usually around 6-10 ounces. The flask has a hinged or screw-top lid that allows for easy opening and closing, as well as a small opening for pouring or drinking the contents. The exterior of the flask is smooth. Hip flasks are often carried in a pocket or purse for discreet consumption of alcohol while on-the-go.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "key": "steel-hip-flask", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl", + "en-GB": "- Stainless steel", + "en-US": "- Stainless steel", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 6580, + "w": 5006, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Steel_Hip_Flask-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + ], + "sku": "FLAS-094", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 6580, - "w": 5006, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Flachmann aus Stahl", + "en": undefined, + "en-GB": "Steel Hip Flask", + "en-US": "Steel Hip Flask", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Steel_Hip_Flask-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "flachmann-aus-stahl", + "en": undefined, + "en-GB": "steel-hip-flask", + "en-US": "steel-hip-flask", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "GBP", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 599, - "currencyCode": "USD", - }, - }, - ], - "sku": "FLAS-094", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Flachmann aus Stahl", - "en": undefined, - "en-GB": "Steel Hip Flask", - "en-US": "Steel Hip Flask", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "flachmann-aus-stahl", - "en": undefined, - "en-GB": "steel-hip-flask", - "en-US": "steel-hip-flask", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a steelHipFlask preset when built for graphql`, () => { const steelHipFlaskPresetGraphql = steelHipFlask().buildGraphql(); expect(steelHipFlaskPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A steel hip flask is a small, curved, and flat container made of stainless steel. It is designed to hold and transport a small amount of alcoholic beverage, usually around 6-10 ounces. The flask has a hinged or screw-top lid that allows for easy opening and closing, as well as a small opening for pouring or drinking the contents. The exterior of the flask is smooth. Hip flasks are often carried in a pocket or purse for discreet consumption of alcohol while on-the-go.", - }, - { - "locale": "de-DE", - "value": "Der Flachmann aus Stahl ist ein kleiner, gebogener und flacher Behälter aus Edelstahl. Er ist so konzipiert, dass er eine kleine Menge alkoholischer Getränke aufnehmen und transportieren kann, normalerweise umfasst er etwa 6 bis 10 Unzen. Der Flachmann hat einen Scharnier- oder Schraubdeckel, der ein einfaches Öffnen und Schließen ermöglicht, sowie eine kleine Öffnung zum Ausgießen oder Trinken des Inhalts. Die Außenseite des Trinkbehälters ist glatt. Flachmänner werden oft in einer Tasche oder Handtasche getragen und eignen sich ideal für den diskreten Konsum von Alkohol unterwegs.", - }, - { - "locale": "en-GB", - "value": "A steel hip flask is a small, curved, and flat container made of stainless steel. It is designed to hold and transport a small amount of alcoholic beverage, usually around 6-10 ounces. The flask has a hinged or screw-top lid that allows for easy opening and closing, as well as a small opening for pouring or drinking the contents. The exterior of the flask is smooth. Hip flasks are often carried in a pocket or purse for discreet consumption of alcohol while on-the-go.", - }, - ], - "key": "steel-hip-flask", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel","en-US":"- Stainless steel","de-DE":"- Edelstahl"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 6580, - "width": 5006, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Steel_Hip_Flask-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "EUR", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A steel hip flask is a small, curved, and flat container made of stainless steel. It is designed to hold and transport a small amount of alcoholic beverage, usually around 6-10 ounces. The flask has a hinged or screw-top lid that allows for easy opening and closing, as well as a small opening for pouring or drinking the contents. The exterior of the flask is smooth. Hip flasks are often carried in a pocket or purse for discreet consumption of alcohol while on-the-go.", + }, + { + "locale": "de-DE", + "value": "Der Flachmann aus Stahl ist ein kleiner, gebogener und flacher Behälter aus Edelstahl. Er ist so konzipiert, dass er eine kleine Menge alkoholischer Getränke aufnehmen und transportieren kann, normalerweise umfasst er etwa 6 bis 10 Unzen. Der Flachmann hat einen Scharnier- oder Schraubdeckel, der ein einfaches Öffnen und Schließen ermöglicht, sowie eine kleine Öffnung zum Ausgießen oder Trinken des Inhalts. Die Außenseite des Trinkbehälters ist glatt. Flachmänner werden oft in einer Tasche oder Handtasche getragen und eignen sich ideal für den diskreten Konsum von Alkohol unterwegs.", + }, + { + "locale": "en-GB", + "value": "A steel hip flask is a small, curved, and flat container made of stainless steel. It is designed to hold and transport a small amount of alcoholic beverage, usually around 6-10 ounces. The flask has a hinged or screw-top lid that allows for easy opening and closing, as well as a small opening for pouring or drinking the contents. The exterior of the flask is smooth. Hip flasks are often carried in a pocket or purse for discreet consumption of alcohol while on-the-go.", }, + ], + "key": "steel-hip-flask", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel","en-US":"- Stainless steel","de-DE":"- Edelstahl"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0","en-US":"Silver:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 6580, + "width": 5006, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Steel_Hip_Flask-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "599USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 599, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "FLAS-094", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Steel Hip Flask", + }, + { + "locale": "en-GB", + "value": "Steel Hip Flask", + }, + { + "locale": "de-DE", + "value": "Flachmann aus Stahl", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 599, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "steel-hip-flask", + }, + { + "locale": "en-GB", + "value": "steel-hip-flask", + }, + { + "locale": "de-DE", + "value": "flachmann-aus-stahl", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "FLAS-094", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Steel Hip Flask", - }, - { - "locale": "en-GB", - "value": "Steel Hip Flask", - }, - { - "locale": "de-DE", - "value": "Flachmann aus Stahl", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "steel-hip-flask", - }, - { - "locale": "en-GB", - "value": "steel-hip-flask", - }, - { - "locale": "de-DE", - "value": "flachmann-aus-stahl", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray.spec.ts index 851dd2df4..16178656a 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/stone-serving-tray.spec.ts @@ -5,329 +5,329 @@ describe(`with stoneServingTray preset`, () => { it(`should return a stoneServingTray preset`, () => { const stoneServingTrayPreset = stoneServingTray().build(); expect(stoneServingTrayPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "cheese-trays", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "bakeware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses Serviertablett besteht aus Naturstein und wurde zum Servieren und Präsentieren von Speisen designt. Das Tablett besteht aus stabilem Schiefer. Das Gewicht und die Textur des Steinmaterials verleihen dem Tablett Stabilität und ein Gefühl von Luxus. Sie machen es darüber hinaus zum idealen Utensil zum Servieren einer Vielzahl von Speisen, wie zum Beispiel Käse, Obst oder Brot. Das Natursteinmaterial des Tabletts macht es zudem zu einer ausgezeichneten Wahl für den Einsatz im Freien, z. B. bei einem Picknick oder beim Grillen. Ein Serviertablett aus Stein ist leicht zu reinigen und zu pflegen. Es kann mit Wasser und Seife gewaschen werden und sollte nach Gebrauch gründlich getrocknet werden, um das Eindringen von Feuchtigkeit ins Innere zu vermeiden. Ein Serviertablett aus Stein ist ein funktionales und ästhetisch ansprechendes Element, das jeder Umgebung einen Hauch von natürlicher Eleganz verleiht. Seine Haltbarkeit, Stabilität und sein einzigartiges Design machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen und Getränken.", - "en": undefined, - "en-GB": "The Stone Serving Tray is made of natural stone that is designed to serve and display food. The tray is made of sturdy slate. The weight and texture of the stone material provide stability and a sense of luxury to the tray, making it ideal for serving a variety of items, including cheese, fruits or bread. The tray's natural stone material also makes it an excellent choice for use in outdoor settings, such as a picnic or barbecue. A stone serving tray is easy to clean and maintain. It can be washed with soap and water, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a stone serving tray is a functional and aesthetically pleasing item that adds a touch of natural elegance to any setting. Its durability, stability and unique design make it a popular choice for serving and displaying food and beverages.", - "en-US": "The Stone Serving Tray is made of natural stone that is designed to serve and display food. The tray is made of sturdy slate. The weight and texture of the stone material provide stability and a sense of luxury to the tray, making it ideal for serving a variety of items, including cheese, fruits or bread. The tray's natural stone material also makes it an excellent choice for use in outdoor settings, such as a picnic or barbecue. A stone serving tray is easy to clean and maintain. It can be washed with soap and water, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a stone serving tray is a functional and aesthetically pleasing item that adds a touch of natural elegance to any setting. Its durability, stability and unique design make it a popular choice for serving and displaying food and beverages.", - "fr": undefined, - }, - "key": "stone-serving-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Zerbrechlich", - "en-GB": "- Fragile", - "en-US": "- Fragile", + "categories": [ + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "cheese-trays", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "bakeware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses Serviertablett besteht aus Naturstein und wurde zum Servieren und Präsentieren von Speisen designt. Das Tablett besteht aus stabilem Schiefer. Das Gewicht und die Textur des Steinmaterials verleihen dem Tablett Stabilität und ein Gefühl von Luxus. Sie machen es darüber hinaus zum idealen Utensil zum Servieren einer Vielzahl von Speisen, wie zum Beispiel Käse, Obst oder Brot. Das Natursteinmaterial des Tabletts macht es zudem zu einer ausgezeichneten Wahl für den Einsatz im Freien, z. B. bei einem Picknick oder beim Grillen. Ein Serviertablett aus Stein ist leicht zu reinigen und zu pflegen. Es kann mit Wasser und Seife gewaschen werden und sollte nach Gebrauch gründlich getrocknet werden, um das Eindringen von Feuchtigkeit ins Innere zu vermeiden. Ein Serviertablett aus Stein ist ein funktionales und ästhetisch ansprechendes Element, das jeder Umgebung einen Hauch von natürlicher Eleganz verleiht. Seine Haltbarkeit, Stabilität und sein einzigartiges Design machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen und Getränken.", + "en": undefined, + "en-GB": "The Stone Serving Tray is made of natural stone that is designed to serve and display food. The tray is made of sturdy slate. The weight and texture of the stone material provide stability and a sense of luxury to the tray, making it ideal for serving a variety of items, including cheese, fruits or bread. The tray's natural stone material also makes it an excellent choice for use in outdoor settings, such as a picnic or barbecue. A stone serving tray is easy to clean and maintain. It can be washed with soap and water, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a stone serving tray is a functional and aesthetically pleasing item that adds a touch of natural elegance to any setting. Its durability, stability and unique design make it a popular choice for serving and displaying food and beverages.", + "en-US": "The Stone Serving Tray is made of natural stone that is designed to serve and display food. The tray is made of sturdy slate. The weight and texture of the stone material provide stability and a sense of luxury to the tray, making it ideal for serving a variety of items, including cheese, fruits or bread. The tray's natural stone material also makes it an excellent choice for use in outdoor settings, such as a picnic or barbecue. A stone serving tray is easy to clean and maintain. It can be washed with soap and water, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a stone serving tray is a functional and aesthetically pleasing item that adds a touch of natural elegance to any setting. Its durability, stability and unique design make it a popular choice for serving and displaying food and beverages.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Schiefer grau:#708090", - "en-GB": "Dark Slate Grey:#2F4F4F", - "en-US": "Slate Gray:#708090", + "key": "stone-serving-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Zerbrechlich", + "en-GB": "- Fragile", + "en-US": "- Fragile", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Schiefer grau:#708090", + "en-GB": "Dark Slate Grey:#2F4F4F", + "en-US": "Slate Gray:#708090", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2358, + "w": 4125, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stone_Serving_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + ], + "sku": "SST-02", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2358, - "w": 4125, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Serviertablett aus Stein", + "en": undefined, + "en-GB": "Stone Serving Tray", + "en-US": "Stone Serving Tray", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stone_Serving_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "serviertablett-aus-stein", + "en": undefined, + "en-GB": "stone-serving-tray", + "en-US": "stone-serving-tray", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 2499, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SST-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Serviertablett aus Stein", - "en": undefined, - "en-GB": "Stone Serving Tray", - "en-US": "Stone Serving Tray", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "serviertablett-aus-stein", - "en": undefined, - "en-GB": "stone-serving-tray", - "en-US": "stone-serving-tray", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a stoneServingTray preset when built for graphql`, () => { const stoneServingTrayPresetGraphql = stoneServingTray().buildGraphql(); expect(stoneServingTrayPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "cheese-trays", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "bakeware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "The Stone Serving Tray is made of natural stone that is designed to serve and display food. The tray is made of sturdy slate. The weight and texture of the stone material provide stability and a sense of luxury to the tray, making it ideal for serving a variety of items, including cheese, fruits or bread. The tray's natural stone material also makes it an excellent choice for use in outdoor settings, such as a picnic or barbecue. A stone serving tray is easy to clean and maintain. It can be washed with soap and water, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a stone serving tray is a functional and aesthetically pleasing item that adds a touch of natural elegance to any setting. Its durability, stability and unique design make it a popular choice for serving and displaying food and beverages.", - }, - { - "locale": "de-DE", - "value": "Dieses Serviertablett besteht aus Naturstein und wurde zum Servieren und Präsentieren von Speisen designt. Das Tablett besteht aus stabilem Schiefer. Das Gewicht und die Textur des Steinmaterials verleihen dem Tablett Stabilität und ein Gefühl von Luxus. Sie machen es darüber hinaus zum idealen Utensil zum Servieren einer Vielzahl von Speisen, wie zum Beispiel Käse, Obst oder Brot. Das Natursteinmaterial des Tabletts macht es zudem zu einer ausgezeichneten Wahl für den Einsatz im Freien, z. B. bei einem Picknick oder beim Grillen. Ein Serviertablett aus Stein ist leicht zu reinigen und zu pflegen. Es kann mit Wasser und Seife gewaschen werden und sollte nach Gebrauch gründlich getrocknet werden, um das Eindringen von Feuchtigkeit ins Innere zu vermeiden. Ein Serviertablett aus Stein ist ein funktionales und ästhetisch ansprechendes Element, das jeder Umgebung einen Hauch von natürlicher Eleganz verleiht. Seine Haltbarkeit, Stabilität und sein einzigartiges Design machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen und Getränken.", - }, - { - "locale": "en-GB", - "value": "The Stone Serving Tray is made of natural stone that is designed to serve and display food. The tray is made of sturdy slate. The weight and texture of the stone material provide stability and a sense of luxury to the tray, making it ideal for serving a variety of items, including cheese, fruits or bread. The tray's natural stone material also makes it an excellent choice for use in outdoor settings, such as a picnic or barbecue. A stone serving tray is easy to clean and maintain. It can be washed with soap and water, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a stone serving tray is a functional and aesthetically pleasing item that adds a touch of natural elegance to any setting. Its durability, stability and unique design make it a popular choice for serving and displaying food and beverages.", - }, - ], - "key": "stone-serving-tray", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Fragile","en-US":"- Fragile","de-DE":"- Zerbrechlich"}", - }, - { - "name": "color", - "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","en-US":"Slate Gray:#708090","de-DE":"Schiefer grau:#708090"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2358, - "width": 4125, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stone_Serving_Tray-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "EUR", + "categories": [ + { + "key": "kitchen", + "typeId": "category", }, + { + "key": "serveware", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "cheese-trays", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "bakeware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "The Stone Serving Tray is made of natural stone that is designed to serve and display food. The tray is made of sturdy slate. The weight and texture of the stone material provide stability and a sense of luxury to the tray, making it ideal for serving a variety of items, including cheese, fruits or bread. The tray's natural stone material also makes it an excellent choice for use in outdoor settings, such as a picnic or barbecue. A stone serving tray is easy to clean and maintain. It can be washed with soap and water, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a stone serving tray is a functional and aesthetically pleasing item that adds a touch of natural elegance to any setting. Its durability, stability and unique design make it a popular choice for serving and displaying food and beverages.", + }, + { + "locale": "de-DE", + "value": "Dieses Serviertablett besteht aus Naturstein und wurde zum Servieren und Präsentieren von Speisen designt. Das Tablett besteht aus stabilem Schiefer. Das Gewicht und die Textur des Steinmaterials verleihen dem Tablett Stabilität und ein Gefühl von Luxus. Sie machen es darüber hinaus zum idealen Utensil zum Servieren einer Vielzahl von Speisen, wie zum Beispiel Käse, Obst oder Brot. Das Natursteinmaterial des Tabletts macht es zudem zu einer ausgezeichneten Wahl für den Einsatz im Freien, z. B. bei einem Picknick oder beim Grillen. Ein Serviertablett aus Stein ist leicht zu reinigen und zu pflegen. Es kann mit Wasser und Seife gewaschen werden und sollte nach Gebrauch gründlich getrocknet werden, um das Eindringen von Feuchtigkeit ins Innere zu vermeiden. Ein Serviertablett aus Stein ist ein funktionales und ästhetisch ansprechendes Element, das jeder Umgebung einen Hauch von natürlicher Eleganz verleiht. Seine Haltbarkeit, Stabilität und sein einzigartiges Design machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen und Getränken.", + }, + { + "locale": "en-GB", + "value": "The Stone Serving Tray is made of natural stone that is designed to serve and display food. The tray is made of sturdy slate. The weight and texture of the stone material provide stability and a sense of luxury to the tray, making it ideal for serving a variety of items, including cheese, fruits or bread. The tray's natural stone material also makes it an excellent choice for use in outdoor settings, such as a picnic or barbecue. A stone serving tray is easy to clean and maintain. It can be washed with soap and water, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a stone serving tray is a functional and aesthetically pleasing item that adds a touch of natural elegance to any setting. Its durability, stability and unique design make it a popular choice for serving and displaying food and beverages.", + }, + ], + "key": "stone-serving-tray", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Fragile","en-US":"- Fragile","de-DE":"- Zerbrechlich"}", + }, + { + "name": "color", + "value": "{"en-GB":"Dark Slate Grey:#2F4F4F","en-US":"Slate Gray:#708090","de-DE":"Schiefer grau:#708090"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2358, + "width": 4125, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stone_Serving_Tray-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "2499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 2499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SST-02", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Stone Serving Tray", + }, + { + "locale": "en-GB", + "value": "Stone Serving Tray", + }, + { + "locale": "de-DE", + "value": "Serviertablett aus Stein", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 2499, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "stone-serving-tray", + }, + { + "locale": "en-GB", + "value": "stone-serving-tray", + }, + { + "locale": "de-DE", + "value": "serviertablett-aus-stein", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SST-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Stone Serving Tray", - }, - { - "locale": "en-GB", - "value": "Stone Serving Tray", - }, - { - "locale": "de-DE", - "value": "Serviertablett aus Stein", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "stone-serving-tray", - }, - { - "locale": "en-GB", - "value": "stone-serving-tray", - }, - { - "locale": "de-DE", - "value": "serviertablett-aus-stein", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass.spec.ts index 7cdad9014..cedfddfb5 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/stout-beer-glass.spec.ts @@ -5,317 +5,317 @@ describe(`with stoutBeerGlass preset`, () => { it(`should return a stoutBeerGlass preset`, () => { const stoutBeerGlassPreset = stoutBeerGlass().build(); expect(stoutBeerGlassPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Ein Stout-Bierglas, auch als "Pintglas" bekannt, ist ein Trinkglas, das speziell zum Servieren und Genießen von Starkbieren entwickelt wurde. Es hat eine kurze, breite Form mit einem dicken, schweren Boden, der für Stabilität und Gleichgewicht sorgt. Das Design des Stout-Bierglases unterstützt das Trinkerlebnis, indem es die volle Geschmacks- und Aromenvielfalt des Bieres zur Geltung bringt. Die breite Öffnung des Glases lässt die Farbe und Klarheit des Bieres erkennen, während der schwere Boden dazu beiträgt, dass das Bier nicht verschüttet oder umkippt. Ein Pintglas ist ein klassisches und zeitloses Trinkglas, das sich ideal eignet, um den reichen Geschmack und das Aroma feiner Stout-Biere zu genießen. Sein einfaches aber elegantes Design macht es zu einer beliebten Wahl für Bierliebhaber und Gelegenheitsgeniesser gleichermaßen.", - "en": undefined, - "en-GB": "A stout beer glass, also known as a "pint glass," is a type of drinking glass that is designed specifically for serving and enjoying stout beers. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the stout beer glass is intended to enhance the drinking experience by allowing the full range of flavors and aromas of the beer to be appreciated. The wide opening of the glass allows the drinker to fully appreciate the color and clarity of the beer, while the heavy base helps to keep the beer from spilling or tipping over. Overall, a stout beer glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine stout beers. Its simple yet elegant design makes it a popular choice for beer lovers and casual drinkers alike.", - "en-US": "A stout beer glass, also known as a "pint glass," is a type of drinking glass that is designed specifically for serving and enjoying stout beers. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the stout beer glass is intended to enhance the drinking experience by allowing the full range of flavors and aromas of the beer to be appreciated. The wide opening of the glass allows the drinker to fully appreciate the color and clarity of the beer, while the heavy base helps to keep the beer from spilling or tipping over. Overall, a stout beer glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine stout beers. Its simple yet elegant design makes it a popular choice for beer lovers and casual drinkers alike.", - "fr": undefined, - }, - "key": "stout-beer-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Das Set enthält 6 Gläser", - "en-GB": "- Set includes 6 glasses", - "en-US": "- Set includes 6 glasses", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Ein Stout-Bierglas, auch als "Pintglas" bekannt, ist ein Trinkglas, das speziell zum Servieren und Genießen von Starkbieren entwickelt wurde. Es hat eine kurze, breite Form mit einem dicken, schweren Boden, der für Stabilität und Gleichgewicht sorgt. Das Design des Stout-Bierglases unterstützt das Trinkerlebnis, indem es die volle Geschmacks- und Aromenvielfalt des Bieres zur Geltung bringt. Die breite Öffnung des Glases lässt die Farbe und Klarheit des Bieres erkennen, während der schwere Boden dazu beiträgt, dass das Bier nicht verschüttet oder umkippt. Ein Pintglas ist ein klassisches und zeitloses Trinkglas, das sich ideal eignet, um den reichen Geschmack und das Aroma feiner Stout-Biere zu genießen. Sein einfaches aber elegantes Design macht es zu einer beliebten Wahl für Bierliebhaber und Gelegenheitsgeniesser gleichermaßen.", + "en": undefined, + "en-GB": "A stout beer glass, also known as a "pint glass," is a type of drinking glass that is designed specifically for serving and enjoying stout beers. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the stout beer glass is intended to enhance the drinking experience by allowing the full range of flavors and aromas of the beer to be appreciated. The wide opening of the glass allows the drinker to fully appreciate the color and clarity of the beer, while the heavy base helps to keep the beer from spilling or tipping over. Overall, a stout beer glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine stout beers. Its simple yet elegant design makes it a popular choice for beer lovers and casual drinkers alike.", + "en-US": "A stout beer glass, also known as a "pint glass," is a type of drinking glass that is designed specifically for serving and enjoying stout beers. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the stout beer glass is intended to enhance the drinking experience by allowing the full range of flavors and aromas of the beer to be appreciated. The wide opening of the glass allows the drinker to fully appreciate the color and clarity of the beer, while the heavy base helps to keep the beer from spilling or tipping over. Overall, a stout beer glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine stout beers. Its simple yet elegant design makes it a popular choice for beer lovers and casual drinkers alike.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + "key": "stout-beer-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Das Set enthält 6 Gläser", + "en-GB": "- Set includes 6 glasses", + "en-US": "- Set includes 6 glasses", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3000, + "w": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stout_Beer_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5699, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5699, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 5999, + "currencyCode": "USD", + }, + }, + ], + "sku": "SBG-09", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Stout-Bierglas", + "en": undefined, + "en-GB": "Stout Beer Glass", + "en-US": "Stout Beer Glass", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3000, - "w": 3000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stout_Beer_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5699, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "starkes-bierglas", + "en": undefined, + "en-GB": "stout-beer-glass", + "en-US": "stout-beer-glass", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5699, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 5999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SBG-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Stout-Bierglas", - "en": undefined, - "en-GB": "Stout Beer Glass", - "en-US": "Stout Beer Glass", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "starkes-bierglas", - "en": undefined, - "en-GB": "stout-beer-glass", - "en-US": "stout-beer-glass", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a stoutBeerGlass preset when built for graphql`, () => { const stoutBeerGlassPresetGraphql = stoutBeerGlass().buildGraphql(); expect(stoutBeerGlassPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A stout beer glass, also known as a "pint glass," is a type of drinking glass that is designed specifically for serving and enjoying stout beers. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the stout beer glass is intended to enhance the drinking experience by allowing the full range of flavors and aromas of the beer to be appreciated. The wide opening of the glass allows the drinker to fully appreciate the color and clarity of the beer, while the heavy base helps to keep the beer from spilling or tipping over. Overall, a stout beer glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine stout beers. Its simple yet elegant design makes it a popular choice for beer lovers and casual drinkers alike.", - }, - { - "locale": "de-DE", - "value": "Ein Stout-Bierglas, auch als "Pintglas" bekannt, ist ein Trinkglas, das speziell zum Servieren und Genießen von Starkbieren entwickelt wurde. Es hat eine kurze, breite Form mit einem dicken, schweren Boden, der für Stabilität und Gleichgewicht sorgt. Das Design des Stout-Bierglases unterstützt das Trinkerlebnis, indem es die volle Geschmacks- und Aromenvielfalt des Bieres zur Geltung bringt. Die breite Öffnung des Glases lässt die Farbe und Klarheit des Bieres erkennen, während der schwere Boden dazu beiträgt, dass das Bier nicht verschüttet oder umkippt. Ein Pintglas ist ein klassisches und zeitloses Trinkglas, das sich ideal eignet, um den reichen Geschmack und das Aroma feiner Stout-Biere zu genießen. Sein einfaches aber elegantes Design macht es zu einer beliebten Wahl für Bierliebhaber und Gelegenheitsgeniesser gleichermaßen.", - }, - { - "locale": "en-GB", - "value": "A stout beer glass, also known as a "pint glass," is a type of drinking glass that is designed specifically for serving and enjoying stout beers. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the stout beer glass is intended to enhance the drinking experience by allowing the full range of flavors and aromas of the beer to be appreciated. The wide opening of the glass allows the drinker to fully appreciate the color and clarity of the beer, while the heavy base helps to keep the beer from spilling or tipping over. Overall, a stout beer glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine stout beers. Its simple yet elegant design makes it a popular choice for beer lovers and casual drinkers alike.", - }, - ], - "key": "stout-beer-glass", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3000, - "width": 3000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stout_Beer_Glass-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5699, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A stout beer glass, also known as a "pint glass," is a type of drinking glass that is designed specifically for serving and enjoying stout beers. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the stout beer glass is intended to enhance the drinking experience by allowing the full range of flavors and aromas of the beer to be appreciated. The wide opening of the glass allows the drinker to fully appreciate the color and clarity of the beer, while the heavy base helps to keep the beer from spilling or tipping over. Overall, a stout beer glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine stout beers. Its simple yet elegant design makes it a popular choice for beer lovers and casual drinkers alike.", + }, + { + "locale": "de-DE", + "value": "Ein Stout-Bierglas, auch als "Pintglas" bekannt, ist ein Trinkglas, das speziell zum Servieren und Genießen von Starkbieren entwickelt wurde. Es hat eine kurze, breite Form mit einem dicken, schweren Boden, der für Stabilität und Gleichgewicht sorgt. Das Design des Stout-Bierglases unterstützt das Trinkerlebnis, indem es die volle Geschmacks- und Aromenvielfalt des Bieres zur Geltung bringt. Die breite Öffnung des Glases lässt die Farbe und Klarheit des Bieres erkennen, während der schwere Boden dazu beiträgt, dass das Bier nicht verschüttet oder umkippt. Ein Pintglas ist ein klassisches und zeitloses Trinkglas, das sich ideal eignet, um den reichen Geschmack und das Aroma feiner Stout-Biere zu genießen. Sein einfaches aber elegantes Design macht es zu einer beliebten Wahl für Bierliebhaber und Gelegenheitsgeniesser gleichermaßen.", + }, + { + "locale": "en-GB", + "value": "A stout beer glass, also known as a "pint glass," is a type of drinking glass that is designed specifically for serving and enjoying stout beers. It has a short, wide shape with a thick, heavy base that provides stability and balance. The design of the stout beer glass is intended to enhance the drinking experience by allowing the full range of flavors and aromas of the beer to be appreciated. The wide opening of the glass allows the drinker to fully appreciate the color and clarity of the beer, while the heavy base helps to keep the beer from spilling or tipping over. Overall, a stout beer glass is a classic and timeless type of drinking glass that is ideal for savoring the rich flavor and aroma of fine stout beers. Its simple yet elegant design makes it a popular choice for beer lovers and casual drinkers alike.", }, + ], + "key": "stout-beer-glass", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Set includes 6 glasses","en-US":"- Set includes 6 glasses","de-DE":"- Das Set enthält 6 Gläser"}", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3000, + "width": 3000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Stout_Beer_Glass-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5699, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5699, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "5699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 5999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SBG-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5699, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Stout Beer Glass", + }, + { + "locale": "en-GB", + "value": "Stout Beer Glass", + }, + { + "locale": "de-DE", + "value": "Stout-Bierglas", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 5999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "stout-beer-glass", + }, + { + "locale": "en-GB", + "value": "stout-beer-glass", + }, + { + "locale": "de-DE", + "value": "starkes-bierglas", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SBG-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Stout Beer Glass", - }, - { - "locale": "en-GB", - "value": "Stout Beer Glass", - }, - { - "locale": "de-DE", - "value": "Stout-Bierglas", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "stout-beer-glass", - }, - { - "locale": "en-GB", - "value": "stout-beer-glass", - }, - { - "locale": "de-DE", - "value": "starkes-bierglas", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl.spec.ts index af4c7da44..1992b9d36 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sunnai-glass-bowl.spec.ts @@ -6,259 +6,259 @@ describe(`with sunnaiGlassBowl preset`, () => { const sunnaiGlassBowlPreset = sunnaiGlassBowl().build(); expect(sunnaiGlassBowlPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bowls", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "bakeware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Diese Glasschalen eignen sich ideal zum Servieren einer Vielzahl von Speisen, darunter Salate, Obst, Desserts und Snacks. Sie sind eine beliebte Wahl für formelle Dinnerpartys und besondere Anlässe sowie für den täglichen Gebrauch. + { + "categories": [ + { + "key": "bowls", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "bakeware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Diese Glasschalen eignen sich ideal zum Servieren einer Vielzahl von Speisen, darunter Salate, Obst, Desserts und Snacks. Sie sind eine beliebte Wahl für formelle Dinnerpartys und besondere Anlässe sowie für den täglichen Gebrauch. -Das Glas ist leicht zu reinigen und zu pflegen und kann mit Wasser und Seife gewaschen werden. Die Schale ist zudem spülmaschinenfest. Das Glasmaterial ist so verarbeitet, dass es keine Aromen oder Gerüche aus den Lebensmitteln aufnimmt. + Das Glas ist leicht zu reinigen und zu pflegen und kann mit Wasser und Seife gewaschen werden. Die Schale ist zudem spülmaschinenfest. Das Glasmaterial ist so verarbeitet, dass es keine Aromen oder Gerüche aus den Lebensmitteln aufnimmt. -Die Glasschale ist eine schöne und praktische Wahl zum Präsentieren und Servieren von Speisen. Ihre Transparenz und Schlichtheit machen sie zu einem vielseitigen und zeitlosen Begleiter, der für eine Vielzahl von Anlässen verwendet werden kann. -", - "en": undefined, - "en-GB": "These glass bowls are ideal for serving a variety of foods, including salads, fruits, desserts, and snacks. They are a popular choice for formal dinner parties and special occasions, as well as for everyday use. + Die Glasschale ist eine schöne und praktische Wahl zum Präsentieren und Servieren von Speisen. Ihre Transparenz und Schlichtheit machen sie zu einem vielseitigen und zeitlosen Begleiter, der für eine Vielzahl von Anlässen verwendet werden kann. + ", + "en": undefined, + "en-GB": "These glass bowls are ideal for serving a variety of foods, including salads, fruits, desserts, and snacks. They are a popular choice for formal dinner parties and special occasions, as well as for everyday use. -The glass material is easy to clean and maintain, and can be washed with soap and water or in a dishwasher. It is also non-reactive, meaning it will not absorb any flavors or odors from the food. + The glass material is easy to clean and maintain, and can be washed with soap and water or in a dishwasher. It is also non-reactive, meaning it will not absorb any flavors or odors from the food. -Overall, a glass bowl used for serving food is a beautiful and practical choice for presenting and serving food. Its transparency and simplicity make it a versatile and timeless piece that can be used for a variety of occasions and settings.", - "en-US": "These glass bowls are ideal for serving a variety of foods, including salads, fruits, desserts, and snacks. They are a popular choice for formal dinner parties and special occasions, as well as for everyday use. + Overall, a glass bowl used for serving food is a beautiful and practical choice for presenting and serving food. Its transparency and simplicity make it a versatile and timeless piece that can be used for a variety of occasions and settings.", + "en-US": "These glass bowls are ideal for serving a variety of foods, including salads, fruits, desserts, and snacks. They are a popular choice for formal dinner parties and special occasions, as well as for everyday use. -The glass material is easy to clean and maintain, and can be washed with soap and water or in a dishwasher. It is also non-reactive, meaning it will not absorb any flavors or odors from the food. + The glass material is easy to clean and maintain, and can be washed with soap and water or in a dishwasher. It is also non-reactive, meaning it will not absorb any flavors or odors from the food. -Overall, a glass bowl used for serving food is a beautiful and practical choice for presenting and serving food. Its transparency and simplicity make it a versatile and timeless piece that can be used for a variety of occasions and settings.", - "fr": undefined, - }, - "key": "sunnai-glass-bowl", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "type", - "value": [ - { - "en-GB": "Round", - }, - ], - }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", + Overall, a glass bowl used for serving food is a beautiful and practical choice for presenting and serving food. Its transparency and simplicity make it a versatile and timeless piece that can be used for a variety of occasions and settings.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3739, - "w": 5381, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 799, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 799, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 799, - "currencyCode": "USD", - }, - }, - ], - "sku": "SGB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Glasschale >Sunnai<", - "en": undefined, - "en-GB": "Sunnai Glass Bowl", - "en-US": "Sunnai Glass Bowl", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "product-sets", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "sunnai-glaskugel", - "en": undefined, - "en-GB": "sunnai-glass-bowl", - "en-US": "sunnai-glass-bowl", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "type", - "value": [ + "key": "sunnai-glass-bowl", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "type", + "value": [ + { + "en-GB": "Round", + }, + ], + }, { - "en-GB": "Deep", + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, }, ], + "images": [ + { + "dimensions": { + "h": 3739, + "w": 5381, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 799, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 799, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 799, + "currencyCode": "USD", + }, + }, + ], + "sku": "SGB-01", }, - { - "name": "color", - "value": { - "de-DE": "Transparent:transparent", - "en-GB": "Transparent:transparent", - "en-US": "Transparent:transparent", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Glasschale >Sunnai<", + "en": undefined, + "en-GB": "Sunnai Glass Bowl", + "en-US": "Sunnai Glass Bowl", + "fr": undefined, }, - ], - "images": [ - { - "dimensions": { - "h": 3288, - "w": 4944, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-2.1.jpeg", + "priceMode": undefined, + "productType": { + "key": "product-sets", + "typeId": "product-type", }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "EUR", - }, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "sunnai-glaskugel", + "en": undefined, + "en-GB": "sunnai-glass-bowl", + "en-US": "sunnai-glass-bowl", + "fr": undefined, }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "GBP", - }, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "USD", + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "type", + "value": [ + { + "en-GB": "Deep", + }, + ], + }, + { + "name": "color", + "value": { + "de-DE": "Transparent:transparent", + "en-GB": "Transparent:transparent", + "en-US": "Transparent:transparent", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3288, + "w": 4944, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + ], + "sku": "SGB-02", }, - }, - ], - "sku": "SGB-02", - }, - ], -} -`); + ], + } + `); }); it(`should return a sunnaiGlassBowl preset when built for graphql`, () => { @@ -266,264 +266,264 @@ Overall, a glass bowl used for serving food is a beautiful and practical choice sunnaiGlassBowl().buildGraphql(); expect(sunnaiGlassBowlPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bowls", - "typeId": "category", - }, - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "bakeware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "These glass bowls are ideal for serving a variety of foods, including salads, fruits, desserts, and snacks. They are a popular choice for formal dinner parties and special occasions, as well as for everyday use. + { + "categories": [ + { + "key": "bowls", + "typeId": "category", + }, + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "bakeware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "These glass bowls are ideal for serving a variety of foods, including salads, fruits, desserts, and snacks. They are a popular choice for formal dinner parties and special occasions, as well as for everyday use. -The glass material is easy to clean and maintain, and can be washed with soap and water or in a dishwasher. It is also non-reactive, meaning it will not absorb any flavors or odors from the food. + The glass material is easy to clean and maintain, and can be washed with soap and water or in a dishwasher. It is also non-reactive, meaning it will not absorb any flavors or odors from the food. -Overall, a glass bowl used for serving food is a beautiful and practical choice for presenting and serving food. Its transparency and simplicity make it a versatile and timeless piece that can be used for a variety of occasions and settings.", - }, - { - "locale": "en-GB", - "value": "These glass bowls are ideal for serving a variety of foods, including salads, fruits, desserts, and snacks. They are a popular choice for formal dinner parties and special occasions, as well as for everyday use. + Overall, a glass bowl used for serving food is a beautiful and practical choice for presenting and serving food. Its transparency and simplicity make it a versatile and timeless piece that can be used for a variety of occasions and settings.", + }, + { + "locale": "en-GB", + "value": "These glass bowls are ideal for serving a variety of foods, including salads, fruits, desserts, and snacks. They are a popular choice for formal dinner parties and special occasions, as well as for everyday use. -The glass material is easy to clean and maintain, and can be washed with soap and water or in a dishwasher. It is also non-reactive, meaning it will not absorb any flavors or odors from the food. + The glass material is easy to clean and maintain, and can be washed with soap and water or in a dishwasher. It is also non-reactive, meaning it will not absorb any flavors or odors from the food. -Overall, a glass bowl used for serving food is a beautiful and practical choice for presenting and serving food. Its transparency and simplicity make it a versatile and timeless piece that can be used for a variety of occasions and settings.", - }, - { - "locale": "de-DE", - "value": "Diese Glasschalen eignen sich ideal zum Servieren einer Vielzahl von Speisen, darunter Salate, Obst, Desserts und Snacks. Sie sind eine beliebte Wahl für formelle Dinnerpartys und besondere Anlässe sowie für den täglichen Gebrauch. + Overall, a glass bowl used for serving food is a beautiful and practical choice for presenting and serving food. Its transparency and simplicity make it a versatile and timeless piece that can be used for a variety of occasions and settings.", + }, + { + "locale": "de-DE", + "value": "Diese Glasschalen eignen sich ideal zum Servieren einer Vielzahl von Speisen, darunter Salate, Obst, Desserts und Snacks. Sie sind eine beliebte Wahl für formelle Dinnerpartys und besondere Anlässe sowie für den täglichen Gebrauch. -Das Glas ist leicht zu reinigen und zu pflegen und kann mit Wasser und Seife gewaschen werden. Die Schale ist zudem spülmaschinenfest. Das Glasmaterial ist so verarbeitet, dass es keine Aromen oder Gerüche aus den Lebensmitteln aufnimmt. + Das Glas ist leicht zu reinigen und zu pflegen und kann mit Wasser und Seife gewaschen werden. Die Schale ist zudem spülmaschinenfest. Das Glasmaterial ist so verarbeitet, dass es keine Aromen oder Gerüche aus den Lebensmitteln aufnimmt. -Die Glasschale ist eine schöne und praktische Wahl zum Präsentieren und Servieren von Speisen. Ihre Transparenz und Schlichtheit machen sie zu einem vielseitigen und zeitlosen Begleiter, der für eine Vielzahl von Anlässen verwendet werden kann. -", - }, - ], - "key": "sunnai-glass-bowl", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "type", - "value": "[{"en-GB":"Round"}]", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3739, - "width": 5381, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 799, - "currencyCode": "EUR", + Die Glasschale ist eine schöne und praktische Wahl zum Präsentieren und Servieren von Speisen. Ihre Transparenz und Schlichtheit machen sie zu einem vielseitigen und zeitlosen Begleiter, der für eine Vielzahl von Anlässen verwendet werden kann. + ", }, + ], + "key": "sunnai-glass-bowl", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "type", + "value": "[{"en-GB":"Round"}]", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3739, + "width": 5381, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 799, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 799, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "799USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 799, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SGB-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 799, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Sunnai Glass Bowl", }, - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 799, - "currencyCode": "USD", + { + "locale": "en-GB", + "value": "Sunnai Glass Bowl", }, - }, - }, - ], - "sku": "SGB-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Sunnai Glass Bowl", - }, - { - "locale": "en-GB", - "value": "Sunnai Glass Bowl", - }, - { - "locale": "de-DE", - "value": "Glasschale >Sunnai<", - }, - ], - "priceMode": undefined, - "productType": { - "key": "product-sets", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "sunnai-glass-bowl", - }, - { - "locale": "en-GB", - "value": "sunnai-glass-bowl", - }, - { - "locale": "de-DE", - "value": "sunnai-glaskugel", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": [ - { - "assets": undefined, - "attributes": [ - { - "name": "type", - "value": "[{"en-GB":"Deep"}]", - }, - { - "name": "color", - "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 3288, - "width": 4944, + { + "locale": "de-DE", + "value": "Glasschale >Sunnai<", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-2.1.jpeg", + ], + "priceMode": undefined, + "productType": { + "key": "product-sets", + "typeId": "product-type", }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "EUR", - }, + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "sunnai-glass-bowl", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "GBP", - }, + { + "locale": "en-GB", + "value": "sunnai-glass-bowl", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "USD", - }, + { + "locale": "de-DE", + "value": "sunnai-glaskugel", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - ], - "sku": "SGB-02", - }, - ], -} -`); + "variants": [ + { + "assets": undefined, + "attributes": [ + { + "name": "type", + "value": "[{"en-GB":"Deep"}]", + }, + { + "name": "color", + "value": "{"en-GB":"Transparent:transparent","de-DE":"Transparent:transparent","en-US":"Transparent:transparent"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3288, + "width": 4944, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sunnai_Glass_Bowl-2.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SGB-02", + }, + ], + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle.spec.ts index 5fb6c3b84..954fc868d 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/sweet-pea-candle.spec.ts @@ -5,352 +5,352 @@ describe(`with sweetPeaCandle preset`, () => { it(`should return a sweetPeaCandle preset`, () => { const sweetPeaCandlePreset = sweetPeaCandle().build(); expect(sweetPeaCandlePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Die kleine Kerze mit der Duftnote Schleierkraut oder Duftwicke ist eine charmante und hübsche Ergänzung für jedes Zuhause. Die Größe der Kerze macht sie zum perfekten Accessoire auf einem Tisch oder Schreibtisch. Die Kerze besteht aus hochwertigem Wachs, das mit den süßen und zarten Noten der Duftwicke durchdrungen ist. Der Duft ist frisch und blumig und erinnert an einen blühenden Garten im Frühling. Die Kerze wird in einem Glasbehälter präsentiert, der zum Schutz der Flamme beiträgt und der Kerze eine dekorative Note verleiht. Wenn die Kerze angezündet wird, verströmt sie ein sanftes und angenehmes Aroma und erfüllt den Raum mit dem süßen und beruhigenden Duft von Schleierkraut. Der Duft schafft eine entspannende und beruhigende Atmosphäre und eignen sich gut für die Verwendung während einer Yogastunde, eines Schaumbads oder zur Einstimmung in einen erholsamen Schlaf. Eine Kerze mit dem Aroma der Duftwicke ist eine hübsche und charmante Ergänzung für jedes Zuhause und bringt einen Hauch von Natur und Ruhe in jeden Wohnraum.", - "en": undefined, - "en-GB": "A small sweet pea scented candle is a charming and delightful addition to any home. The candle is small in size, making it perfect for use on a tabletop or desk. The candle is made from high-quality wax, which is infused with the sweet and delicate fragrance of sweet pea. The scent is fresh and floral, reminiscent of a blooming garden in the springtime. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a gentle and pleasant aroma, filling the room with the sweet and soothing fragrance of sweet pea. The scent can help to create a relaxing and calming atmosphere, making it perfect for use during a yoga practice, a bubble bath, or a cozy night in. A sweet pea scented candle is a delightful and charming addition to any home, bringing a touch of nature and tranquility to your living space.", - "en-US": "A small sweet pea scented candle is a charming and delightful addition to any home. The candle is small in size, making it perfect for use on a tabletop or desk. The candle is made from high-quality wax, which is infused with the sweet and delicate fragrance of sweet pea. The scent is fresh and floral, reminiscent of a blooming garden in the springtime. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a gentle and pleasant aroma, filling the room with the sweet and soothing fragrance of sweet pea. The scent can help to create a relaxing and calming atmosphere, making it perfect for use during a yoga practice, a bubble bath, or a cozy night in. A sweet pea scented candle is a delightful and charming addition to any home, bringing a touch of nature and tranquility to your living space.", - "fr": undefined, - }, - "key": "sweet-pea-candle", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Wird im Glas geliefert -- 180 Gramm", - "en-GB": "- Comes in glass jar -- 180 grams", - "en-US": "- Comes in glass jar -- 180 grams", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Die kleine Kerze mit der Duftnote Schleierkraut oder Duftwicke ist eine charmante und hübsche Ergänzung für jedes Zuhause. Die Größe der Kerze macht sie zum perfekten Accessoire auf einem Tisch oder Schreibtisch. Die Kerze besteht aus hochwertigem Wachs, das mit den süßen und zarten Noten der Duftwicke durchdrungen ist. Der Duft ist frisch und blumig und erinnert an einen blühenden Garten im Frühling. Die Kerze wird in einem Glasbehälter präsentiert, der zum Schutz der Flamme beiträgt und der Kerze eine dekorative Note verleiht. Wenn die Kerze angezündet wird, verströmt sie ein sanftes und angenehmes Aroma und erfüllt den Raum mit dem süßen und beruhigenden Duft von Schleierkraut. Der Duft schafft eine entspannende und beruhigende Atmosphäre und eignen sich gut für die Verwendung während einer Yogastunde, eines Schaumbads oder zur Einstimmung in einen erholsamen Schlaf. Eine Kerze mit dem Aroma der Duftwicke ist eine hübsche und charmante Ergänzung für jedes Zuhause und bringt einen Hauch von Natur und Ruhe in jeden Wohnraum.", + "en": undefined, + "en-GB": "A small sweet pea scented candle is a charming and delightful addition to any home. The candle is small in size, making it perfect for use on a tabletop or desk. The candle is made from high-quality wax, which is infused with the sweet and delicate fragrance of sweet pea. The scent is fresh and floral, reminiscent of a blooming garden in the springtime. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a gentle and pleasant aroma, filling the room with the sweet and soothing fragrance of sweet pea. The scent can help to create a relaxing and calming atmosphere, making it perfect for use during a yoga practice, a bubble bath, or a cozy night in. A sweet pea scented candle is a delightful and charming addition to any home, bringing a touch of nature and tranquility to your living space.", + "en-US": "A small sweet pea scented candle is a charming and delightful addition to any home. The candle is small in size, making it perfect for use on a tabletop or desk. The candle is made from high-quality wax, which is infused with the sweet and delicate fragrance of sweet pea. The scent is fresh and floral, reminiscent of a blooming garden in the springtime. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a gentle and pleasant aroma, filling the room with the sweet and soothing fragrance of sweet pea. The scent can help to create a relaxing and calming atmosphere, making it perfect for use during a yoga practice, a bubble bath, or a cozy night in. A sweet pea scented candle is a delightful and charming addition to any home, bringing a touch of nature and tranquility to your living space.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Rosa:#FFC0CB", - "en-GB": "Pink:#FFC0CB", - "en-US": "Pink:#FFC0CB", + "key": "sweet-pea-candle", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Wird im Glas geliefert + - 180 Gramm", + "en-GB": "- Comes in glass jar + - 180 grams", + "en-US": "- Comes in glass jar + - 180 grams", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Rosa:#FFC0CB", + "en-GB": "Pink:#FFC0CB", + "en-US": "Pink:#FFC0CB", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3693, + "w": 5540, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.1.jpeg", + }, + { + "dimensions": { + "h": 4480, + "w": 6720, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.2.jpeg", + }, + { + "dimensions": { + "h": 4427, + "w": 6640, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 699, + "currencyCode": "USD", + }, + }, + ], + "sku": "SPC-01", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Kerze Duftwicke", + "en": undefined, + "en-GB": "Sweet Pea Candle", + "en-US": "Sweet Pea Candle", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3693, - "w": 5540, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.1.jpeg", - }, - { - "dimensions": { - "h": 4480, - "w": 6720, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "kerze-der-sen-erbse", + "en": undefined, + "en-GB": "sweat-pea-candle", + "en-US": "sweat-pea-candle", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.2.jpeg", - }, - { - "dimensions": { - "h": 4427, - "w": 6640, + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "EUR", - }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 699, - "currencyCode": "USD", - }, - }, - ], - "sku": "SPC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Kerze Duftwicke", - "en": undefined, - "en-GB": "Sweet Pea Candle", - "en-US": "Sweet Pea Candle", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "kerze-der-sen-erbse", - "en": undefined, - "en-GB": "sweat-pea-candle", - "en-US": "sweat-pea-candle", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a sweetPeaCandle preset when built for graphql`, () => { const sweetPeaCandlePresetGraphql = sweetPeaCandle().buildGraphql(); expect(sweetPeaCandlePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A small sweet pea scented candle is a charming and delightful addition to any home. The candle is small in size, making it perfect for use on a tabletop or desk. The candle is made from high-quality wax, which is infused with the sweet and delicate fragrance of sweet pea. The scent is fresh and floral, reminiscent of a blooming garden in the springtime. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a gentle and pleasant aroma, filling the room with the sweet and soothing fragrance of sweet pea. The scent can help to create a relaxing and calming atmosphere, making it perfect for use during a yoga practice, a bubble bath, or a cozy night in. A sweet pea scented candle is a delightful and charming addition to any home, bringing a touch of nature and tranquility to your living space.", - }, - { - "locale": "de-DE", - "value": "Die kleine Kerze mit der Duftnote Schleierkraut oder Duftwicke ist eine charmante und hübsche Ergänzung für jedes Zuhause. Die Größe der Kerze macht sie zum perfekten Accessoire auf einem Tisch oder Schreibtisch. Die Kerze besteht aus hochwertigem Wachs, das mit den süßen und zarten Noten der Duftwicke durchdrungen ist. Der Duft ist frisch und blumig und erinnert an einen blühenden Garten im Frühling. Die Kerze wird in einem Glasbehälter präsentiert, der zum Schutz der Flamme beiträgt und der Kerze eine dekorative Note verleiht. Wenn die Kerze angezündet wird, verströmt sie ein sanftes und angenehmes Aroma und erfüllt den Raum mit dem süßen und beruhigenden Duft von Schleierkraut. Der Duft schafft eine entspannende und beruhigende Atmosphäre und eignen sich gut für die Verwendung während einer Yogastunde, eines Schaumbads oder zur Einstimmung in einen erholsamen Schlaf. Eine Kerze mit dem Aroma der Duftwicke ist eine hübsche und charmante Ergänzung für jedes Zuhause und bringt einen Hauch von Natur und Ruhe in jeden Wohnraum.", - }, - { - "locale": "en-GB", - "value": "A small sweet pea scented candle is a charming and delightful addition to any home. The candle is small in size, making it perfect for use on a tabletop or desk. The candle is made from high-quality wax, which is infused with the sweet and delicate fragrance of sweet pea. The scent is fresh and floral, reminiscent of a blooming garden in the springtime. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a gentle and pleasant aroma, filling the room with the sweet and soothing fragrance of sweet pea. The scent can help to create a relaxing and calming atmosphere, making it perfect for use during a yoga practice, a bubble bath, or a cozy night in. A sweet pea scented candle is a delightful and charming addition to any home, bringing a touch of nature and tranquility to your living space.", - }, - ], - "key": "sweet-pea-candle", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Comes in glass jar\\n- 180 grams","en-US":"- Comes in glass jar\\n- 180 grams","de-DE":"- Wird im Glas geliefert\\n- 180 Gramm"}", - }, - { - "name": "color", - "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3693, - "width": 5540, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.1.jpeg", - }, - { - "dimensions": { - "height": 4480, - "width": 6720, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.2.jpeg", - }, - { - "dimensions": { - "height": 4427, - "width": 6640, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 699, - "currencyCode": "EUR", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A small sweet pea scented candle is a charming and delightful addition to any home. The candle is small in size, making it perfect for use on a tabletop or desk. The candle is made from high-quality wax, which is infused with the sweet and delicate fragrance of sweet pea. The scent is fresh and floral, reminiscent of a blooming garden in the springtime. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a gentle and pleasant aroma, filling the room with the sweet and soothing fragrance of sweet pea. The scent can help to create a relaxing and calming atmosphere, making it perfect for use during a yoga practice, a bubble bath, or a cozy night in. A sweet pea scented candle is a delightful and charming addition to any home, bringing a touch of nature and tranquility to your living space.", }, + { + "locale": "de-DE", + "value": "Die kleine Kerze mit der Duftnote Schleierkraut oder Duftwicke ist eine charmante und hübsche Ergänzung für jedes Zuhause. Die Größe der Kerze macht sie zum perfekten Accessoire auf einem Tisch oder Schreibtisch. Die Kerze besteht aus hochwertigem Wachs, das mit den süßen und zarten Noten der Duftwicke durchdrungen ist. Der Duft ist frisch und blumig und erinnert an einen blühenden Garten im Frühling. Die Kerze wird in einem Glasbehälter präsentiert, der zum Schutz der Flamme beiträgt und der Kerze eine dekorative Note verleiht. Wenn die Kerze angezündet wird, verströmt sie ein sanftes und angenehmes Aroma und erfüllt den Raum mit dem süßen und beruhigenden Duft von Schleierkraut. Der Duft schafft eine entspannende und beruhigende Atmosphäre und eignen sich gut für die Verwendung während einer Yogastunde, eines Schaumbads oder zur Einstimmung in einen erholsamen Schlaf. Eine Kerze mit dem Aroma der Duftwicke ist eine hübsche und charmante Ergänzung für jedes Zuhause und bringt einen Hauch von Natur und Ruhe in jeden Wohnraum.", + }, + { + "locale": "en-GB", + "value": "A small sweet pea scented candle is a charming and delightful addition to any home. The candle is small in size, making it perfect for use on a tabletop or desk. The candle is made from high-quality wax, which is infused with the sweet and delicate fragrance of sweet pea. The scent is fresh and floral, reminiscent of a blooming garden in the springtime. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a gentle and pleasant aroma, filling the room with the sweet and soothing fragrance of sweet pea. The scent can help to create a relaxing and calming atmosphere, making it perfect for use during a yoga practice, a bubble bath, or a cozy night in. A sweet pea scented candle is a delightful and charming addition to any home, bringing a touch of nature and tranquility to your living space.", + }, + ], + "key": "sweet-pea-candle", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Comes in glass jar\\n- 180 grams","en-US":"- Comes in glass jar\\n- 180 grams","de-DE":"- Wird im Glas geliefert\\n- 180 Gramm"}", + }, + { + "name": "color", + "value": "{"en-GB":"Pink:#FFC0CB","de-DE":"Rosa:#FFC0CB","en-US":"Pink:#FFC0CB"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Glass:transparent","de-DE":"Glas:transparent","en-US":"Glass:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3693, + "width": 5540, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.1.jpeg", + }, + { + "dimensions": { + "height": 4480, + "width": 6720, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.2.jpeg", + }, + { + "dimensions": { + "height": 4427, + "width": 6640, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Sweet_Pea_Candle-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 699, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 699, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "699USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 699, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "SPC-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 699, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Sweet Pea Candle", + }, + { + "locale": "en-GB", + "value": "Sweet Pea Candle", }, + { + "locale": "de-DE", + "value": "Kerze Duftwicke", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 699, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "sweat-pea-candle", + }, + { + "locale": "en-GB", + "value": "sweat-pea-candle", + }, + { + "locale": "de-DE", + "value": "kerze-der-sen-erbse", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "SPC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Sweet Pea Candle", - }, - { - "locale": "en-GB", - "value": "Sweet Pea Candle", - }, - { - "locale": "de-DE", - "value": "Kerze Duftwicke", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "sweat-pea-candle", - }, - { - "locale": "en-GB", - "value": "sweat-pea-candle", - }, - { - "locale": "de-DE", - "value": "kerze-der-sen-erbse", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed.spec.ts index 30107396a..d1fd11af0 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/tan-queen-bed.spec.ts @@ -5,317 +5,317 @@ describe(`with tanQueenBed preset`, () => { it(`should return a tanQueenBed preset`, () => { const tanQueenBedPreset = tanQueenBed().build(); expect(tanQueenBedPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das Queensize-Bett mit gepolstertem Kopfteil aus Leder ist ein stilvolles und raffiniertes Möbelstück. Das Kopfteil ist hoch und breit und bietet ein gepolstertes Design mit luxuriösem Lederbezug, das es zu einen bequemen Platz zum Anlehnen im Bett macht. Das Leder ist weich und geschmeidig und verleiht dem Bett einen Hauch von Eleganz und Raffinesse. Das Bettgestell besteht aus stabilem Holz und ist in passender Farbe zum Lederkopfteil gehalten. Das Bett hat einen Lattenrost, der eine solide Grundlage für die Matratze bietet und dem Komfort eines Boxspringbetts gleichkommt. Diese Art von Bett wird oft in zeitgenössischen oder Übergangsdesignstilen bevorzugt und kann mit einer Reihe von Betttextilien und Dekorationsartikeln kombiniert werden, um einen luxuriösen und einladenden Schlafbereich zu schaffen. Ein Queensize-Bett mit einem gepolsterten Kopfteil aus Leder ist ein Statement-Stück, das jedem Schlafzimmer sowohl Komfort als auch Stil verleiht.", - "en": undefined, - "en-GB": "A queen bed with a padded leather headboard is a stylish and sophisticated piece of furniture. The headboard is tall and wide, featuring a padded design with luxurious leather upholstery that provides a comfortable place to lean against when sitting up in bed. The leather is soft and supple, adding a touch of elegance and refinement to the bed. The bed frame is made of sturdy wood and is finished in a complementary color to the leather headboard. The bed also has a platform base, providing a solid foundation for the mattress while also eliminating the need for a box spring. This type of bed is often favored in contemporary or transitional design styles and can be paired with a range of bedding and decor to create a luxurious and inviting sleeping space. Overall, a queen bed with a padded leather headboard is a statement piece that adds both comfort and style to any bedroom.", - "en-US": "A queen bed with a padded leather headboard is a stylish and sophisticated piece of furniture. The headboard is tall and wide, featuring a padded design with luxurious leather upholstery that provides a comfortable place to lean against when sitting up in bed. The leather is soft and supple, adding a touch of elegance and refinement to the bed. The bed frame is made of sturdy wood and is finished in a complementary color to the leather headboard. The bed also has a platform base, providing a solid foundation for the mattress while also eliminating the need for a box spring. This type of bed is often favored in contemporary or transitional design styles and can be paired with a range of bedding and decor to create a luxurious and inviting sleeping space. Overall, a queen bed with a padded leather headboard is a statement piece that adds both comfort and style to any bedroom.", - "fr": undefined, - }, - "key": "tan-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das Queensize-Bett mit gepolstertem Kopfteil aus Leder ist ein stilvolles und raffiniertes Möbelstück. Das Kopfteil ist hoch und breit und bietet ein gepolstertes Design mit luxuriösem Lederbezug, das es zu einen bequemen Platz zum Anlehnen im Bett macht. Das Leder ist weich und geschmeidig und verleiht dem Bett einen Hauch von Eleganz und Raffinesse. Das Bettgestell besteht aus stabilem Holz und ist in passender Farbe zum Lederkopfteil gehalten. Das Bett hat einen Lattenrost, der eine solide Grundlage für die Matratze bietet und dem Komfort eines Boxspringbetts gleichkommt. Diese Art von Bett wird oft in zeitgenössischen oder Übergangsdesignstilen bevorzugt und kann mit einer Reihe von Betttextilien und Dekorationsartikeln kombiniert werden, um einen luxuriösen und einladenden Schlafbereich zu schaffen. Ein Queensize-Bett mit einem gepolsterten Kopfteil aus Leder ist ein Statement-Stück, das jedem Schlafzimmer sowohl Komfort als auch Stil verleiht.", + "en": undefined, + "en-GB": "A queen bed with a padded leather headboard is a stylish and sophisticated piece of furniture. The headboard is tall and wide, featuring a padded design with luxurious leather upholstery that provides a comfortable place to lean against when sitting up in bed. The leather is soft and supple, adding a touch of elegance and refinement to the bed. The bed frame is made of sturdy wood and is finished in a complementary color to the leather headboard. The bed also has a platform base, providing a solid foundation for the mattress while also eliminating the need for a box spring. This type of bed is often favored in contemporary or transitional design styles and can be paired with a range of bedding and decor to create a luxurious and inviting sleeping space. Overall, a queen bed with a padded leather headboard is a statement piece that adds both comfort and style to any bedroom.", + "en-US": "A queen bed with a padded leather headboard is a stylish and sophisticated piece of furniture. The headboard is tall and wide, featuring a padded design with luxurious leather upholstery that provides a comfortable place to lean against when sitting up in bed. The leather is soft and supple, adding a touch of elegance and refinement to the bed. The bed frame is made of sturdy wood and is finished in a complementary color to the leather headboard. The bed also has a platform base, providing a solid foundation for the mattress while also eliminating the need for a box spring. This type of bed is often favored in contemporary or transitional design styles and can be paired with a range of bedding and decor to create a luxurious and inviting sleeping space. Overall, a queen bed with a padded leather headboard is a statement piece that adds both comfort and style to any bedroom.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Bräunen:#D2B48C", - "en-GB": "Tan:#D2B48C", - "en-US": "Tan:#D2B48C", + "key": "tan-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Bräunen:#D2B48C", + "en-GB": "Tan:#D2B48C", + "en-US": "Tan:#D2B48C", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3621, + "w": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Tan_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + ], + "sku": "LPQB-084", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Hellbraunes Queensize-Bett", + "en": undefined, + "en-GB": "Tan Queen Bed", + "en-US": "Tan Queen Bed", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3621, - "w": 5000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Tan_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "hellbraunes-queen-bett", + "en": undefined, + "en-GB": "tan-queen-bed", + "en-US": "tan-queen-bed", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 129900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LPQB-084", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Hellbraunes Queensize-Bett", - "en": undefined, - "en-GB": "Tan Queen Bed", - "en-US": "Tan Queen Bed", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "hellbraunes-queen-bett", - "en": undefined, - "en-GB": "tan-queen-bed", - "en-US": "tan-queen-bed", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a tanQueenBed preset when built for graphql`, () => { const tanQueenBedPresetGraphql = tanQueenBed().buildGraphql(); expect(tanQueenBedPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "beds", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A queen bed with a padded leather headboard is a stylish and sophisticated piece of furniture. The headboard is tall and wide, featuring a padded design with luxurious leather upholstery that provides a comfortable place to lean against when sitting up in bed. The leather is soft and supple, adding a touch of elegance and refinement to the bed. The bed frame is made of sturdy wood and is finished in a complementary color to the leather headboard. The bed also has a platform base, providing a solid foundation for the mattress while also eliminating the need for a box spring. This type of bed is often favored in contemporary or transitional design styles and can be paired with a range of bedding and decor to create a luxurious and inviting sleeping space. Overall, a queen bed with a padded leather headboard is a statement piece that adds both comfort and style to any bedroom.", - }, - { - "locale": "de-DE", - "value": "Das Queensize-Bett mit gepolstertem Kopfteil aus Leder ist ein stilvolles und raffiniertes Möbelstück. Das Kopfteil ist hoch und breit und bietet ein gepolstertes Design mit luxuriösem Lederbezug, das es zu einen bequemen Platz zum Anlehnen im Bett macht. Das Leder ist weich und geschmeidig und verleiht dem Bett einen Hauch von Eleganz und Raffinesse. Das Bettgestell besteht aus stabilem Holz und ist in passender Farbe zum Lederkopfteil gehalten. Das Bett hat einen Lattenrost, der eine solide Grundlage für die Matratze bietet und dem Komfort eines Boxspringbetts gleichkommt. Diese Art von Bett wird oft in zeitgenössischen oder Übergangsdesignstilen bevorzugt und kann mit einer Reihe von Betttextilien und Dekorationsartikeln kombiniert werden, um einen luxuriösen und einladenden Schlafbereich zu schaffen. Ein Queensize-Bett mit einem gepolsterten Kopfteil aus Leder ist ein Statement-Stück, das jedem Schlafzimmer sowohl Komfort als auch Stil verleiht.", - }, - { - "locale": "en-GB", - "value": "A queen bed with a padded leather headboard is a stylish and sophisticated piece of furniture. The headboard is tall and wide, featuring a padded design with luxurious leather upholstery that provides a comfortable place to lean against when sitting up in bed. The leather is soft and supple, adding a touch of elegance and refinement to the bed. The bed frame is made of sturdy wood and is finished in a complementary color to the leather headboard. The bed also has a platform base, providing a solid foundation for the mattress while also eliminating the need for a box spring. This type of bed is often favored in contemporary or transitional design styles and can be paired with a range of bedding and decor to create a luxurious and inviting sleeping space. Overall, a queen bed with a padded leather headboard is a statement piece that adds both comfort and style to any bedroom.", - }, - ], - "key": "tan-queen-bed", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", - }, - { - "name": "color", - "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Saddle Brown:#8b4513","en-US":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3621, - "width": 5000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Tan_Queen_Bed-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "beds", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A queen bed with a padded leather headboard is a stylish and sophisticated piece of furniture. The headboard is tall and wide, featuring a padded design with luxurious leather upholstery that provides a comfortable place to lean against when sitting up in bed. The leather is soft and supple, adding a touch of elegance and refinement to the bed. The bed frame is made of sturdy wood and is finished in a complementary color to the leather headboard. The bed also has a platform base, providing a solid foundation for the mattress while also eliminating the need for a box spring. This type of bed is often favored in contemporary or transitional design styles and can be paired with a range of bedding and decor to create a luxurious and inviting sleeping space. Overall, a queen bed with a padded leather headboard is a statement piece that adds both comfort and style to any bedroom.", + }, + { + "locale": "de-DE", + "value": "Das Queensize-Bett mit gepolstertem Kopfteil aus Leder ist ein stilvolles und raffiniertes Möbelstück. Das Kopfteil ist hoch und breit und bietet ein gepolstertes Design mit luxuriösem Lederbezug, das es zu einen bequemen Platz zum Anlehnen im Bett macht. Das Leder ist weich und geschmeidig und verleiht dem Bett einen Hauch von Eleganz und Raffinesse. Das Bettgestell besteht aus stabilem Holz und ist in passender Farbe zum Lederkopfteil gehalten. Das Bett hat einen Lattenrost, der eine solide Grundlage für die Matratze bietet und dem Komfort eines Boxspringbetts gleichkommt. Diese Art von Bett wird oft in zeitgenössischen oder Übergangsdesignstilen bevorzugt und kann mit einer Reihe von Betttextilien und Dekorationsartikeln kombiniert werden, um einen luxuriösen und einladenden Schlafbereich zu schaffen. Ein Queensize-Bett mit einem gepolsterten Kopfteil aus Leder ist ein Statement-Stück, das jedem Schlafzimmer sowohl Komfort als auch Stil verleiht.", + }, + { + "locale": "en-GB", + "value": "A queen bed with a padded leather headboard is a stylish and sophisticated piece of furniture. The headboard is tall and wide, featuring a padded design with luxurious leather upholstery that provides a comfortable place to lean against when sitting up in bed. The leather is soft and supple, adding a touch of elegance and refinement to the bed. The bed frame is made of sturdy wood and is finished in a complementary color to the leather headboard. The bed also has a platform base, providing a solid foundation for the mattress while also eliminating the need for a box spring. This type of bed is often favored in contemporary or transitional design styles and can be paired with a range of bedding and decor to create a luxurious and inviting sleeping space. Overall, a queen bed with a padded leather headboard is a statement piece that adds both comfort and style to any bedroom.", }, + ], + "key": "tan-queen-bed", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", + }, + { + "name": "color", + "value": "{"en-GB":"Tan:#D2B48C","de-DE":"Bräunen:#D2B48C","en-US":"Tan:#D2B48C"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Saddle Brown:#8b4513","en-US":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3621, + "width": 5000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Tan_Queen_Bed-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "129900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 129900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "LPQB-084", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Tan Queen Bed", + }, + { + "locale": "en-GB", + "value": "Tan Queen Bed", + }, + { + "locale": "de-DE", + "value": "Hellbraunes Queensize-Bett", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 129900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "tan-queen-bed", + }, + { + "locale": "en-GB", + "value": "tan-queen-bed", + }, + { + "locale": "de-DE", + "value": "hellbraunes-queen-bett", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "LPQB-084", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Tan Queen Bed", - }, - { - "locale": "en-GB", - "value": "Tan Queen Bed", - }, - { - "locale": "de-DE", - "value": "Hellbraunes Queensize-Bett", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "tan-queen-bed", - }, - { - "locale": "en-GB", - "value": "tan-queen-bed", - }, - { - "locale": "de-DE", - "value": "hellbraunes-queen-bett", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter.spec.ts index cc27e3db5..eb0bfd6d7 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/teak-serving-platter.spec.ts @@ -6,316 +6,316 @@ describe(`with teakServingPlatter preset`, () => { const teakServingPlatterPreset = teakServingPlatter().build(); expect(teakServingPlatterPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "cheese-trays", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieses Serviertablett aus Holz ist ein vielseitiger und funktionaler Artikel, der in einer Vielzahl von Umgebungen verwendet werden kann. Das für das Tablett verwendete Teakholz sorgt für eine warme und natürliche Ästhetik und verleiht jeder Umgebung einen Hauch von rustikalem Charme. Serviertabletts aus Holz sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden und sollten nach Gebrauch gründlich getrocknet werden, um zu verhindern, dass Feuchtigkeit im Inneren eingeschlossen wird. Ein Serviertablett aus Holz ist ein praktisches und attraktives Element, das jedem Ambiente einen Hauch von natürlicher Eleganz verleiht. Seine Langlebigkeit und Designvielfalt machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen, Getränken und Gegenständen.", - "en": undefined, - "en-GB": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The teak material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - "en-US": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The teak material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - "fr": undefined, - }, - "key": "teak-serving-platter", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Hergestellt aus natürlichem Teakholz -- Handwäsche nur", - "en-GB": "- Made of natural teak -- Hand wash only", - "en-US": "- Made of natural teak -- Hand wash only", + "categories": [ + { + "key": "cheese-trays", + "typeId": "category", + }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieses Serviertablett aus Holz ist ein vielseitiger und funktionaler Artikel, der in einer Vielzahl von Umgebungen verwendet werden kann. Das für das Tablett verwendete Teakholz sorgt für eine warme und natürliche Ästhetik und verleiht jeder Umgebung einen Hauch von rustikalem Charme. Serviertabletts aus Holz sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden und sollten nach Gebrauch gründlich getrocknet werden, um zu verhindern, dass Feuchtigkeit im Inneren eingeschlossen wird. Ein Serviertablett aus Holz ist ein praktisches und attraktives Element, das jedem Ambiente einen Hauch von natürlicher Eleganz verleiht. Seine Langlebigkeit und Designvielfalt machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen, Getränken und Gegenständen.", + "en": undefined, + "en-GB": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The teak material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + "en-US": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The teak material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", + "key": "teak-serving-platter", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Hergestellt aus natürlichem Teakholz + - Handwäsche nur", + "en-GB": "- Made of natural teak + - Hand wash only", + "en-US": "- Made of natural teak + - Hand wash only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2389, + "w": 4331, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Teak_Serving_Platter-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + ], + "sku": "TST-02", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2389, - "w": 4331, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Servierplatte aus Teakholz", + "en": undefined, + "en-GB": "Teak Serving Platter", + "en-US": "Teak Serving Platter", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Teak_Serving_Platter-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "servierplatte-aus-teakholz", + "en": undefined, + "en-GB": "teak-serving-platter", + "en-US": "teak-serving-platter", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 1299, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TST-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Servierplatte aus Teakholz", - "en": undefined, - "en-GB": "Teak Serving Platter", - "en-US": "Teak Serving Platter", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "servierplatte-aus-teakholz", - "en": undefined, - "en-GB": "teak-serving-platter", - "en-US": "teak-serving-platter", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a teakServingPlatter preset when built for graphql`, () => { const teakServingPlatterPresetGraphql = teakServingPlatter().buildGraphql(); expect(teakServingPlatterPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "cheese-trays", - "typeId": "category", - }, - { - "key": "serving-platters", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "serveware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The teak material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - }, - { - "locale": "de-DE", - "value": "Dieses Serviertablett aus Holz ist ein vielseitiger und funktionaler Artikel, der in einer Vielzahl von Umgebungen verwendet werden kann. Das für das Tablett verwendete Teakholz sorgt für eine warme und natürliche Ästhetik und verleiht jeder Umgebung einen Hauch von rustikalem Charme. Serviertabletts aus Holz sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden und sollten nach Gebrauch gründlich getrocknet werden, um zu verhindern, dass Feuchtigkeit im Inneren eingeschlossen wird. Ein Serviertablett aus Holz ist ein praktisches und attraktives Element, das jedem Ambiente einen Hauch von natürlicher Eleganz verleiht. Seine Langlebigkeit und Designvielfalt machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen, Getränken und Gegenständen.", - }, - { - "locale": "en-GB", - "value": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The teak material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", - }, - ], - "key": "teak-serving-platter", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Made of natural teak\\n- Hand wash only","en-US":"- Made of natural teak\\n- Hand wash only","de-DE":"- Hergestellt aus natürlichem Teakholz\\n- Handwäsche nur"}", - }, - { - "name": "color", - "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2389, - "width": 4331, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Teak_Serving_Platter-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "EUR", + "categories": [ + { + "key": "cheese-trays", + "typeId": "category", }, + { + "key": "serving-platters", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "serveware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The teak material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + }, + { + "locale": "de-DE", + "value": "Dieses Serviertablett aus Holz ist ein vielseitiger und funktionaler Artikel, der in einer Vielzahl von Umgebungen verwendet werden kann. Das für das Tablett verwendete Teakholz sorgt für eine warme und natürliche Ästhetik und verleiht jeder Umgebung einen Hauch von rustikalem Charme. Serviertabletts aus Holz sind leicht zu reinigen und zu pflegen. Sie können mit einem feuchten Tuch und einem milden Reinigungsmittel abgewischt werden und sollten nach Gebrauch gründlich getrocknet werden, um zu verhindern, dass Feuchtigkeit im Inneren eingeschlossen wird. Ein Serviertablett aus Holz ist ein praktisches und attraktives Element, das jedem Ambiente einen Hauch von natürlicher Eleganz verleiht. Seine Langlebigkeit und Designvielfalt machen es zu einer beliebten Wahl zum Servieren und Präsentieren von Speisen, Getränken und Gegenständen.", + }, + { + "locale": "en-GB", + "value": "This wooden serving tray is a versatile and functional item that can be used in a variety of settings. The teak material used in the tray provides a warm and natural aesthetic, adding a touch of rustic charm to any setting. Wooden serving trays are easy to clean and maintain. They can be wiped down with a damp cloth and mild detergent, and should be dried thoroughly after use to prevent any moisture from being trapped inside. Overall, a wooden serving tray is a practical and attractive item that adds a touch of natural elegance to any setting. Its durability, versatility, and range of designs make it a popular choice for serving and displaying food, drinks, and other items.", + }, + ], + "key": "teak-serving-platter", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Made of natural teak\\n- Hand wash only","en-US":"- Made of natural teak\\n- Hand wash only","de-DE":"- Hergestellt aus natürlichem Teakholz\\n- Handwäsche nur"}", + }, + { + "name": "color", + "value": "{"en-GB":"Brown:#a52a2a","de-DE":"Braun:#a52a2a","en-US":"Brown:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2389, + "width": 4331, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Teak_Serving_Platter-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1299USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1299, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TST-02", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Teak Serving Platter", + }, + { + "locale": "en-GB", + "value": "Teak Serving Platter", + }, + { + "locale": "de-DE", + "value": "Servierplatte aus Teakholz", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 1299, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "teak-serving-platter", + }, + { + "locale": "en-GB", + "value": "teak-serving-platter", + }, + { + "locale": "de-DE", + "value": "servierplatte-aus-teakholz", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TST-02", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Teak Serving Platter", - }, - { - "locale": "en-GB", - "value": "Teak Serving Platter", - }, - { - "locale": "de-DE", - "value": "Servierplatte aus Teakholz", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "teak-serving-platter", - }, - { - "locale": "en-GB", - "value": "teak-serving-platter", - }, - { - "locale": "de-DE", - "value": "servierplatte-aus-teakholz", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-armchair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-armchair.spec.ts index 025433ca4..5800abaf0 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-armchair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-armchair.spec.ts @@ -6,353 +6,353 @@ describe(`with traditionalArmchair preset`, () => { const traditionalArmchairPreset = traditionalArmchair().build(); expect(traditionalArmchairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "the-traditionalist", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der traditionelle Sessel mit geometrischem Muster überzeugt mit einem klassischen Design und einem Hauch von modernem Flair. Rahmen und Beine des Stuhls sind aus Holz gefertigt. Er hat eine hohe Rückenlehne, die einen bequemen Platz zum Sitzen und Entspannen bietet. Die Polsterung ist weich und bietet so Komfort im Sitz- und Rückenbereich. Das geometrische Muster verleiht dem Gesamtbild des Stuhls einen visuellen Twist. Zusammen mit seiner Textur, verleiht er dem Dekor des Raums ein subtiles und dennoch auffälliges Element. Dieser traditionelle Sessel mit geometrischem Muster ist eine großartige Ergänzung für den Wohn-, Arbeits- oder Schlafbereich und bereichert den Raum sowohl um Komfort als auch um Stil.", - "en": undefined, - "en-GB": "A traditional armchair with a geometric pattern has a classic design with a touch of modern flair. The chair has a wooden frame and legs. The chair has a high back, providing a comfortable place to sit and relax. The cushioning is plush, offering a soft feel to the seat and backrest. The geometric pattern adds a visual interest and texture to the overall look of the chair, providing a subtle yet eye-catching element to the decor of the room. Overall, a traditional armchair with a geometric pattern could be a great addition to a living room, study, or bedroom, offering both comfort and style to the space.", - "en-US": "A traditional armchair with a geometric pattern has a classic design with a touch of modern flair. The chair has a wooden frame and legs. The chair has a high back, providing a comfortable place to sit and relax. The cushioning is plush, offering a soft feel to the seat and backrest. The geometric pattern adds a visual interest and texture to the overall look of the chair, providing a subtle yet eye-catching element to the decor of the room. Overall, a traditional armchair with a geometric pattern could be a great addition to a living room, study, or bedroom, offering both comfort and style to the space.", - "fr": undefined, - }, - "key": "traditional-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Baumwollpolsterung", - "en-GB": "- Cotton upholstery", - "en-US": "- Cotton upholstery", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Mais seide:#FFF8DC", - "en-GB": "Corn Silk:#FFF8DC", - "en-US": "Corn Silk:#FFF8DC", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "the-traditionalist", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der traditionelle Sessel mit geometrischem Muster überzeugt mit einem klassischen Design und einem Hauch von modernem Flair. Rahmen und Beine des Stuhls sind aus Holz gefertigt. Er hat eine hohe Rückenlehne, die einen bequemen Platz zum Sitzen und Entspannen bietet. Die Polsterung ist weich und bietet so Komfort im Sitz- und Rückenbereich. Das geometrische Muster verleiht dem Gesamtbild des Stuhls einen visuellen Twist. Zusammen mit seiner Textur, verleiht er dem Dekor des Raums ein subtiles und dennoch auffälliges Element. Dieser traditionelle Sessel mit geometrischem Muster ist eine großartige Ergänzung für den Wohn-, Arbeits- oder Schlafbereich und bereichert den Raum sowohl um Komfort als auch um Stil.", + "en": undefined, + "en-GB": "A traditional armchair with a geometric pattern has a classic design with a touch of modern flair. The chair has a wooden frame and legs. The chair has a high back, providing a comfortable place to sit and relax. The cushioning is plush, offering a soft feel to the seat and backrest. The geometric pattern adds a visual interest and texture to the overall look of the chair, providing a subtle yet eye-catching element to the decor of the room. Overall, a traditional armchair with a geometric pattern could be a great addition to a living room, study, or bedroom, offering both comfort and style to the space.", + "en-US": "A traditional armchair with a geometric pattern has a classic design with a touch of modern flair. The chair has a wooden frame and legs. The chair has a high back, providing a comfortable place to sit and relax. The cushioning is plush, offering a soft feel to the seat and backrest. The geometric pattern adds a visual interest and texture to the overall look of the chair, providing a subtle yet eye-catching element to the decor of the room. Overall, a traditional armchair with a geometric pattern could be a great addition to a living room, study, or bedroom, offering both comfort and style to the space.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "key": "traditional-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Baumwollpolsterung", + "en-GB": "- Cotton upholstery", + "en-US": "- Cotton upholstery", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Mais seide:#FFF8DC", + "en-GB": "Corn Silk:#FFF8DC", + "en-US": "Corn Silk:#FFF8DC", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.3.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "TARM-034", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.3.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Traditioneller Sessel", + "en": undefined, + "en-GB": "Traditional Armchair", + "en-US": "Traditional Armchair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "traditioneller-sessel", + "en": undefined, + "en-GB": "traditional-armchair", + "en-US": "traditional-armchair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TARM-034", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Traditioneller Sessel", - "en": undefined, - "en-GB": "Traditional Armchair", - "en-US": "Traditional Armchair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "traditioneller-sessel", - "en": undefined, - "en-GB": "traditional-armchair", - "en-US": "traditional-armchair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a traditionalArmchair preset when built for graphql`, () => { const traditionalArmchairPresetGraphql = traditionalArmchair().buildGraphql(); expect(traditionalArmchairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "the-traditionalist", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A traditional armchair with a geometric pattern has a classic design with a touch of modern flair. The chair has a wooden frame and legs. The chair has a high back, providing a comfortable place to sit and relax. The cushioning is plush, offering a soft feel to the seat and backrest. The geometric pattern adds a visual interest and texture to the overall look of the chair, providing a subtle yet eye-catching element to the decor of the room. Overall, a traditional armchair with a geometric pattern could be a great addition to a living room, study, or bedroom, offering both comfort and style to the space.", - }, - { - "locale": "de-DE", - "value": "Der traditionelle Sessel mit geometrischem Muster überzeugt mit einem klassischen Design und einem Hauch von modernem Flair. Rahmen und Beine des Stuhls sind aus Holz gefertigt. Er hat eine hohe Rückenlehne, die einen bequemen Platz zum Sitzen und Entspannen bietet. Die Polsterung ist weich und bietet so Komfort im Sitz- und Rückenbereich. Das geometrische Muster verleiht dem Gesamtbild des Stuhls einen visuellen Twist. Zusammen mit seiner Textur, verleiht er dem Dekor des Raums ein subtiles und dennoch auffälliges Element. Dieser traditionelle Sessel mit geometrischem Muster ist eine großartige Ergänzung für den Wohn-, Arbeits- oder Schlafbereich und bereichert den Raum sowohl um Komfort als auch um Stil.", - }, - { - "locale": "en-GB", - "value": "A traditional armchair with a geometric pattern has a classic design with a touch of modern flair. The chair has a wooden frame and legs. The chair has a high back, providing a comfortable place to sit and relax. The cushioning is plush, offering a soft feel to the seat and backrest. The geometric pattern adds a visual interest and texture to the overall look of the chair, providing a subtle yet eye-catching element to the decor of the room. Overall, a traditional armchair with a geometric pattern could be a great addition to a living room, study, or bedroom, offering both comfort and style to the space.", - }, - ], - "key": "traditional-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Cotton upholstery","en-US":"- Cotton upholstery","de-DE":"- Baumwollpolsterung"}", - }, - { - "name": "color", - "value": "{"en-GB":"Corn Silk:#FFF8DC","de-DE":"Mais seide:#FFF8DC","en-US":"Corn Silk:#FFF8DC"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.1.jpeg", - }, { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.3.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "the-traditionalist", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A traditional armchair with a geometric pattern has a classic design with a touch of modern flair. The chair has a wooden frame and legs. The chair has a high back, providing a comfortable place to sit and relax. The cushioning is plush, offering a soft feel to the seat and backrest. The geometric pattern adds a visual interest and texture to the overall look of the chair, providing a subtle yet eye-catching element to the decor of the room. Overall, a traditional armchair with a geometric pattern could be a great addition to a living room, study, or bedroom, offering both comfort and style to the space.", }, + { + "locale": "de-DE", + "value": "Der traditionelle Sessel mit geometrischem Muster überzeugt mit einem klassischen Design und einem Hauch von modernem Flair. Rahmen und Beine des Stuhls sind aus Holz gefertigt. Er hat eine hohe Rückenlehne, die einen bequemen Platz zum Sitzen und Entspannen bietet. Die Polsterung ist weich und bietet so Komfort im Sitz- und Rückenbereich. Das geometrische Muster verleiht dem Gesamtbild des Stuhls einen visuellen Twist. Zusammen mit seiner Textur, verleiht er dem Dekor des Raums ein subtiles und dennoch auffälliges Element. Dieser traditionelle Sessel mit geometrischem Muster ist eine großartige Ergänzung für den Wohn-, Arbeits- oder Schlafbereich und bereichert den Raum sowohl um Komfort als auch um Stil.", + }, + { + "locale": "en-GB", + "value": "A traditional armchair with a geometric pattern has a classic design with a touch of modern flair. The chair has a wooden frame and legs. The chair has a high back, providing a comfortable place to sit and relax. The cushioning is plush, offering a soft feel to the seat and backrest. The geometric pattern adds a visual interest and texture to the overall look of the chair, providing a subtle yet eye-catching element to the decor of the room. Overall, a traditional armchair with a geometric pattern could be a great addition to a living room, study, or bedroom, offering both comfort and style to the space.", + }, + ], + "key": "traditional-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Cotton upholstery","en-US":"- Cotton upholstery","de-DE":"- Baumwollpolsterung"}", + }, + { + "name": "color", + "value": "{"en-GB":"Corn Silk:#FFF8DC","de-DE":"Mais seide:#FFF8DC","en-US":"Corn Silk:#FFF8DC"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.3.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TARM-034", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Traditional Armchair", + }, + { + "locale": "en-GB", + "value": "Traditional Armchair", }, + { + "locale": "de-DE", + "value": "Traditioneller Sessel", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "traditional-armchair", + }, + { + "locale": "en-GB", + "value": "traditional-armchair", + }, + { + "locale": "de-DE", + "value": "traditioneller-sessel", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TARM-034", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Traditional Armchair", - }, - { - "locale": "en-GB", - "value": "Traditional Armchair", - }, - { - "locale": "de-DE", - "value": "Traditioneller Sessel", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "traditional-armchair", - }, - { - "locale": "en-GB", - "value": "traditional-armchair", - }, - { - "locale": "de-DE", - "value": "traditioneller-sessel", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa.spec.ts index 321401223..f58940ff5 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-l-seater-sofa.spec.ts @@ -6,371 +6,371 @@ describe(`with traditionalLSeaterSofa preset`, () => { const traditionalLSeaterSofaPreset = traditionalLSeaterSofa().build(); expect(traditionalLSeaterSofaPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "the-traditionalist", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das traditionelle Ecksofa ist ein bequemes und praktisches Möbelstück. Das Sofa ist mit einem strapazierfähigen und hochwertigen Baumwollstoff bezogen und überzeugt mit einem klassischen und zeitlosen Design, das gut zu einer Vielzahl von Einrichtungsstilen passt. Das Sofa bietet ausreichend Platz und Komfort für mehrere Personen. Es kann wie eine Chaiselongue genutzt werden und bietet einen Platz zum Ausstrecken und Entspannen. Das L-förmige Design des Sofas maximiert den Sitzplatz und bietet gleichzeitig einen komfortablen und einladenden Ort zum Entspannen und Erholen. Das Sofa ist mit gepolsterten Armlehnen und Rückenlehnen ausgestattet, die dem Sitzenden ausreichend Halt und Komfort bieten. Die Kissen bestehen aus hochdichtem Schaumstoff, der die Form hält und das gute Sitzgefühl wahrt. Das Sofa wird darüber hinaus mit passenden Wurfkissen geliefert, die den Komfort und Stil des Sofas weiter unterstützen. Das traditionelle L-förmiges Sofa ist ein bequemes und praktisches Möbelstück, das jedem Wohnzimmer sowohl Stil als auch Funktionalität verleiht. Sein klassisches und zeitloses Design, die bequemen Kissen und die großzügige Sitzfläche machen es zu einer beliebten Wahl für Familien und alle, die gerne Gäste in ihrem Zuhause zu empfangen.", - "en": undefined, - "en-GB": "A traditional L-shaped sofa is a comfortable and practical piece of furniture. The sofa is upholstered in a durable and high-quality fabric and features a classic and timeless design that can fit well with a variety of decor styles. The sofa provides ample room for multiple people to sit comfortably. It also features a chaise lounge or a place to stretch out and relax. The L-shape design of the sofa maximizes seating space while also providing a comfortable and inviting space to relax and unwind. The sofa features padded armrests and backrests, providing ample support and comfort for those who sit on it. The cushions are made of high-density foam, ensuring that they are comfortable and retain their shape over time. The sofa also comes with matching throw pillows, adding to the comfort and style of the piece. Overall, a traditional L-shaped sofa is a comfortable and practical piece of furniture that can add both style and functionality to any living room. Its classic and timeless design, comfortable cushions, and ample seating space make it a popular choice for families and anyone who loves to entertain guests in their home.", - "en-US": "A traditional L-shaped sofa is a comfortable and practical piece of furniture. The sofa is upholstered in a durable and high-quality fabric and features a classic and timeless design that can fit well with a variety of decor styles. The sofa provides ample room for multiple people to sit comfortably. It also features a chaise lounge or a place to stretch out and relax. The L-shape design of the sofa maximizes seating space while also providing a comfortable and inviting space to relax and unwind. The sofa features padded armrests and backrests, providing ample support and comfort for those who sit on it. The cushions are made of high-density foam, ensuring that they are comfortable and retain their shape over time. The sofa also comes with matching throw pillows, adding to the comfort and style of the piece. Overall, a traditional L-shaped sofa is a comfortable and practical piece of furniture that can add both style and functionality to any living room. Its classic and timeless design, comfortable cushions, and ample seating space make it a popular choice for families and anyone who loves to entertain guests in their home.", - "fr": undefined, - }, - "key": "traditional-l-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - { - "name": "productspec", - "value": { - "de-DE": "- Baumwollbezug -- Wurfkissen um Lieferumfang enthalten -- Selbstmontage", - "en-GB": "- Cotton upholstery -- Comes with accent pillows -- Assembly on site", - "en-US": "- Cotton upholstery -- Comes with accent pillows -- Assembly on site", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "the-traditionalist", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das traditionelle Ecksofa ist ein bequemes und praktisches Möbelstück. Das Sofa ist mit einem strapazierfähigen und hochwertigen Baumwollstoff bezogen und überzeugt mit einem klassischen und zeitlosen Design, das gut zu einer Vielzahl von Einrichtungsstilen passt. Das Sofa bietet ausreichend Platz und Komfort für mehrere Personen. Es kann wie eine Chaiselongue genutzt werden und bietet einen Platz zum Ausstrecken und Entspannen. Das L-förmige Design des Sofas maximiert den Sitzplatz und bietet gleichzeitig einen komfortablen und einladenden Ort zum Entspannen und Erholen. Das Sofa ist mit gepolsterten Armlehnen und Rückenlehnen ausgestattet, die dem Sitzenden ausreichend Halt und Komfort bieten. Die Kissen bestehen aus hochdichtem Schaumstoff, der die Form hält und das gute Sitzgefühl wahrt. Das Sofa wird darüber hinaus mit passenden Wurfkissen geliefert, die den Komfort und Stil des Sofas weiter unterstützen. Das traditionelle L-förmiges Sofa ist ein bequemes und praktisches Möbelstück, das jedem Wohnzimmer sowohl Stil als auch Funktionalität verleiht. Sein klassisches und zeitloses Design, die bequemen Kissen und die großzügige Sitzfläche machen es zu einer beliebten Wahl für Familien und alle, die gerne Gäste in ihrem Zuhause zu empfangen.", + "en": undefined, + "en-GB": "A traditional L-shaped sofa is a comfortable and practical piece of furniture. The sofa is upholstered in a durable and high-quality fabric and features a classic and timeless design that can fit well with a variety of decor styles. The sofa provides ample room for multiple people to sit comfortably. It also features a chaise lounge or a place to stretch out and relax. The L-shape design of the sofa maximizes seating space while also providing a comfortable and inviting space to relax and unwind. The sofa features padded armrests and backrests, providing ample support and comfort for those who sit on it. The cushions are made of high-density foam, ensuring that they are comfortable and retain their shape over time. The sofa also comes with matching throw pillows, adding to the comfort and style of the piece. Overall, a traditional L-shaped sofa is a comfortable and practical piece of furniture that can add both style and functionality to any living room. Its classic and timeless design, comfortable cushions, and ample seating space make it a popular choice for families and anyone who loves to entertain guests in their home.", + "en-US": "A traditional L-shaped sofa is a comfortable and practical piece of furniture. The sofa is upholstered in a durable and high-quality fabric and features a classic and timeless design that can fit well with a variety of decor styles. The sofa provides ample room for multiple people to sit comfortably. It also features a chaise lounge or a place to stretch out and relax. The L-shape design of the sofa maximizes seating space while also providing a comfortable and inviting space to relax and unwind. The sofa features padded armrests and backrests, providing ample support and comfort for those who sit on it. The cushions are made of high-density foam, ensuring that they are comfortable and retain their shape over time. The sofa also comes with matching throw pillows, adding to the comfort and style of the piece. Overall, a traditional L-shaped sofa is a comfortable and practical piece of furniture that can add both style and functionality to any living room. Its classic and timeless design, comfortable cushions, and ample seating space make it a popular choice for families and anyone who loves to entertain guests in their home.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "key": "traditional-l-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + { + "name": "productspec", + "value": { + "de-DE": "- Baumwollbezug + - Wurfkissen um Lieferumfang enthalten + - Selbstmontage", + "en-GB": "- Cotton upholstery + - Comes with accent pillows + - Assembly on site", + "en-US": "- Cotton upholstery + - Comes with accent pillows + - Assembly on site", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 359900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 359900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 359900, + "currencyCode": "USD", + }, + }, + ], + "sku": "TLSS-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Traditionelles Ecksofa", + "en": undefined, + "en-GB": "Traditional L Seater Sofa", + "en-US": "Traditional L Seater Sofa", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 359900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 359900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "traditionelles-l-sitzer-sofa", + "en": undefined, + "en-GB": "traditional-l-seater-sofa", + "en-US": "traditional-l-seater-sofa", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 359900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TLSS-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Traditionelles Ecksofa", - "en": undefined, - "en-GB": "Traditional L Seater Sofa", - "en-US": "Traditional L Seater Sofa", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "traditionelles-l-sitzer-sofa", - "en": undefined, - "en-GB": "traditional-l-seater-sofa", - "en-US": "traditional-l-seater-sofa", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a traditionalLSeaterSofa preset when built for graphql`, () => { const traditionalLSeaterSofaPresetGraphql = traditionalLSeaterSofa().buildGraphql(); expect(traditionalLSeaterSofaPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "the-traditionalist", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A traditional L-shaped sofa is a comfortable and practical piece of furniture. The sofa is upholstered in a durable and high-quality fabric and features a classic and timeless design that can fit well with a variety of decor styles. The sofa provides ample room for multiple people to sit comfortably. It also features a chaise lounge or a place to stretch out and relax. The L-shape design of the sofa maximizes seating space while also providing a comfortable and inviting space to relax and unwind. The sofa features padded armrests and backrests, providing ample support and comfort for those who sit on it. The cushions are made of high-density foam, ensuring that they are comfortable and retain their shape over time. The sofa also comes with matching throw pillows, adding to the comfort and style of the piece. Overall, a traditional L-shaped sofa is a comfortable and practical piece of furniture that can add both style and functionality to any living room. Its classic and timeless design, comfortable cushions, and ample seating space make it a popular choice for families and anyone who loves to entertain guests in their home.", - }, - { - "locale": "de-DE", - "value": "Das traditionelle Ecksofa ist ein bequemes und praktisches Möbelstück. Das Sofa ist mit einem strapazierfähigen und hochwertigen Baumwollstoff bezogen und überzeugt mit einem klassischen und zeitlosen Design, das gut zu einer Vielzahl von Einrichtungsstilen passt. Das Sofa bietet ausreichend Platz und Komfort für mehrere Personen. Es kann wie eine Chaiselongue genutzt werden und bietet einen Platz zum Ausstrecken und Entspannen. Das L-förmige Design des Sofas maximiert den Sitzplatz und bietet gleichzeitig einen komfortablen und einladenden Ort zum Entspannen und Erholen. Das Sofa ist mit gepolsterten Armlehnen und Rückenlehnen ausgestattet, die dem Sitzenden ausreichend Halt und Komfort bieten. Die Kissen bestehen aus hochdichtem Schaumstoff, der die Form hält und das gute Sitzgefühl wahrt. Das Sofa wird darüber hinaus mit passenden Wurfkissen geliefert, die den Komfort und Stil des Sofas weiter unterstützen. Das traditionelle L-förmiges Sofa ist ein bequemes und praktisches Möbelstück, das jedem Wohnzimmer sowohl Stil als auch Funktionalität verleiht. Sein klassisches und zeitloses Design, die bequemen Kissen und die großzügige Sitzfläche machen es zu einer beliebten Wahl für Familien und alle, die gerne Gäste in ihrem Zuhause zu empfangen.", - }, - { - "locale": "en-GB", - "value": "A traditional L-shaped sofa is a comfortable and practical piece of furniture. The sofa is upholstered in a durable and high-quality fabric and features a classic and timeless design that can fit well with a variety of decor styles. The sofa provides ample room for multiple people to sit comfortably. It also features a chaise lounge or a place to stretch out and relax. The L-shape design of the sofa maximizes seating space while also providing a comfortable and inviting space to relax and unwind. The sofa features padded armrests and backrests, providing ample support and comfort for those who sit on it. The cushions are made of high-density foam, ensuring that they are comfortable and retain their shape over time. The sofa also comes with matching throw pillows, adding to the comfort and style of the piece. Overall, a traditional L-shaped sofa is a comfortable and practical piece of furniture that can add both style and functionality to any living room. Its classic and timeless design, comfortable cushions, and ample seating space make it a popular choice for families and anyone who loves to entertain guests in their home.", - }, - ], - "key": "traditional-l-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "color", - "value": "{"en-US":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - { - "name": "productspec", - "value": "{"en-US":"- Cotton upholstery\\n- Comes with accent pillows\\n- Assembly on site","en-GB":"- Cotton upholstery\\n- Comes with accent pillows\\n- Assembly on site","de-DE":"- Baumwollbezug\\n- Wurfkissen um Lieferumfang enthalten\\n- Selbstmontage"}", - }, - ], - "images": [ { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.2.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.3.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 359900, - "currencyCode": "EUR", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "the-traditionalist", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A traditional L-shaped sofa is a comfortable and practical piece of furniture. The sofa is upholstered in a durable and high-quality fabric and features a classic and timeless design that can fit well with a variety of decor styles. The sofa provides ample room for multiple people to sit comfortably. It also features a chaise lounge or a place to stretch out and relax. The L-shape design of the sofa maximizes seating space while also providing a comfortable and inviting space to relax and unwind. The sofa features padded armrests and backrests, providing ample support and comfort for those who sit on it. The cushions are made of high-density foam, ensuring that they are comfortable and retain their shape over time. The sofa also comes with matching throw pillows, adding to the comfort and style of the piece. Overall, a traditional L-shaped sofa is a comfortable and practical piece of furniture that can add both style and functionality to any living room. Its classic and timeless design, comfortable cushions, and ample seating space make it a popular choice for families and anyone who loves to entertain guests in their home.", + }, + { + "locale": "de-DE", + "value": "Das traditionelle Ecksofa ist ein bequemes und praktisches Möbelstück. Das Sofa ist mit einem strapazierfähigen und hochwertigen Baumwollstoff bezogen und überzeugt mit einem klassischen und zeitlosen Design, das gut zu einer Vielzahl von Einrichtungsstilen passt. Das Sofa bietet ausreichend Platz und Komfort für mehrere Personen. Es kann wie eine Chaiselongue genutzt werden und bietet einen Platz zum Ausstrecken und Entspannen. Das L-förmige Design des Sofas maximiert den Sitzplatz und bietet gleichzeitig einen komfortablen und einladenden Ort zum Entspannen und Erholen. Das Sofa ist mit gepolsterten Armlehnen und Rückenlehnen ausgestattet, die dem Sitzenden ausreichend Halt und Komfort bieten. Die Kissen bestehen aus hochdichtem Schaumstoff, der die Form hält und das gute Sitzgefühl wahrt. Das Sofa wird darüber hinaus mit passenden Wurfkissen geliefert, die den Komfort und Stil des Sofas weiter unterstützen. Das traditionelle L-förmiges Sofa ist ein bequemes und praktisches Möbelstück, das jedem Wohnzimmer sowohl Stil als auch Funktionalität verleiht. Sein klassisches und zeitloses Design, die bequemen Kissen und die großzügige Sitzfläche machen es zu einer beliebten Wahl für Familien und alle, die gerne Gäste in ihrem Zuhause zu empfangen.", + }, + { + "locale": "en-GB", + "value": "A traditional L-shaped sofa is a comfortable and practical piece of furniture. The sofa is upholstered in a durable and high-quality fabric and features a classic and timeless design that can fit well with a variety of decor styles. The sofa provides ample room for multiple people to sit comfortably. It also features a chaise lounge or a place to stretch out and relax. The L-shape design of the sofa maximizes seating space while also providing a comfortable and inviting space to relax and unwind. The sofa features padded armrests and backrests, providing ample support and comfort for those who sit on it. The cushions are made of high-density foam, ensuring that they are comfortable and retain their shape over time. The sofa also comes with matching throw pillows, adding to the comfort and style of the piece. Overall, a traditional L-shaped sofa is a comfortable and practical piece of furniture that can add both style and functionality to any living room. Its classic and timeless design, comfortable cushions, and ample seating space make it a popular choice for families and anyone who loves to entertain guests in their home.", + }, + ], + "key": "traditional-l-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "color", + "value": "{"en-US":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + { + "name": "productspec", + "value": "{"en-US":"- Cotton upholstery\\n- Comes with accent pillows\\n- Assembly on site","en-GB":"- Cotton upholstery\\n- Comes with accent pillows\\n- Assembly on site","de-DE":"- Baumwollbezug\\n- Wurfkissen um Lieferumfang enthalten\\n- Selbstmontage"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.2.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_L_Seater_Sofa-1.3.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 359900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 359900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "359900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 359900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TLSS-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 359900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Traditional L Seater Sofa", + }, + { + "locale": "en-GB", + "value": "Traditional L Seater Sofa", }, + { + "locale": "de-DE", + "value": "Traditionelles Ecksofa", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 359900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "traditional-l-seater-sofa", + }, + { + "locale": "en-GB", + "value": "traditional-l-seater-sofa", + }, + { + "locale": "de-DE", + "value": "traditionelles-l-sitzer-sofa", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TLSS-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Traditional L Seater Sofa", - }, - { - "locale": "en-GB", - "value": "Traditional L Seater Sofa", - }, - { - "locale": "de-DE", - "value": "Traditionelles Ecksofa", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "traditional-l-seater-sofa", - }, - { - "locale": "en-GB", - "value": "traditional-l-seater-sofa", - }, - { - "locale": "de-DE", - "value": "traditionelles-l-sitzer-sofa", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa.spec.ts index f79d8cce7..4ab920da9 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/traditional-three-seater-sofa.spec.ts @@ -6,379 +6,379 @@ describe(`with traditionalThreeSeaterSofa preset`, () => { const traditionalThreeSeaterSofaPreset = traditionalThreeSeaterSofa().build(); expect(traditionalThreeSeaterSofaPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "the-traditionalist", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das traditionelle Dreisitzer-Sofa ist ein klassisches und elegantes Möbelstück, das jedem Wohnzimmer oder Sitzbereich einen Hauch von Raffinesse verleiht. Das Sofa ist mit einem robusten Holzrahmen konzipiert, der auf Langlebigkeit und Stabilität ausgelegt ist und sicherstellt, dass das Sofa einer regelmäßigen Nutzung im Laufe der Zeit standhält. Das Sofa ist mit einem smaragdfarbenem Stoff bezogen - ein wahrer Hingucker in jedem Raum. Der Stoff fühlt sich weich und angenehm an, sodass dem stilvollen Entspannen nichts mehr im Wege steht. Das Sofa ist mit zwei großen Kissen ausgestattet, die mit hochwertigem Schaumstoffmaterial gefüllt sind und bei längerem Sitzen hervorragenden Halt und Komfort bieten. Die Rückenlehne und die Armlehnen des Sofas sind mit einem weichen und plüschigen Material gefüllt, sodass Sie nach einem langen Tag in das Sofa sinken und sich entspannen können. Das traditionelle Dreisitzer-Sofa ist ein vielseitiges Möbelstück, das eine Reihe von Einrichtungsstilen ergänzen kann, von klassisch und traditionell bis hin zu modern. Es kann mit einer Vielzahl von dekorativen Akzenten wie Kissen, Überwürfen und Teppichen kombiniert werden, um einen zusammenhängenden und stilvollen Wohnraum zu schaffen. Das traditionelle Dreisitzer-Sofa aus smaragdgrünem Stoff ist ein zeitloses und elegantes Möbelstück, das jedem Wohnzimmer oder Sitzbereich sowohl Komfort als auch Stil verleiht. Sein klassisches Design, die hochwertigen Materialien und seine Funktionalität machen es zu einer funktionalen und stilvollen Wahl für jedes Zuhause.", - "en": undefined, - "en-GB": "A traditional three-seater sofa is a classic and elegant piece of furniture that can add a touch of sophistication to any living room or sitting area. The sofa features a sturdy wooden frame that is designed to provide durability and stability, ensuring that the sofa can withstand regular use over time. The sofa is upholstered in a rich emerald-colored fabric, providing a vibrant and eye-catching focal point in the room. The fabric is soft and comfortable to the touch, allowing you to relax and unwind in style. The sofa is equipped with two large cushions, which are filled with a high-quality foam material, providing excellent support and comfort for extended periods of sitting. The backrest and armrests of the sofa are filled with a soft and plush material, allowing you to sink into the sofa and relax after a long day. The traditional three-seater sofa is a versatile piece of furniture that can complement a range of interior design styles, from classic and traditional to more modern and eclectic. It can be paired with a variety of decorative accents, such as pillows, throws, and rugs, to create a cohesive and stylish living space. Overall, a traditional three-seater sofa in emerald fabric is a timeless and elegant piece of furniture that can provide both comfort and style to any living room or sitting area. Its classic design, high-quality materials, and practical features make it a functional and stylish choice for any home.", - "en-US": "A traditional three-seater sofa is a classic and elegant piece of furniture that can add a touch of sophistication to any living room or sitting area. The sofa features a sturdy wooden frame that is designed to provide durability and stability, ensuring that the sofa can withstand regular use over time. The sofa is upholstered in a rich emerald-colored fabric, providing a vibrant and eye-catching focal point in the room. The fabric is soft and comfortable to the touch, allowing you to relax and unwind in style. The sofa is equipped with two large cushions, which are filled with a high-quality foam material, providing excellent support and comfort for extended periods of sitting. The backrest and armrests of the sofa are filled with a soft and plush material, allowing you to sink into the sofa and relax after a long day. The traditional three-seater sofa is a versatile piece of furniture that can complement a range of interior design styles, from classic and traditional to more modern and eclectic. It can be paired with a variety of decorative accents, such as pillows, throws, and rugs, to create a cohesive and stylish living space. Overall, a traditional three-seater sofa in emerald fabric is a timeless and elegant piece of furniture that can provide both comfort and style to any living room or sitting area. Its classic design, high-quality materials, and practical features make it a functional and stylish choice for any home.", - "fr": undefined, - }, - "key": "traditional-three-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Dreisitzer -- Samtbezug -- Selbstmontage", - "en-GB": "- Three seater sofa -- Velvet upholstery -- Assembly on site", - "en-US": "- Three seater sofa -- Velvet upholstery -- Assembly on site", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Mittel meer grün:#3CB371", - "en-GB": "Medium Sea Green:#3CB371", - "en-US": "Medium Sea Green:#3CB371", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "the-traditionalist", + "typeId": "category", + }, + { + "key": "collections", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das traditionelle Dreisitzer-Sofa ist ein klassisches und elegantes Möbelstück, das jedem Wohnzimmer oder Sitzbereich einen Hauch von Raffinesse verleiht. Das Sofa ist mit einem robusten Holzrahmen konzipiert, der auf Langlebigkeit und Stabilität ausgelegt ist und sicherstellt, dass das Sofa einer regelmäßigen Nutzung im Laufe der Zeit standhält. Das Sofa ist mit einem smaragdfarbenem Stoff bezogen - ein wahrer Hingucker in jedem Raum. Der Stoff fühlt sich weich und angenehm an, sodass dem stilvollen Entspannen nichts mehr im Wege steht. Das Sofa ist mit zwei großen Kissen ausgestattet, die mit hochwertigem Schaumstoffmaterial gefüllt sind und bei längerem Sitzen hervorragenden Halt und Komfort bieten. Die Rückenlehne und die Armlehnen des Sofas sind mit einem weichen und plüschigen Material gefüllt, sodass Sie nach einem langen Tag in das Sofa sinken und sich entspannen können. Das traditionelle Dreisitzer-Sofa ist ein vielseitiges Möbelstück, das eine Reihe von Einrichtungsstilen ergänzen kann, von klassisch und traditionell bis hin zu modern. Es kann mit einer Vielzahl von dekorativen Akzenten wie Kissen, Überwürfen und Teppichen kombiniert werden, um einen zusammenhängenden und stilvollen Wohnraum zu schaffen. Das traditionelle Dreisitzer-Sofa aus smaragdgrünem Stoff ist ein zeitloses und elegantes Möbelstück, das jedem Wohnzimmer oder Sitzbereich sowohl Komfort als auch Stil verleiht. Sein klassisches Design, die hochwertigen Materialien und seine Funktionalität machen es zu einer funktionalen und stilvollen Wahl für jedes Zuhause.", + "en": undefined, + "en-GB": "A traditional three-seater sofa is a classic and elegant piece of furniture that can add a touch of sophistication to any living room or sitting area. The sofa features a sturdy wooden frame that is designed to provide durability and stability, ensuring that the sofa can withstand regular use over time. The sofa is upholstered in a rich emerald-colored fabric, providing a vibrant and eye-catching focal point in the room. The fabric is soft and comfortable to the touch, allowing you to relax and unwind in style. The sofa is equipped with two large cushions, which are filled with a high-quality foam material, providing excellent support and comfort for extended periods of sitting. The backrest and armrests of the sofa are filled with a soft and plush material, allowing you to sink into the sofa and relax after a long day. The traditional three-seater sofa is a versatile piece of furniture that can complement a range of interior design styles, from classic and traditional to more modern and eclectic. It can be paired with a variety of decorative accents, such as pillows, throws, and rugs, to create a cohesive and stylish living space. Overall, a traditional three-seater sofa in emerald fabric is a timeless and elegant piece of furniture that can provide both comfort and style to any living room or sitting area. Its classic design, high-quality materials, and practical features make it a functional and stylish choice for any home.", + "en-US": "A traditional three-seater sofa is a classic and elegant piece of furniture that can add a touch of sophistication to any living room or sitting area. The sofa features a sturdy wooden frame that is designed to provide durability and stability, ensuring that the sofa can withstand regular use over time. The sofa is upholstered in a rich emerald-colored fabric, providing a vibrant and eye-catching focal point in the room. The fabric is soft and comfortable to the touch, allowing you to relax and unwind in style. The sofa is equipped with two large cushions, which are filled with a high-quality foam material, providing excellent support and comfort for extended periods of sitting. The backrest and armrests of the sofa are filled with a soft and plush material, allowing you to sink into the sofa and relax after a long day. The traditional three-seater sofa is a versatile piece of furniture that can complement a range of interior design styles, from classic and traditional to more modern and eclectic. It can be paired with a variety of decorative accents, such as pillows, throws, and rugs, to create a cohesive and stylish living space. Overall, a traditional three-seater sofa in emerald fabric is a timeless and elegant piece of furniture that can provide both comfort and style to any living room or sitting area. Its classic design, high-quality materials, and practical features make it a functional and stylish choice for any home.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.3.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "key": "traditional-three-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Dreisitzer + - Samtbezug + - Selbstmontage", + "en-GB": "- Three seater sofa + - Velvet upholstery + - Assembly on site", + "en-US": "- Three seater sofa + - Velvet upholstery + - Assembly on site", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Mittel meer grün:#3CB371", + "en-GB": "Medium Sea Green:#3CB371", + "en-US": "Medium Sea Green:#3CB371", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.3.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "h": 3840, + "w": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 239900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 239900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 239900, + "currencyCode": "USD", + }, + }, + ], + "sku": "TTSS-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "h": 3840, - "w": 5760, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Traditionelles Dreisitzer-Sofa", + "en": undefined, + "en-GB": "Traditional Three Seater Sofa", + "en-US": "Traditional Three Seater Sofa", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 239900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 239900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "traditionelles-dreisitzer-sofa", + "en": undefined, + "en-GB": "traditional-three-seater-sofa", + "en-US": "traditional-three-seater-sofa", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 239900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TTSS-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Traditionelles Dreisitzer-Sofa", - "en": undefined, - "en-GB": "Traditional Three Seater Sofa", - "en-US": "Traditional Three Seater Sofa", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "traditionelles-dreisitzer-sofa", - "en": undefined, - "en-GB": "traditional-three-seater-sofa", - "en-US": "traditional-three-seater-sofa", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a traditionalThreeSeaterSofa preset when built for graphql`, () => { const traditionalThreeSeaterSofaPresetGraphql = traditionalThreeSeaterSofa().buildGraphql(); expect(traditionalThreeSeaterSofaPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "sofas", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "new-arrivals", - "typeId": "category", - }, - { - "key": "the-traditionalist", - "typeId": "category", - }, - { - "key": "collections", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A traditional three-seater sofa is a classic and elegant piece of furniture that can add a touch of sophistication to any living room or sitting area. The sofa features a sturdy wooden frame that is designed to provide durability and stability, ensuring that the sofa can withstand regular use over time. The sofa is upholstered in a rich emerald-colored fabric, providing a vibrant and eye-catching focal point in the room. The fabric is soft and comfortable to the touch, allowing you to relax and unwind in style. The sofa is equipped with two large cushions, which are filled with a high-quality foam material, providing excellent support and comfort for extended periods of sitting. The backrest and armrests of the sofa are filled with a soft and plush material, allowing you to sink into the sofa and relax after a long day. The traditional three-seater sofa is a versatile piece of furniture that can complement a range of interior design styles, from classic and traditional to more modern and eclectic. It can be paired with a variety of decorative accents, such as pillows, throws, and rugs, to create a cohesive and stylish living space. Overall, a traditional three-seater sofa in emerald fabric is a timeless and elegant piece of furniture that can provide both comfort and style to any living room or sitting area. Its classic design, high-quality materials, and practical features make it a functional and stylish choice for any home.", - }, - { - "locale": "de-DE", - "value": "Das traditionelle Dreisitzer-Sofa ist ein klassisches und elegantes Möbelstück, das jedem Wohnzimmer oder Sitzbereich einen Hauch von Raffinesse verleiht. Das Sofa ist mit einem robusten Holzrahmen konzipiert, der auf Langlebigkeit und Stabilität ausgelegt ist und sicherstellt, dass das Sofa einer regelmäßigen Nutzung im Laufe der Zeit standhält. Das Sofa ist mit einem smaragdfarbenem Stoff bezogen - ein wahrer Hingucker in jedem Raum. Der Stoff fühlt sich weich und angenehm an, sodass dem stilvollen Entspannen nichts mehr im Wege steht. Das Sofa ist mit zwei großen Kissen ausgestattet, die mit hochwertigem Schaumstoffmaterial gefüllt sind und bei längerem Sitzen hervorragenden Halt und Komfort bieten. Die Rückenlehne und die Armlehnen des Sofas sind mit einem weichen und plüschigen Material gefüllt, sodass Sie nach einem langen Tag in das Sofa sinken und sich entspannen können. Das traditionelle Dreisitzer-Sofa ist ein vielseitiges Möbelstück, das eine Reihe von Einrichtungsstilen ergänzen kann, von klassisch und traditionell bis hin zu modern. Es kann mit einer Vielzahl von dekorativen Akzenten wie Kissen, Überwürfen und Teppichen kombiniert werden, um einen zusammenhängenden und stilvollen Wohnraum zu schaffen. Das traditionelle Dreisitzer-Sofa aus smaragdgrünem Stoff ist ein zeitloses und elegantes Möbelstück, das jedem Wohnzimmer oder Sitzbereich sowohl Komfort als auch Stil verleiht. Sein klassisches Design, die hochwertigen Materialien und seine Funktionalität machen es zu einer funktionalen und stilvollen Wahl für jedes Zuhause.", - }, - { - "locale": "en-GB", - "value": "A traditional three-seater sofa is a classic and elegant piece of furniture that can add a touch of sophistication to any living room or sitting area. The sofa features a sturdy wooden frame that is designed to provide durability and stability, ensuring that the sofa can withstand regular use over time. The sofa is upholstered in a rich emerald-colored fabric, providing a vibrant and eye-catching focal point in the room. The fabric is soft and comfortable to the touch, allowing you to relax and unwind in style. The sofa is equipped with two large cushions, which are filled with a high-quality foam material, providing excellent support and comfort for extended periods of sitting. The backrest and armrests of the sofa are filled with a soft and plush material, allowing you to sink into the sofa and relax after a long day. The traditional three-seater sofa is a versatile piece of furniture that can complement a range of interior design styles, from classic and traditional to more modern and eclectic. It can be paired with a variety of decorative accents, such as pillows, throws, and rugs, to create a cohesive and stylish living space. Overall, a traditional three-seater sofa in emerald fabric is a timeless and elegant piece of furniture that can provide both comfort and style to any living room or sitting area. Its classic design, high-quality materials, and practical features make it a functional and stylish choice for any home.", - }, - ], - "key": "traditional-three-seater-sofa", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-US":"- Three seater sofa\\n- Velvet upholstery\\n- Assembly on site","en-GB":"- Three seater sofa\\n- Velvet upholstery\\n- Assembly on site","de-DE":"- Dreisitzer\\n- Samtbezug\\n- Selbstmontage"}", - }, - { - "name": "color", - "value": "{"en-US":"Medium Sea Green:#3CB371","en-GB":"Medium Sea Green:#3CB371","de-DE":"Mittel meer grün:#3CB371"}", - }, - { - "name": "finish", - "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - ], - "images": [ { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.3.jpeg", - }, - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.1.jpeg", - }, - { - "dimensions": { - "height": 3840, - "width": 5760, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 239900, - "currencyCode": "EUR", + "categories": [ + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "sofas", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "new-arrivals", + "typeId": "category", + }, + { + "key": "the-traditionalist", + "typeId": "category", }, + { + "key": "collections", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A traditional three-seater sofa is a classic and elegant piece of furniture that can add a touch of sophistication to any living room or sitting area. The sofa features a sturdy wooden frame that is designed to provide durability and stability, ensuring that the sofa can withstand regular use over time. The sofa is upholstered in a rich emerald-colored fabric, providing a vibrant and eye-catching focal point in the room. The fabric is soft and comfortable to the touch, allowing you to relax and unwind in style. The sofa is equipped with two large cushions, which are filled with a high-quality foam material, providing excellent support and comfort for extended periods of sitting. The backrest and armrests of the sofa are filled with a soft and plush material, allowing you to sink into the sofa and relax after a long day. The traditional three-seater sofa is a versatile piece of furniture that can complement a range of interior design styles, from classic and traditional to more modern and eclectic. It can be paired with a variety of decorative accents, such as pillows, throws, and rugs, to create a cohesive and stylish living space. Overall, a traditional three-seater sofa in emerald fabric is a timeless and elegant piece of furniture that can provide both comfort and style to any living room or sitting area. Its classic design, high-quality materials, and practical features make it a functional and stylish choice for any home.", + }, + { + "locale": "de-DE", + "value": "Das traditionelle Dreisitzer-Sofa ist ein klassisches und elegantes Möbelstück, das jedem Wohnzimmer oder Sitzbereich einen Hauch von Raffinesse verleiht. Das Sofa ist mit einem robusten Holzrahmen konzipiert, der auf Langlebigkeit und Stabilität ausgelegt ist und sicherstellt, dass das Sofa einer regelmäßigen Nutzung im Laufe der Zeit standhält. Das Sofa ist mit einem smaragdfarbenem Stoff bezogen - ein wahrer Hingucker in jedem Raum. Der Stoff fühlt sich weich und angenehm an, sodass dem stilvollen Entspannen nichts mehr im Wege steht. Das Sofa ist mit zwei großen Kissen ausgestattet, die mit hochwertigem Schaumstoffmaterial gefüllt sind und bei längerem Sitzen hervorragenden Halt und Komfort bieten. Die Rückenlehne und die Armlehnen des Sofas sind mit einem weichen und plüschigen Material gefüllt, sodass Sie nach einem langen Tag in das Sofa sinken und sich entspannen können. Das traditionelle Dreisitzer-Sofa ist ein vielseitiges Möbelstück, das eine Reihe von Einrichtungsstilen ergänzen kann, von klassisch und traditionell bis hin zu modern. Es kann mit einer Vielzahl von dekorativen Akzenten wie Kissen, Überwürfen und Teppichen kombiniert werden, um einen zusammenhängenden und stilvollen Wohnraum zu schaffen. Das traditionelle Dreisitzer-Sofa aus smaragdgrünem Stoff ist ein zeitloses und elegantes Möbelstück, das jedem Wohnzimmer oder Sitzbereich sowohl Komfort als auch Stil verleiht. Sein klassisches Design, die hochwertigen Materialien und seine Funktionalität machen es zu einer funktionalen und stilvollen Wahl für jedes Zuhause.", + }, + { + "locale": "en-GB", + "value": "A traditional three-seater sofa is a classic and elegant piece of furniture that can add a touch of sophistication to any living room or sitting area. The sofa features a sturdy wooden frame that is designed to provide durability and stability, ensuring that the sofa can withstand regular use over time. The sofa is upholstered in a rich emerald-colored fabric, providing a vibrant and eye-catching focal point in the room. The fabric is soft and comfortable to the touch, allowing you to relax and unwind in style. The sofa is equipped with two large cushions, which are filled with a high-quality foam material, providing excellent support and comfort for extended periods of sitting. The backrest and armrests of the sofa are filled with a soft and plush material, allowing you to sink into the sofa and relax after a long day. The traditional three-seater sofa is a versatile piece of furniture that can complement a range of interior design styles, from classic and traditional to more modern and eclectic. It can be paired with a variety of decorative accents, such as pillows, throws, and rugs, to create a cohesive and stylish living space. Overall, a traditional three-seater sofa in emerald fabric is a timeless and elegant piece of furniture that can provide both comfort and style to any living room or sitting area. Its classic design, high-quality materials, and practical features make it a functional and stylish choice for any home.", + }, + ], + "key": "traditional-three-seater-sofa", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-US":"- Three seater sofa\\n- Velvet upholstery\\n- Assembly on site","en-GB":"- Three seater sofa\\n- Velvet upholstery\\n- Assembly on site","de-DE":"- Dreisitzer\\n- Samtbezug\\n- Selbstmontage"}", + }, + { + "name": "color", + "value": "{"en-US":"Medium Sea Green:#3CB371","en-GB":"Medium Sea Green:#3CB371","de-DE":"Mittel meer grün:#3CB371"}", + }, + { + "name": "finish", + "value": "{"en-US":"Saddle Brown:#8b4513","en-GB":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.3.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.1.jpeg", + }, + { + "dimensions": { + "height": 3840, + "width": 5760, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Traditional_Three_Seater_Sofa-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 239900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 239900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "239900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 239900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TTSS-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 239900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Traditional Three Seater Sofa", }, + { + "locale": "en-GB", + "value": "Traditional Three Seater Sofa", + }, + { + "locale": "de-DE", + "value": "Traditionelles Dreisitzer-Sofa", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 239900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "traditional-three-seater-sofa", + }, + { + "locale": "en-GB", + "value": "traditional-three-seater-sofa", + }, + { + "locale": "de-DE", + "value": "traditionelles-dreisitzer-sofa", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TTSS-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Traditional Three Seater Sofa", - }, - { - "locale": "en-GB", - "value": "Traditional Three Seater Sofa", - }, - { - "locale": "de-DE", - "value": "Traditionelles Dreisitzer-Sofa", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "traditional-three-seater-sofa", - }, - { - "locale": "en-GB", - "value": "traditional-three-seater-sofa", - }, - { - "locale": "de-DE", - "value": "traditionelles-dreisitzer-sofa", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug.spec.ts index fa6a53385..b33dfed24 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/travel-coffee-mug.spec.ts @@ -5,320 +5,320 @@ describe(`with travelCoffeeMug preset`, () => { it(`should return a travelCoffeeMug preset`, () => { const travelCoffeeMugPreset = travelCoffeeMug().build(); expect(travelCoffeeMugPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Diese praktische Reisetasse ist für unterwegs konzipiert. Der Becher hat ein Fassungsvermögen von etwa 12 bis 20 Unzen und ist so konzipiert, dass er Getränke über einen längeren Zeitraum heiß oder kalt hält. Dies wird durch die Verwendung einer Isolierschicht erreicht, die dazu beiträgt, die Temperatur des Getränks im Inneren des Bechers aufrechtzuerhalten. Die Reisetasse hat eine Vielzahl von Funktionen, darunter einen auslaufsicheren Deckel, der sicher befestigt werden kann, um ein Auslaufen oder Verschütten zu verhindern, und einen Henkel, der das Halten auch beim Gehen oder Fahren erleichtert. Dieser Reisekaffeebecher ist auf den Gebrauch in Kombination mit Standard-Getränkehaltern in Autos angepasst. Die Reisetasse ist ein praktisches Trinkgefäß und der ideale Begleiter für all diejenigen, die unterwegs auf ein heißes oder kaltes Getränk nicht verzichten möchten. Seine robuste Konstruktion und sein isoliertes Design machen sie zu einer beliebten Wahl für Pendler, Reisende und Outdoor-Enthusiasten.", - "en": undefined, - "en-GB": "The Travel Coffee Mug is designed for use on the go. The mug has a capacity of around 12 to 20 ounces, and is designed to keep beverages hot or cold for an extended period of time. This is achieved through the use of insulation, which helps to maintain the temperature of the drink inside the mug. The Travel Coffee Mug has a variety of features, including a spill-proof lid that can be securely fastened to prevent leaks or spills and a handle or grip that makes it easy to hold, even while walking or driving. This travel coffee mug is designed to fit into standard cup holders in cars. Overall, this travel coffee mug is a practical and convenient type of drinking vessel that is ideal for anyone who enjoys a hot or cold beverage while on the go. Its durable construction and insulated design make it a popular choice for commuters, travelers, and outdoor enthusiasts alike.", - "en-US": "The Travel Coffee Mug is designed for use on the go. The mug has a capacity of around 12 to 20 ounces, and is designed to keep beverages hot or cold for an extended period of time. This is achieved through the use of insulation, which helps to maintain the temperature of the drink inside the mug. The Travel Coffee Mug has a variety of features, including a spill-proof lid that can be securely fastened to prevent leaks or spills and a handle or grip that makes it easy to hold, even while walking or driving. This travel coffee mug is designed to fit into standard cup holders in cars. Overall, this travel coffee mug is a practical and convenient type of drinking vessel that is ideal for anyone who enjoys a hot or cold beverage while on the go. Its durable construction and insulated design make it a popular choice for commuters, travelers, and outdoor enthusiasts alike.", - "fr": undefined, - }, - "key": "travel-coffee-mug", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Isoliert -- Sowohl für kalte als auch heiße Getränke geeignet", - "en-GB": "- Insulated -- Suitable for both cold and hot drinks", - "en-US": "- Insulated -- Suitable for both cold and hot drinks", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Diese praktische Reisetasse ist für unterwegs konzipiert. Der Becher hat ein Fassungsvermögen von etwa 12 bis 20 Unzen und ist so konzipiert, dass er Getränke über einen längeren Zeitraum heiß oder kalt hält. Dies wird durch die Verwendung einer Isolierschicht erreicht, die dazu beiträgt, die Temperatur des Getränks im Inneren des Bechers aufrechtzuerhalten. Die Reisetasse hat eine Vielzahl von Funktionen, darunter einen auslaufsicheren Deckel, der sicher befestigt werden kann, um ein Auslaufen oder Verschütten zu verhindern, und einen Henkel, der das Halten auch beim Gehen oder Fahren erleichtert. Dieser Reisekaffeebecher ist auf den Gebrauch in Kombination mit Standard-Getränkehaltern in Autos angepasst. Die Reisetasse ist ein praktisches Trinkgefäß und der ideale Begleiter für all diejenigen, die unterwegs auf ein heißes oder kaltes Getränk nicht verzichten möchten. Seine robuste Konstruktion und sein isoliertes Design machen sie zu einer beliebten Wahl für Pendler, Reisende und Outdoor-Enthusiasten.", + "en": undefined, + "en-GB": "The Travel Coffee Mug is designed for use on the go. The mug has a capacity of around 12 to 20 ounces, and is designed to keep beverages hot or cold for an extended period of time. This is achieved through the use of insulation, which helps to maintain the temperature of the drink inside the mug. The Travel Coffee Mug has a variety of features, including a spill-proof lid that can be securely fastened to prevent leaks or spills and a handle or grip that makes it easy to hold, even while walking or driving. This travel coffee mug is designed to fit into standard cup holders in cars. Overall, this travel coffee mug is a practical and convenient type of drinking vessel that is ideal for anyone who enjoys a hot or cold beverage while on the go. Its durable construction and insulated design make it a popular choice for commuters, travelers, and outdoor enthusiasts alike.", + "en-US": "The Travel Coffee Mug is designed for use on the go. The mug has a capacity of around 12 to 20 ounces, and is designed to keep beverages hot or cold for an extended period of time. This is achieved through the use of insulation, which helps to maintain the temperature of the drink inside the mug. The Travel Coffee Mug has a variety of features, including a spill-proof lid that can be securely fastened to prevent leaks or spills and a handle or grip that makes it easy to hold, even while walking or driving. This travel coffee mug is designed to fit into standard cup holders in cars. Overall, this travel coffee mug is a practical and convenient type of drinking vessel that is ideal for anyone who enjoys a hot or cold beverage while on the go. Its durable construction and insulated design make it a popular choice for commuters, travelers, and outdoor enthusiasts alike.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "key": "travel-coffee-mug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Isoliert + - Sowohl für kalte als auch heiße Getränke geeignet", + "en-GB": "- Insulated + - Suitable for both cold and hot drinks", + "en-US": "- Insulated + - Suitable for both cold and hot drinks", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4000, + "w": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Travel_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + ], + "sku": "TCM-03", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Reise-Kaffeetasse", + "en": undefined, + "en-GB": "Travel Coffee Mug", + "en-US": "Travel Coffee Mug", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4000, - "w": 4000, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Travel_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "reise-kaffeetasse", + "en": undefined, + "en-GB": "travel-coffee-mug", + "en-US": "travel-coffee-mug", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 499, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TCM-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Reise-Kaffeetasse", - "en": undefined, - "en-GB": "Travel Coffee Mug", - "en-US": "Travel Coffee Mug", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "reise-kaffeetasse", - "en": undefined, - "en-GB": "travel-coffee-mug", - "en-US": "travel-coffee-mug", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a travelCoffeeMug preset when built for graphql`, () => { const travelCoffeeMugPresetGraphql = travelCoffeeMug().buildGraphql(); expect(travelCoffeeMugPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "glassware", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "The Travel Coffee Mug is designed for use on the go. The mug has a capacity of around 12 to 20 ounces, and is designed to keep beverages hot or cold for an extended period of time. This is achieved through the use of insulation, which helps to maintain the temperature of the drink inside the mug. The Travel Coffee Mug has a variety of features, including a spill-proof lid that can be securely fastened to prevent leaks or spills and a handle or grip that makes it easy to hold, even while walking or driving. This travel coffee mug is designed to fit into standard cup holders in cars. Overall, this travel coffee mug is a practical and convenient type of drinking vessel that is ideal for anyone who enjoys a hot or cold beverage while on the go. Its durable construction and insulated design make it a popular choice for commuters, travelers, and outdoor enthusiasts alike.", - }, - { - "locale": "de-DE", - "value": "Diese praktische Reisetasse ist für unterwegs konzipiert. Der Becher hat ein Fassungsvermögen von etwa 12 bis 20 Unzen und ist so konzipiert, dass er Getränke über einen längeren Zeitraum heiß oder kalt hält. Dies wird durch die Verwendung einer Isolierschicht erreicht, die dazu beiträgt, die Temperatur des Getränks im Inneren des Bechers aufrechtzuerhalten. Die Reisetasse hat eine Vielzahl von Funktionen, darunter einen auslaufsicheren Deckel, der sicher befestigt werden kann, um ein Auslaufen oder Verschütten zu verhindern, und einen Henkel, der das Halten auch beim Gehen oder Fahren erleichtert. Dieser Reisekaffeebecher ist auf den Gebrauch in Kombination mit Standard-Getränkehaltern in Autos angepasst. Die Reisetasse ist ein praktisches Trinkgefäß und der ideale Begleiter für all diejenigen, die unterwegs auf ein heißes oder kaltes Getränk nicht verzichten möchten. Seine robuste Konstruktion und sein isoliertes Design machen sie zu einer beliebten Wahl für Pendler, Reisende und Outdoor-Enthusiasten.", - }, - { - "locale": "en-GB", - "value": "The Travel Coffee Mug is designed for use on the go. The mug has a capacity of around 12 to 20 ounces, and is designed to keep beverages hot or cold for an extended period of time. This is achieved through the use of insulation, which helps to maintain the temperature of the drink inside the mug. The Travel Coffee Mug has a variety of features, including a spill-proof lid that can be securely fastened to prevent leaks or spills and a handle or grip that makes it easy to hold, even while walking or driving. This travel coffee mug is designed to fit into standard cup holders in cars. Overall, this travel coffee mug is a practical and convenient type of drinking vessel that is ideal for anyone who enjoys a hot or cold beverage while on the go. Its durable construction and insulated design make it a popular choice for commuters, travelers, and outdoor enthusiasts alike.", - }, - ], - "key": "travel-coffee-mug", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Insulated \\n- Suitable for both cold and hot drinks","en-US":"- Insulated \\n- Suitable for both cold and hot drinks","de-DE":"- Isoliert\\n- Sowohl für kalte als auch heiße Getränke geeignet"}", - }, - { - "name": "color", - "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", - }, - ], - "images": [ { - "dimensions": { - "height": 4000, - "width": 4000, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Travel_Coffee_Mug-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "EUR", + "categories": [ + { + "key": "glassware", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "The Travel Coffee Mug is designed for use on the go. The mug has a capacity of around 12 to 20 ounces, and is designed to keep beverages hot or cold for an extended period of time. This is achieved through the use of insulation, which helps to maintain the temperature of the drink inside the mug. The Travel Coffee Mug has a variety of features, including a spill-proof lid that can be securely fastened to prevent leaks or spills and a handle or grip that makes it easy to hold, even while walking or driving. This travel coffee mug is designed to fit into standard cup holders in cars. Overall, this travel coffee mug is a practical and convenient type of drinking vessel that is ideal for anyone who enjoys a hot or cold beverage while on the go. Its durable construction and insulated design make it a popular choice for commuters, travelers, and outdoor enthusiasts alike.", + }, + { + "locale": "de-DE", + "value": "Diese praktische Reisetasse ist für unterwegs konzipiert. Der Becher hat ein Fassungsvermögen von etwa 12 bis 20 Unzen und ist so konzipiert, dass er Getränke über einen längeren Zeitraum heiß oder kalt hält. Dies wird durch die Verwendung einer Isolierschicht erreicht, die dazu beiträgt, die Temperatur des Getränks im Inneren des Bechers aufrechtzuerhalten. Die Reisetasse hat eine Vielzahl von Funktionen, darunter einen auslaufsicheren Deckel, der sicher befestigt werden kann, um ein Auslaufen oder Verschütten zu verhindern, und einen Henkel, der das Halten auch beim Gehen oder Fahren erleichtert. Dieser Reisekaffeebecher ist auf den Gebrauch in Kombination mit Standard-Getränkehaltern in Autos angepasst. Die Reisetasse ist ein praktisches Trinkgefäß und der ideale Begleiter für all diejenigen, die unterwegs auf ein heißes oder kaltes Getränk nicht verzichten möchten. Seine robuste Konstruktion und sein isoliertes Design machen sie zu einer beliebten Wahl für Pendler, Reisende und Outdoor-Enthusiasten.", + }, + { + "locale": "en-GB", + "value": "The Travel Coffee Mug is designed for use on the go. The mug has a capacity of around 12 to 20 ounces, and is designed to keep beverages hot or cold for an extended period of time. This is achieved through the use of insulation, which helps to maintain the temperature of the drink inside the mug. The Travel Coffee Mug has a variety of features, including a spill-proof lid that can be securely fastened to prevent leaks or spills and a handle or grip that makes it easy to hold, even while walking or driving. This travel coffee mug is designed to fit into standard cup holders in cars. Overall, this travel coffee mug is a practical and convenient type of drinking vessel that is ideal for anyone who enjoys a hot or cold beverage while on the go. Its durable construction and insulated design make it a popular choice for commuters, travelers, and outdoor enthusiasts alike.", }, + ], + "key": "travel-coffee-mug", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Insulated \\n- Suitable for both cold and hot drinks","en-US":"- Insulated \\n- Suitable for both cold and hot drinks","de-DE":"- Isoliert\\n- Sowohl für kalte als auch heiße Getränke geeignet"}", + }, + { + "name": "color", + "value": "{"en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF","en-US":"White:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4000, + "width": 4000, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Travel_Coffee_Mug-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "499USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 499, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TCM-03", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Travel Coffee Mug", + }, + { + "locale": "en-GB", + "value": "Travel Coffee Mug", + }, + { + "locale": "de-DE", + "value": "Reise-Kaffeetasse", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 499, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "travel-coffee-mug", + }, + { + "locale": "en-GB", + "value": "travel-coffee-mug", + }, + { + "locale": "de-DE", + "value": "reise-kaffeetasse", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TCM-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Travel Coffee Mug", - }, - { - "locale": "en-GB", - "value": "Travel Coffee Mug", - }, - { - "locale": "de-DE", - "value": "Reise-Kaffeetasse", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "travel-coffee-mug", - }, - { - "locale": "en-GB", - "value": "travel-coffee-mug", - }, - { - "locale": "de-DE", - "value": "reise-kaffeetasse", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair.spec.ts index eb2f55b79..8d28f6e92 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/turner-velvet-armchair.spec.ts @@ -6,321 +6,321 @@ describe(`with turnerVelvetArmchair preset`, () => { const turnerVelvetArmchairPreset = turnerVelvetArmchair().build(); expect(turnerVelvetArmchairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Das Samt-Sitzmöbel mit Beinen aus Ebenholz ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die dunkelblaue Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen modernen Touch. Die Ebenholzbeine des Sessels sind robust und langlebig und bilden eine solide Grundlage für den Sitzbereich. Die Ebenholzfarbe des Gestells verleiht dem Gesamtbild des Stuhls die gewünschte Raffinesse. Die Kombination aus Samt und Ebenholz schafft einen interessanten Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Sessel hat eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Die Armlehnen sind ebenfalls gebogen und bieten eine bequeme Ablagefläche für die Arme. Der Sessel ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", - "en": undefined, - "en-GB": "A velvet chair with ebony legs is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The dark blue color of the velvet fabric is soft and delicate, adding a touch of modernity to the overall look of the chair. The ebony legs of the chair are sturdy and durable, providing a solid foundation for the seating area. The ebony color of the frame adds a touch of sophistication to the overall look of the chair. The combination of the velvet and ebony creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - "en-US": "A velvet chair with ebony legs is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The dark blue color of the velvet fabric is soft and delicate, adding a touch of modernity to the overall look of the chair. The ebony legs of the chair are sturdy and durable, providing a solid foundation for the seating area. The ebony color of the frame adds a touch of sophistication to the overall look of the chair. The combination of the velvet and ebony creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - "fr": undefined, - }, - "key": "turner-velvet-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Nur chemische Reinigung", - "en-GB": "- Dry clean only", - "en-US": "- Dry clean only", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Königs blau:#4169E1", - "en-GB": "Royal Blue:#4169E1", - "en-US": "Royal Blue:#4169E1", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Das Samt-Sitzmöbel mit Beinen aus Ebenholz ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die dunkelblaue Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen modernen Touch. Die Ebenholzbeine des Sessels sind robust und langlebig und bilden eine solide Grundlage für den Sitzbereich. Die Ebenholzfarbe des Gestells verleiht dem Gesamtbild des Stuhls die gewünschte Raffinesse. Die Kombination aus Samt und Ebenholz schafft einen interessanten Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Sessel hat eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Die Armlehnen sind ebenfalls gebogen und bieten eine bequeme Ablagefläche für die Arme. Der Sessel ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", + "en": undefined, + "en-GB": "A velvet chair with ebony legs is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The dark blue color of the velvet fabric is soft and delicate, adding a touch of modernity to the overall look of the chair. The ebony legs of the chair are sturdy and durable, providing a solid foundation for the seating area. The ebony color of the frame adds a touch of sophistication to the overall look of the chair. The combination of the velvet and ebony creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + "en-US": "A velvet chair with ebony legs is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The dark blue color of the velvet fabric is soft and delicate, adding a touch of modernity to the overall look of the chair. The ebony legs of the chair are sturdy and durable, providing a solid foundation for the seating area. The ebony color of the frame adds a touch of sophistication to the overall look of the chair. The combination of the velvet and ebony creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2500, - "w": 2500, + "key": "turner-velvet-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Nur chemische Reinigung", + "en-GB": "- Dry clean only", + "en-US": "- Dry clean only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Königs blau:#4169E1", + "en-GB": "Royal Blue:#4169E1", + "en-US": "Royal Blue:#4169E1", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "h": 2500, + "w": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + ], + "sku": "TARM-03", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.1.jpeg", - }, - { - "dimensions": { - "h": 2500, - "w": 2500, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Samtsessel >Turner<", + "en": undefined, + "en-GB": "Turner Velvet Armchair", + "en-US": "Turner Velvet Armchair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "turner-samtsessel", + "en": undefined, + "en-GB": "turner-velvet-armchair", + "en-US": "turner-velvet-armchair", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 39900, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TARM-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Samtsessel >Turner<", - "en": undefined, - "en-GB": "Turner Velvet Armchair", - "en-US": "Turner Velvet Armchair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "turner-samtsessel", - "en": undefined, - "en-GB": "turner-velvet-armchair", - "en-US": "turner-velvet-armchair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a turnerVelvetArmchair preset when built for graphql`, () => { const turnerVelvetArmchairPresetGraphql = turnerVelvetArmchair().buildGraphql(); expect(turnerVelvetArmchairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A velvet chair with ebony legs is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The dark blue color of the velvet fabric is soft and delicate, adding a touch of modernity to the overall look of the chair. The ebony legs of the chair are sturdy and durable, providing a solid foundation for the seating area. The ebony color of the frame adds a touch of sophistication to the overall look of the chair. The combination of the velvet and ebony creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - }, - { - "locale": "de-DE", - "value": "Das Samt-Sitzmöbel mit Beinen aus Ebenholz ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die dunkelblaue Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen modernen Touch. Die Ebenholzbeine des Sessels sind robust und langlebig und bilden eine solide Grundlage für den Sitzbereich. Die Ebenholzfarbe des Gestells verleiht dem Gesamtbild des Stuhls die gewünschte Raffinesse. Die Kombination aus Samt und Ebenholz schafft einen interessanten Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Sessel hat eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Die Armlehnen sind ebenfalls gebogen und bieten eine bequeme Ablagefläche für die Arme. Der Sessel ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", - }, - { - "locale": "en-GB", - "value": "A velvet chair with ebony legs is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The dark blue color of the velvet fabric is soft and delicate, adding a touch of modernity to the overall look of the chair. The ebony legs of the chair are sturdy and durable, providing a solid foundation for the seating area. The ebony color of the frame adds a touch of sophistication to the overall look of the chair. The combination of the velvet and ebony creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", - }, - ], - "key": "turner-velvet-armchair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Dry clean only","en-US":"- Dry clean only","de-DE":"- Nur chemische Reinigung"}", - }, - { - "name": "color", - "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.1.jpeg", - }, { - "dimensions": { - "height": 2500, - "width": 2500, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A velvet chair with ebony legs is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The dark blue color of the velvet fabric is soft and delicate, adding a touch of modernity to the overall look of the chair. The ebony legs of the chair are sturdy and durable, providing a solid foundation for the seating area. The ebony color of the frame adds a touch of sophistication to the overall look of the chair. The combination of the velvet and ebony creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", + }, + { + "locale": "de-DE", + "value": "Das Samt-Sitzmöbel mit Beinen aus Ebenholz ist ein elegantes und luxuriöses Möbelstück. Das weiche, plüschige Samtmaterial des Stuhls sorgt für ein bequemes und gemütliches Sitzerlebnis. Die dunkelblaue Farbe des Samtstoffs ist weich und zart und verleiht dem Gesamtbild des Stuhls einen modernen Touch. Die Ebenholzbeine des Sessels sind robust und langlebig und bilden eine solide Grundlage für den Sitzbereich. Die Ebenholzfarbe des Gestells verleiht dem Gesamtbild des Stuhls die gewünschte Raffinesse. Die Kombination aus Samt und Ebenholz schafft einen interessanten Kontrast und macht diesen Stuhl zu einem Statement-Piece in jedem Raum. Der Sessel hat eine hohe Rückenlehne mit geschwungenem Design, die Rücken und Schultern stützt. Die Armlehnen sind ebenfalls gebogen und bieten eine bequeme Ablagefläche für die Arme. Der Sessel ist sowohl auf Stil als auch auf Komfort ausgelegt, was ihn zu einer großartigen Ergänzung für jedes Wohnzimmer, Schlafzimmer oder Büro macht.", + }, + { + "locale": "en-GB", + "value": "A velvet chair with ebony legs is an elegant and luxurious piece of furniture. The soft, plush velvet material of the chair provides a comfortable and cozy seating experience. The dark blue color of the velvet fabric is soft and delicate, adding a touch of modernity to the overall look of the chair. The ebony legs of the chair are sturdy and durable, providing a solid foundation for the seating area. The ebony color of the frame adds a touch of sophistication to the overall look of the chair. The combination of the velvet and ebony creates a striking contrast, making this chair a statement piece in any room. The chair features a high backrest with a curved design, providing support for the back and shoulders. The armrests are also curved, providing a comfortable place to rest the arms. The chair is designed for both style and comfort, making it a great addition to any living room, bedroom, or office space.", }, + ], + "key": "turner-velvet-armchair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Dry clean only","en-US":"- Dry clean only","de-DE":"- Nur chemische Reinigung"}", + }, + { + "name": "color", + "value": "{"en-GB":"Royal Blue:#4169E1","de-DE":"Königs blau:#4169E1","en-US":"Royal Blue:#4169E1"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.1.jpeg", + }, + { + "dimensions": { + "height": 2500, + "width": 2500, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Turner_Velvet_Armchair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "39900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 39900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "TARM-03", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Turner Velvet Armchair", + }, + { + "locale": "en-GB", + "value": "Turner Velvet Armchair", + }, + { + "locale": "de-DE", + "value": "Samtsessel >Turner<", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 39900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "turner-velvet-armchair", + }, + { + "locale": "en-GB", + "value": "turner-velvet-armchair", + }, + { + "locale": "de-DE", + "value": "turner-samtsessel", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "TARM-03", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Turner Velvet Armchair", - }, - { - "locale": "en-GB", - "value": "Turner Velvet Armchair", - }, - { - "locale": "de-DE", - "value": "Samtsessel >Turner<", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "turner-velvet-armchair", - }, - { - "locale": "en-GB", - "value": "turner-velvet-armchair", - }, - { - "locale": "de-DE", - "value": "turner-samtsessel", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/vanilla-candle.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/vanilla-candle.spec.ts index f5bad2d49..79ff76a76 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/vanilla-candle.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/vanilla-candle.spec.ts @@ -5,342 +5,374 @@ describe(`with vanillaCandle preset`, () => { it(`should return a vanillaCandle preset`, () => { const vanillaCandlePreset = vanillaCandle().build(); expect(vanillaCandlePreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Eine Kerze mit Vanilleduft ist eine beliebte und zeitlose Wahl, um jedem Zuhause eine warme und einladende Atmosphäre zu verleihen. Die Kerze besteht aus hochwertigem Wachs, das mit dem reichhaltigem und cremigen Vanilleduft versehen ist. Die Kerze wird in einem Glasbehälter präsentiert, der zum Schutz der Flamme beiträgt und der Kerze auch eine dekorative Note verleiht. Angezündet verströmt sie ein beruhigendes Aroma und erfüllt den Raum mit dem süßen Duft von Vanille. Der Duft wird oft mit Wärme, Gemütlichkeit und Entspannung in Verbindung gebracht und eignet sich daher perfekt für die Einstimmung auf einen gemütlichen Abend oder um eine beruhigende Atmosphäre in einem Schlaf- oder Wohnbereich zu schaffen. Diese Kerze ist eine klassische und beruhigende Wahl, um jedem Zuhause etwas mehr Wärme und Gemütlichkeit zu verleihen. Ihr süßes und beruhigendes Aroma trägt dazu bei, eine entspannte und einladende Atmosphäre zu schaffen, was sie zu einer beliebten Wahl für den Einsatz im Schlaf- oder Wohnbereich und in Badezimmern macht.", - "en": undefined, - "en-GB": "A vanilla candle is a popular and timeless choice for adding a warm and inviting atmosphere to any home. The candle is made from high-quality wax, which is infused with the rich and creamy fragrance of vanilla. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a soothing and comforting aroma, filling the room with the sweet and comforting scent of vanilla. The fragrance is often associated with warmth, coziness, and relaxation, making it perfect for use during a cozy night in or for creating a calming atmosphere in a bedroom or living room. A vanilla candle is a classic and comforting choice for adding a touch of warmth and coziness to any home. Its sweet and soothing aroma can help to create a relaxed and welcoming atmosphere, making it a popular choice for use in bedrooms, living rooms, and bathrooms.", - "en-US": "A vanilla candle is a popular and timeless choice for adding a warm and inviting atmosphere to any home. The candle is made from high-quality wax, which is infused with the rich and creamy fragrance of vanilla. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a soothing and comforting aroma, filling the room with the sweet and comforting scent of vanilla. The fragrance is often associated with warmth, coziness, and relaxation, making it perfect for use during a cozy night in or for creating a calming atmosphere in a bedroom or living room. A vanilla candle is a classic and comforting choice for adding a touch of warmth and coziness to any home. Its sweet and soothing aroma can help to create a relaxed and welcoming atmosphere, making it a popular choice for use in bedrooms, living rooms, and bathrooms.", - "fr": undefined, - }, - "key": "vanilla-candle", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Wird im Glas geliefert -- 300 Gramm", - "en-GB": "- Comes in glass jar -- 300 grams", - "en-US": "- Comes in glass jar -- 300 grams", - }, - }, - { - "name": "color", - "value": { - "de-DE": "Beige:#F5F5DC", - "en-GB": "Beige:#F5F5DC", - "en-US": "Beige:#F5F5DC", - }, - }, - { - "name": "finish", - "value": { - "de-DE": "Glas:transparent", - "en-GB": "Glass:transparent", - "en-US": "Glass:transparent", - }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3879, - "w": 5819, + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Eine Kerze mit Vanilleduft ist eine beliebte und zeitlose Wahl, um jedem Zuhause eine warme und einladende Atmosphäre zu verleihen. Die Kerze besteht aus hochwertigem Wachs, das mit dem reichhaltigem und cremigen Vanilleduft versehen ist. Die Kerze wird in einem Glasbehälter präsentiert, der zum Schutz der Flamme beiträgt und der Kerze auch eine dekorative Note verleiht. Angezündet verströmt sie ein beruhigendes Aroma und erfüllt den Raum mit dem süßen Duft von Vanille. Der Duft wird oft mit Wärme, Gemütlichkeit und Entspannung in Verbindung gebracht und eignet sich daher perfekt für die Einstimmung auf einen gemütlichen Abend oder um eine beruhigende Atmosphäre in einem Schlaf- oder Wohnbereich zu schaffen. Diese Kerze ist eine klassische und beruhigende Wahl, um jedem Zuhause etwas mehr Wärme und Gemütlichkeit zu verleihen. Ihr süßes und beruhigendes Aroma trägt dazu bei, eine entspannte und einladende Atmosphäre zu schaffen, was sie zu einer beliebten Wahl für den Einsatz im Schlaf- oder Wohnbereich und in Badezimmern macht.", + "en": undefined, + "en-GB": "A vanilla candle is a popular and timeless choice for adding a warm and inviting atmosphere to any home. The candle is made from high-quality wax, which is infused with the rich and creamy fragrance of vanilla. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a soothing and comforting aroma, filling the room with the sweet and comforting scent of vanilla. The fragrance is often associated with warmth, coziness, and relaxation, making it perfect for use during a cozy night in or for creating a calming atmosphere in a bedroom or living room. A vanilla candle is a classic and comforting choice for adding a touch of warmth and coziness to any home. Its sweet and soothing aroma can help to create a relaxed and welcoming atmosphere, making it a popular choice for use in bedrooms, living rooms, and bathrooms.", + "en-US": "A vanilla candle is a popular and timeless choice for adding a warm and inviting atmosphere to any home. The candle is made from high-quality wax, which is infused with the rich and creamy fragrance of vanilla. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a soothing and comforting aroma, filling the room with the sweet and comforting scent of vanilla. The fragrance is often associated with warmth, coziness, and relaxation, making it perfect for use during a cozy night in or for creating a calming atmosphere in a bedroom or living room. A vanilla candle is a classic and comforting choice for adding a touch of warmth and coziness to any home. Its sweet and soothing aroma can help to create a relaxed and welcoming atmosphere, making it a popular choice for use in bedrooms, living rooms, and bathrooms.", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.1.jpeg", - }, - { - "dimensions": { - "h": 4143, - "w": 6214, + "key": "vanilla-candle", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Wird im Glas geliefert + - 300 Gramm", + "en-GB": "- Comes in glass jar + - 300 grams", + "en-US": "- Comes in glass jar + - 300 grams", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Beige:#F5F5DC", + "en-GB": "Beige:#F5F5DC", + "en-US": "Beige:#F5F5DC", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Glas:transparent", + "en-GB": "Glass:transparent", + "en-US": "Glass:transparent", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3879, + "w": 5819, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.1.jpeg", + }, + { + "dimensions": { + "h": 4143, + "w": 6214, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 999, + "currencyCode": "EUR", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 999, + "currencyCode": "USD", + }, + }, + ], + "sku": "VC-01", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Kerze mit Vanilleduft", + "en": undefined, + "en-GB": "Vanilla Candle", + "en-US": "Vanilla Candle", + "fr": undefined, }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "vanille-kerze", + "en": undefined, + "en-GB": "vanilla-candle", + "en-US": "vanilla-candle", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "VC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Kerze mit Vanilleduft", - "en": undefined, - "en-GB": "Vanilla Candle", - "en-US": "Vanilla Candle", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "vanille-kerze", - "en": undefined, - "en-GB": "vanilla-candle", - "en-US": "vanilla-candle", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a vanillaCandle preset when built for graphql`, () => { const vanillaCandlePresetGraphql = vanillaCandle().buildGraphql(); expect(vanillaCandlePresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "home-accents", - "typeId": "category", - }, - { - "key": "room-decor", - "typeId": "category", - }, - { - "key": "home-decor", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A vanilla candle is a popular and timeless choice for adding a warm and inviting atmosphere to any home. The candle is made from high-quality wax, which is infused with the rich and creamy fragrance of vanilla. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a soothing and comforting aroma, filling the room with the sweet and comforting scent of vanilla. The fragrance is often associated with warmth, coziness, and relaxation, making it perfect for use during a cozy night in or for creating a calming atmosphere in a bedroom or living room. A vanilla candle is a classic and comforting choice for adding a touch of warmth and coziness to any home. Its sweet and soothing aroma can help to create a relaxed and welcoming atmosphere, making it a popular choice for use in bedrooms, living rooms, and bathrooms.", - }, - { - "locale": "de-DE", - "value": "Eine Kerze mit Vanilleduft ist eine beliebte und zeitlose Wahl, um jedem Zuhause eine warme und einladende Atmosphäre zu verleihen. Die Kerze besteht aus hochwertigem Wachs, das mit dem reichhaltigem und cremigen Vanilleduft versehen ist. Die Kerze wird in einem Glasbehälter präsentiert, der zum Schutz der Flamme beiträgt und der Kerze auch eine dekorative Note verleiht. Angezündet verströmt sie ein beruhigendes Aroma und erfüllt den Raum mit dem süßen Duft von Vanille. Der Duft wird oft mit Wärme, Gemütlichkeit und Entspannung in Verbindung gebracht und eignet sich daher perfekt für die Einstimmung auf einen gemütlichen Abend oder um eine beruhigende Atmosphäre in einem Schlaf- oder Wohnbereich zu schaffen. Diese Kerze ist eine klassische und beruhigende Wahl, um jedem Zuhause etwas mehr Wärme und Gemütlichkeit zu verleihen. Ihr süßes und beruhigendes Aroma trägt dazu bei, eine entspannte und einladende Atmosphäre zu schaffen, was sie zu einer beliebten Wahl für den Einsatz im Schlaf- oder Wohnbereich und in Badezimmern macht.", - }, - { - "locale": "en-GB", - "value": "A vanilla candle is a popular and timeless choice for adding a warm and inviting atmosphere to any home. The candle is made from high-quality wax, which is infused with the rich and creamy fragrance of vanilla. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a soothing and comforting aroma, filling the room with the sweet and comforting scent of vanilla. The fragrance is often associated with warmth, coziness, and relaxation, making it perfect for use during a cozy night in or for creating a calming atmosphere in a bedroom or living room. A vanilla candle is a classic and comforting choice for adding a touch of warmth and coziness to any home. Its sweet and soothing aroma can help to create a relaxed and welcoming atmosphere, making it a popular choice for use in bedrooms, living rooms, and bathrooms.", - }, - ], - "key": "vanilla-candle", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Comes in glass jar\\n- 300 grams","en-US":"- Comes in glass jar\\n- 300 grams","de-DE":"- Wird im Glas geliefert\\n- 300 Gramm"}", - }, - { - "name": "color", - "value": "{"en-US":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", - }, - { - "name": "finish", - "value": "{"en-US":"Glass:transparent","en-GB":"Glass:transparent","de-DE":"Glas:transparent"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3879, - "width": 5819, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.1.jpeg", - }, - { - "dimensions": { - "height": 4143, - "width": 6214, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 999, - "currencyCode": "EUR", + "categories": [ + { + "key": "home-accents", + "typeId": "category", + }, + { + "key": "room-decor", + "typeId": "category", + }, + { + "key": "home-decor", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A vanilla candle is a popular and timeless choice for adding a warm and inviting atmosphere to any home. The candle is made from high-quality wax, which is infused with the rich and creamy fragrance of vanilla. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a soothing and comforting aroma, filling the room with the sweet and comforting scent of vanilla. The fragrance is often associated with warmth, coziness, and relaxation, making it perfect for use during a cozy night in or for creating a calming atmosphere in a bedroom or living room. A vanilla candle is a classic and comforting choice for adding a touch of warmth and coziness to any home. Its sweet and soothing aroma can help to create a relaxed and welcoming atmosphere, making it a popular choice for use in bedrooms, living rooms, and bathrooms.", }, + { + "locale": "de-DE", + "value": "Eine Kerze mit Vanilleduft ist eine beliebte und zeitlose Wahl, um jedem Zuhause eine warme und einladende Atmosphäre zu verleihen. Die Kerze besteht aus hochwertigem Wachs, das mit dem reichhaltigem und cremigen Vanilleduft versehen ist. Die Kerze wird in einem Glasbehälter präsentiert, der zum Schutz der Flamme beiträgt und der Kerze auch eine dekorative Note verleiht. Angezündet verströmt sie ein beruhigendes Aroma und erfüllt den Raum mit dem süßen Duft von Vanille. Der Duft wird oft mit Wärme, Gemütlichkeit und Entspannung in Verbindung gebracht und eignet sich daher perfekt für die Einstimmung auf einen gemütlichen Abend oder um eine beruhigende Atmosphäre in einem Schlaf- oder Wohnbereich zu schaffen. Diese Kerze ist eine klassische und beruhigende Wahl, um jedem Zuhause etwas mehr Wärme und Gemütlichkeit zu verleihen. Ihr süßes und beruhigendes Aroma trägt dazu bei, eine entspannte und einladende Atmosphäre zu schaffen, was sie zu einer beliebten Wahl für den Einsatz im Schlaf- oder Wohnbereich und in Badezimmern macht.", + }, + { + "locale": "en-GB", + "value": "A vanilla candle is a popular and timeless choice for adding a warm and inviting atmosphere to any home. The candle is made from high-quality wax, which is infused with the rich and creamy fragrance of vanilla. The candle is presented in a glass container, which helps to protect the flame and also adds a decorative touch to the candle. When lit, the candle will release a soothing and comforting aroma, filling the room with the sweet and comforting scent of vanilla. The fragrance is often associated with warmth, coziness, and relaxation, making it perfect for use during a cozy night in or for creating a calming atmosphere in a bedroom or living room. A vanilla candle is a classic and comforting choice for adding a touch of warmth and coziness to any home. Its sweet and soothing aroma can help to create a relaxed and welcoming atmosphere, making it a popular choice for use in bedrooms, living rooms, and bathrooms.", + }, + ], + "key": "vanilla-candle", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Comes in glass jar\\n- 300 grams","en-US":"- Comes in glass jar\\n- 300 grams","de-DE":"- Wird im Glas geliefert\\n- 300 Gramm"}", + }, + { + "name": "color", + "value": "{"en-US":"Beige:#F5F5DC","en-GB":"Beige:#F5F5DC","de-DE":"Beige:#F5F5DC"}", + }, + { + "name": "finish", + "value": "{"en-US":"Glass:transparent","en-GB":"Glass:transparent","de-DE":"Glas:transparent"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3879, + "width": 5819, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.1.jpeg", + }, + { + "dimensions": { + "height": 4143, + "width": 6214, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Vanilla_Candle-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "1099EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 1099, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "VC-01", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Vanilla Candle", + }, + { + "locale": "en-GB", + "value": "Vanilla Candle", }, + { + "locale": "de-DE", + "value": "Kerze mit Vanilleduft", + }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "vanilla-candle", + }, + { + "locale": "en-GB", + "value": "vanilla-candle", + }, + { + "locale": "de-DE", + "value": "vanille-kerze", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "VC-01", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Vanilla Candle", - }, - { - "locale": "en-GB", - "value": "Vanilla Candle", - }, - { - "locale": "de-DE", - "value": "Kerze mit Vanilleduft", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "vanilla-candle", - }, - { - "locale": "en-GB", - "value": "vanilla-candle", - }, - { - "locale": "de-DE", - "value": "vanille-kerze", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet.spec.ts index 65a44fe0b..174e74e0f 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/walnut-cabinet.spec.ts @@ -5,327 +5,359 @@ describe(`with walnutCabinet preset`, () => { it(`should return a walnutCabinet preset`, () => { const walnutCabinetPreset = walnutCabinet().build(); expect(walnutCabinetPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Dieser Nussbaumschrank besticht durch seine Vielzahl an Schubladen, die in Reihen angeordnet sind, mit mehreren Schubladen pro Reihe. Die Schubladen sind groß und tief und bieten viel Stauraum. Die Schubladen sind mit einfachen Griffen zu haben. Die Oberseite des Sideboards ist flach und glatt und kann zur Präsentation von Dekorationsartikeln wie Vasen oder Kerzen verwendet werden. Das geräumige Sideboard mit vielen Schubladen ist ein funktionales und praktisches Möbelstück, das jedem Raum Stil und Stauraum verleiht.", - "en": undefined, - "en-GB": "This Walnut Cabinet has many drawers, which are arranged in rows, with several drawers per row. The drawers are large and deep, allowing for ample storage space. The drawers may have simple handles. The top of the sideboard is flat and smooth, and can be used to display decorative items such as vases or candles. Overall, a large sideboard with many drawers is a functional and practical piece of furniture that can add style and storage to any room.", - "en-US": "This Walnut Cabinet has many drawers, which are arranged in rows, with several drawers per row. The drawers are large and deep, allowing for ample storage space. The drawers may have simple handles. The top of the sideboard is flat and smooth, and can be used to display decorative items such as vases or candles. Overall, a large sideboard with many drawers is a functional and practical piece of furniture that can add style and storage to any room.", - "fr": undefined, - }, - "key": "walnut-cabinet", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Montage im Lieferumfang enthalten", - "en-GB": "- Assembly included in delivery", - "en-US": "- Assembly included in delivery", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Dieser Nussbaumschrank besticht durch seine Vielzahl an Schubladen, die in Reihen angeordnet sind, mit mehreren Schubladen pro Reihe. Die Schubladen sind groß und tief und bieten viel Stauraum. Die Schubladen sind mit einfachen Griffen zu haben. Die Oberseite des Sideboards ist flach und glatt und kann zur Präsentation von Dekorationsartikeln wie Vasen oder Kerzen verwendet werden. Das geräumige Sideboard mit vielen Schubladen ist ein funktionales und praktisches Möbelstück, das jedem Raum Stil und Stauraum verleiht.", + "en": undefined, + "en-GB": "This Walnut Cabinet has many drawers, which are arranged in rows, with several drawers per row. The drawers are large and deep, allowing for ample storage space. The drawers may have simple handles. The top of the sideboard is flat and smooth, and can be used to display decorative items such as vases or candles. Overall, a large sideboard with many drawers is a functional and practical piece of furniture that can add style and storage to any room.", + "en-US": "This Walnut Cabinet has many drawers, which are arranged in rows, with several drawers per row. The drawers are large and deep, allowing for ample storage space. The drawers may have simple handles. The top of the sideboard is flat and smooth, and can be used to display decorative items such as vases or candles. Overall, a large sideboard with many drawers is a functional and practical piece of furniture that can add style and storage to any room.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Braun:#a52a2a", - "en-GB": "Brown:#a52a2a", - "en-US": "Brown:#a52a2a", + "key": "walnut-cabinet", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Montage im Lieferumfang enthalten", + "en-GB": "- Assembly included in delivery", + "en-US": "- Assembly included in delivery", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Braun:#a52a2a", + "en-GB": "Brown:#a52a2a", + "en-US": "Brown:#a52a2a", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 2935, + "w": 4400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.1.jpeg", + }, + { + "dimensions": { + "h": 2935, + "w": 4400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + ], + "sku": "WCS-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 2935, - "w": 4400, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sideboard aus Nussbaumholz", + "en": undefined, + "en-GB": "Walnut Cabinet", + "en-US": "Walnut Cabinet", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.1.jpeg", - }, - { - "dimensions": { - "h": 2935, - "w": 4400, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "nussbaum-schrank", + "en": undefined, + "en-GB": "walnut-cabinet", + "en-US": "walnut-cabinet", + "fr": undefined, }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "EUR", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 159900, - "currencyCode": "USD", - }, - }, - ], - "sku": "WCS-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sideboard aus Nussbaumholz", - "en": undefined, - "en-GB": "Walnut Cabinet", - "en-US": "Walnut Cabinet", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "nussbaum-schrank", - "en": undefined, - "en-GB": "walnut-cabinet", - "en-US": "walnut-cabinet", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a walnutCabinet preset when built for graphql`, () => { const walnutCabinetPresetGraphql = walnutCabinet().buildGraphql(); expect(walnutCabinetPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "This Walnut Cabinet has many drawers, which are arranged in rows, with several drawers per row. The drawers are large and deep, allowing for ample storage space. The drawers may have simple handles. The top of the sideboard is flat and smooth, and can be used to display decorative items such as vases or candles. Overall, a large sideboard with many drawers is a functional and practical piece of furniture that can add style and storage to any room.", - }, - { - "locale": "de-DE", - "value": "Dieser Nussbaumschrank besticht durch seine Vielzahl an Schubladen, die in Reihen angeordnet sind, mit mehreren Schubladen pro Reihe. Die Schubladen sind groß und tief und bieten viel Stauraum. Die Schubladen sind mit einfachen Griffen zu haben. Die Oberseite des Sideboards ist flach und glatt und kann zur Präsentation von Dekorationsartikeln wie Vasen oder Kerzen verwendet werden. Das geräumige Sideboard mit vielen Schubladen ist ein funktionales und praktisches Möbelstück, das jedem Raum Stil und Stauraum verleiht.", - }, - { - "locale": "en-GB", - "value": "This Walnut Cabinet has many drawers, which are arranged in rows, with several drawers per row. The drawers are large and deep, allowing for ample storage space. The drawers may have simple handles. The top of the sideboard is flat and smooth, and can be used to display decorative items such as vases or candles. Overall, a large sideboard with many drawers is a functional and practical piece of furniture that can add style and storage to any room.", - }, - ], - "key": "walnut-cabinet", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Brown:#a52a2a","en-US":"Brown:#a52a2a","de-DE":"Braun:#a52a2a"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 2935, - "width": 4400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.1.jpeg", - }, { - "dimensions": { - "height": 2935, - "width": 4400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": { - "key": "distribution-channel", - "typeId": "channel", - }, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "EUR", + "categories": [ + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "This Walnut Cabinet has many drawers, which are arranged in rows, with several drawers per row. The drawers are large and deep, allowing for ample storage space. The drawers may have simple handles. The top of the sideboard is flat and smooth, and can be used to display decorative items such as vases or candles. Overall, a large sideboard with many drawers is a functional and practical piece of furniture that can add style and storage to any room.", + }, + { + "locale": "de-DE", + "value": "Dieser Nussbaumschrank besticht durch seine Vielzahl an Schubladen, die in Reihen angeordnet sind, mit mehreren Schubladen pro Reihe. Die Schubladen sind groß und tief und bieten viel Stauraum. Die Schubladen sind mit einfachen Griffen zu haben. Die Oberseite des Sideboards ist flach und glatt und kann zur Präsentation von Dekorationsartikeln wie Vasen oder Kerzen verwendet werden. Das geräumige Sideboard mit vielen Schubladen ist ein funktionales und praktisches Möbelstück, das jedem Raum Stil und Stauraum verleiht.", }, + { + "locale": "en-GB", + "value": "This Walnut Cabinet has many drawers, which are arranged in rows, with several drawers per row. The drawers are large and deep, allowing for ample storage space. The drawers may have simple handles. The top of the sideboard is flat and smooth, and can be used to display decorative items such as vases or candles. Overall, a large sideboard with many drawers is a functional and practical piece of furniture that can add style and storage to any room.", + }, + ], + "key": "walnut-cabinet", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Assembly included in delivery","en-US":"- Assembly included in delivery","de-DE":"- Montage im Lieferumfang enthalten"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Brown:#a52a2a","en-US":"Brown:#a52a2a","de-DE":"Braun:#a52a2a"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 2935, + "width": 4400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.1.jpeg", + }, + { + "dimensions": { + "height": 2935, + "width": 4400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Cabinet-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": { + "key": "distribution-channel", + "typeId": "channel", + }, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900EUR_dist", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "159900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 159900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "WCS-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Walnut Cabinet", + }, + { + "locale": "en-GB", + "value": "Walnut Cabinet", + }, + { + "locale": "de-DE", + "value": "Sideboard aus Nussbaumholz", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 159900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "walnut-cabinet", + }, + { + "locale": "en-GB", + "value": "walnut-cabinet", + }, + { + "locale": "de-DE", + "value": "nussbaum-schrank", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "WCS-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Walnut Cabinet", - }, - { - "locale": "en-GB", - "value": "Walnut Cabinet", - }, - { - "locale": "de-DE", - "value": "Sideboard aus Nussbaumholz", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "walnut-cabinet", - }, - { - "locale": "en-GB", - "value": "walnut-cabinet", - }, - { - "locale": "de-DE", - "value": "nussbaum-schrank", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool.spec.ts index b2857ded0..33ec06044 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/walnut-counter-stool.spec.ts @@ -6,321 +6,321 @@ describe(`with walnutCounterStool preset`, () => { const walnutCounterStoolPreset = walnutCounterStool().build(); expect(walnutCounterStoolPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "tables", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der Barhocker ist aus Nussbaumholz gefertigt, das für seine Langlebigkeit und Stärke bekannt ist. Der Hocker hat ein schlichtes Design mit einer flachen Oberfläche und vier geraden Beinen. Die Beine sind für zusätzliches visuelles Interesse leicht konisch zulaufend designt. Das Nussbaumholz kann in seinem natürlichen Zustand belassen oder mit einer Beize oder einem Lack veredelt werden, um die natürliche Schönheit der Holzmaserung hervorzuheben. Der Hocker hat eine quadratische Sitzfläche. Der Barocker aus Nussbaumholz ist ein vielseitiges und funktionelles Möbelstück, das in einer Vielzahl von Wohnräumen verwendet werden kann.", - "en": undefined, - "en-GB": "The walnut stool is made from walnut wood, which is known for its durability and strength. The stool is a simple design, with a flat top surface and four straight legs. The legs are slightly tapered for added visual interest. The walnut wood may be left in its natural state or finished with a stain or varnish to bring out the natural beauty of the wood grain. The stool has a square top. Overall, a walnut stool is a versatile and functional piece of furniture that can be used in a variety of settings.", - "en-US": "The walnut stool is made from walnut wood, which is known for its durability and strength. The stool is a simple design, with a flat top surface and four straight legs. The legs are slightly tapered for added visual interest. The walnut wood may be left in its natural state or finished with a stain or varnish to bring out the natural beauty of the wood grain. The stool has a square top. Overall, a walnut stool is a versatile and functional piece of furniture that can be used in a variety of settings.", - "fr": undefined, - }, - "key": "walnut-counter-stool", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Beinhaltet 1 Hocker", - "en-GB": "- Includes 1 stool", - "en-US": "- Includes 1 stool", + "categories": [ + { + "key": "tables", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der Barhocker ist aus Nussbaumholz gefertigt, das für seine Langlebigkeit und Stärke bekannt ist. Der Hocker hat ein schlichtes Design mit einer flachen Oberfläche und vier geraden Beinen. Die Beine sind für zusätzliches visuelles Interesse leicht konisch zulaufend designt. Das Nussbaumholz kann in seinem natürlichen Zustand belassen oder mit einer Beize oder einem Lack veredelt werden, um die natürliche Schönheit der Holzmaserung hervorzuheben. Der Hocker hat eine quadratische Sitzfläche. Der Barocker aus Nussbaumholz ist ein vielseitiges und funktionelles Möbelstück, das in einer Vielzahl von Wohnräumen verwendet werden kann.", + "en": undefined, + "en-GB": "The walnut stool is made from walnut wood, which is known for its durability and strength. The stool is a simple design, with a flat top surface and four straight legs. The legs are slightly tapered for added visual interest. The walnut wood may be left in its natural state or finished with a stain or varnish to bring out the natural beauty of the wood grain. The stool has a square top. Overall, a walnut stool is a versatile and functional piece of furniture that can be used in a variety of settings.", + "en-US": "The walnut stool is made from walnut wood, which is known for its durability and strength. The stool is a simple design, with a flat top surface and four straight legs. The legs are slightly tapered for added visual interest. The walnut wood may be left in its natural state or finished with a stain or varnish to bring out the natural beauty of the wood grain. The stool has a square top. Overall, a walnut stool is a versatile and functional piece of furniture that can be used in a variety of settings.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Sattel braun:#8b4513", - "en-GB": "Saddle Brown:#8b4513", - "en-US": "Saddle Brown:#8b4513", + "key": "walnut-counter-stool", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Beinhaltet 1 Hocker", + "en-GB": "- Includes 1 stool", + "en-US": "- Includes 1 stool", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Sattel braun:#8b4513", + "en-GB": "Saddle Brown:#8b4513", + "en-US": "Saddle Brown:#8b4513", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 5906, + "w": 5906, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Counter_Stool-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 8999, + "currencyCode": "USD", + }, + }, + ], + "sku": "WCSI-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 5906, - "w": 5906, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Barhocker aus Nussbaumholz", + "en": undefined, + "en-GB": "Walnut Counter Stool", + "en-US": "Walnut Counter Stool", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Counter_Stool-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "barhocker-aus-walnussholz", + "en": undefined, + "en-GB": "walnut-counter-stool", + "en-US": "walnut-counter-stool", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 8999, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "WCSI-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Barhocker aus Nussbaumholz", - "en": undefined, - "en-GB": "Walnut Counter Stool", - "en-US": "Walnut Counter Stool", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "barhocker-aus-walnussholz", - "en": undefined, - "en-GB": "walnut-counter-stool", - "en-US": "walnut-counter-stool", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a walnutCounterStool preset when built for graphql`, () => { const walnutCounterStoolPresetGraphql = walnutCounterStool().buildGraphql(); expect(walnutCounterStoolPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "tables", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - { - "key": "storage--tables", - "typeId": "category", - }, - { - "key": "bedroom-furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "The walnut stool is made from walnut wood, which is known for its durability and strength. The stool is a simple design, with a flat top surface and four straight legs. The legs are slightly tapered for added visual interest. The walnut wood may be left in its natural state or finished with a stain or varnish to bring out the natural beauty of the wood grain. The stool has a square top. Overall, a walnut stool is a versatile and functional piece of furniture that can be used in a variety of settings.", - }, - { - "locale": "de-DE", - "value": "Der Barhocker ist aus Nussbaumholz gefertigt, das für seine Langlebigkeit und Stärke bekannt ist. Der Hocker hat ein schlichtes Design mit einer flachen Oberfläche und vier geraden Beinen. Die Beine sind für zusätzliches visuelles Interesse leicht konisch zulaufend designt. Das Nussbaumholz kann in seinem natürlichen Zustand belassen oder mit einer Beize oder einem Lack veredelt werden, um die natürliche Schönheit der Holzmaserung hervorzuheben. Der Hocker hat eine quadratische Sitzfläche. Der Barocker aus Nussbaumholz ist ein vielseitiges und funktionelles Möbelstück, das in einer Vielzahl von Wohnräumen verwendet werden kann.", - }, - { - "locale": "en-GB", - "value": "The walnut stool is made from walnut wood, which is known for its durability and strength. The stool is a simple design, with a flat top surface and four straight legs. The legs are slightly tapered for added visual interest. The walnut wood may be left in its natural state or finished with a stain or varnish to bring out the natural beauty of the wood grain. The stool has a square top. Overall, a walnut stool is a versatile and functional piece of furniture that can be used in a variety of settings.", - }, - ], - "key": "walnut-counter-stool", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Includes 1 stool","en-US":"- Includes 1 stool","de-DE":"- Beinhaltet 1 Hocker"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Saddle Brown:#8b4513","en-US":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 5906, - "width": 5906, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Counter_Stool-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "EUR", + "categories": [ + { + "key": "tables", + "typeId": "category", }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + { + "key": "storage--tables", + "typeId": "category", + }, + { + "key": "bedroom-furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "The walnut stool is made from walnut wood, which is known for its durability and strength. The stool is a simple design, with a flat top surface and four straight legs. The legs are slightly tapered for added visual interest. The walnut wood may be left in its natural state or finished with a stain or varnish to bring out the natural beauty of the wood grain. The stool has a square top. Overall, a walnut stool is a versatile and functional piece of furniture that can be used in a variety of settings.", + }, + { + "locale": "de-DE", + "value": "Der Barhocker ist aus Nussbaumholz gefertigt, das für seine Langlebigkeit und Stärke bekannt ist. Der Hocker hat ein schlichtes Design mit einer flachen Oberfläche und vier geraden Beinen. Die Beine sind für zusätzliches visuelles Interesse leicht konisch zulaufend designt. Das Nussbaumholz kann in seinem natürlichen Zustand belassen oder mit einer Beize oder einem Lack veredelt werden, um die natürliche Schönheit der Holzmaserung hervorzuheben. Der Hocker hat eine quadratische Sitzfläche. Der Barocker aus Nussbaumholz ist ein vielseitiges und funktionelles Möbelstück, das in einer Vielzahl von Wohnräumen verwendet werden kann.", + }, + { + "locale": "en-GB", + "value": "The walnut stool is made from walnut wood, which is known for its durability and strength. The stool is a simple design, with a flat top surface and four straight legs. The legs are slightly tapered for added visual interest. The walnut wood may be left in its natural state or finished with a stain or varnish to bring out the natural beauty of the wood grain. The stool has a square top. Overall, a walnut stool is a versatile and functional piece of furniture that can be used in a variety of settings.", + }, + ], + "key": "walnut-counter-stool", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Includes 1 stool","en-US":"- Includes 1 stool","de-DE":"- Beinhaltet 1 Hocker"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Saddle Brown:#8b4513","en-US":"Saddle Brown:#8b4513","de-DE":"Sattel braun:#8b4513"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 5906, + "width": 5906, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Walnut_Counter_Stool-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "8999USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 8999, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "WCSI-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Walnut Counter Stool", + }, + { + "locale": "en-GB", + "value": "Walnut Counter Stool", + }, + { + "locale": "de-DE", + "value": "Barhocker aus Nussbaumholz", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 8999, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "walnut-counter-stool", + }, + { + "locale": "en-GB", + "value": "walnut-counter-stool", + }, + { + "locale": "de-DE", + "value": "barhocker-aus-walnussholz", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "WCSI-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Walnut Counter Stool", - }, - { - "locale": "en-GB", - "value": "Walnut Counter Stool", - }, - { - "locale": "de-DE", - "value": "Barhocker aus Nussbaumholz", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "walnut-counter-stool", - }, - { - "locale": "en-GB", - "value": "walnut-counter-stool", - }, - { - "locale": "de-DE", - "value": "barhocker-aus-walnussholz", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/willow-teapot.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/willow-teapot.spec.ts index 261cc8a72..53590d786 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/willow-teapot.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/willow-teapot.spec.ts @@ -5,313 +5,313 @@ describe(`with willowTeapot preset`, () => { it(`should return a willowTeapot preset`, () => { const willowTeapotPreset = willowTeapot().build(); expect(willowTeapotPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Diese Teekanne besteht aus feinem Porzellan, allgemein bekannt als Knochenporzellan. Es ist ein zartes und elegantes Geschirr, das zum Aufbrühen und Servieren von Tee bestimmt ist. Das für die Teekanne verwendete feine Porzellanmaterial hat ein hervorragendes Wärmespeichervermögen und sorgt dafür, dass der Tee lange warm bleibt. Es ist auch nicht porös, was bedeutet, dass es keine Aromen oder Gerüche aus dem Tee aufnimmt, wodurch die Reinheit des Geschmacks erhalten bleibt. Zum Reinigen einer Teekanne aus Porzellan wird empfohlen, sie von Hand mit einem milden Reinigungsmittel und einem weichen Tuch oder Schwamm zu waschen. Scharfe Reinigungsmittel oder Scheuermittel sollten vermieden werden, da sie die empfindliche Oberfläche der Teekanne beschädigen können. Die Teekanne aus Porzellan ein zeitloses und klassisches Geschirr, das jeder Teestunde oder Zusammenkunft einen Hauch von Eleganz und Raffinesse verleiht. Ihr zartes und kompliziertes Design, kombiniert mit ihrer Funktionalität und Wärmespeichereigenschaften, macht sie zum idealen Must-have für Teeliebhaber auf der ganzen Welt.", - "en": undefined, - "en-GB": "This teapot is made of fine porcelain, commonly known as bone china. It is a delicate and elegant piece of tableware that is designed to brew and serve tea. The fine china material used in the teapot provides an excellent heat retention capacity, ensuring that the tea stays warm for an extended period. It is also non-porous, which means it does not absorb any flavors or odors from the tea, preserving the purity of the flavor. To clean a china teapot, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the delicate surface of the teapot. Overall, a china teapot is a timeless and classic piece of tableware that adds a touch of elegance and sophistication to any tea party or gathering. Its delicate and intricate design, combined with its functionality and heat retention properties, make it a cherished item for tea lovers around the world.", - "en-US": "This teapot is made of fine porcelain, commonly known as bone china. It is a delicate and elegant piece of tableware that is designed to brew and serve tea. The fine china material used in the teapot provides an excellent heat retention capacity, ensuring that the tea stays warm for an extended period. It is also non-porous, which means it does not absorb any flavors or odors from the tea, preserving the purity of the flavor. To clean a china teapot, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the delicate surface of the teapot. Overall, a china teapot is a timeless and classic piece of tableware that adds a touch of elegance and sophistication to any tea party or gathering. Its delicate and intricate design, combined with its functionality and heat retention properties, make it a cherished item for tea lovers around the world.", - "fr": undefined, - }, - "key": "willow-teapot", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Handwäsche nur", - "en-GB": "- Hand wash only", - "en-US": "- Hand wash only", + "categories": [ + { + "key": "dinnerware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Diese Teekanne besteht aus feinem Porzellan, allgemein bekannt als Knochenporzellan. Es ist ein zartes und elegantes Geschirr, das zum Aufbrühen und Servieren von Tee bestimmt ist. Das für die Teekanne verwendete feine Porzellanmaterial hat ein hervorragendes Wärmespeichervermögen und sorgt dafür, dass der Tee lange warm bleibt. Es ist auch nicht porös, was bedeutet, dass es keine Aromen oder Gerüche aus dem Tee aufnimmt, wodurch die Reinheit des Geschmacks erhalten bleibt. Zum Reinigen einer Teekanne aus Porzellan wird empfohlen, sie von Hand mit einem milden Reinigungsmittel und einem weichen Tuch oder Schwamm zu waschen. Scharfe Reinigungsmittel oder Scheuermittel sollten vermieden werden, da sie die empfindliche Oberfläche der Teekanne beschädigen können. Die Teekanne aus Porzellan ein zeitloses und klassisches Geschirr, das jeder Teestunde oder Zusammenkunft einen Hauch von Eleganz und Raffinesse verleiht. Ihr zartes und kompliziertes Design, kombiniert mit ihrer Funktionalität und Wärmespeichereigenschaften, macht sie zum idealen Must-have für Teeliebhaber auf der ganzen Welt.", + "en": undefined, + "en-GB": "This teapot is made of fine porcelain, commonly known as bone china. It is a delicate and elegant piece of tableware that is designed to brew and serve tea. The fine china material used in the teapot provides an excellent heat retention capacity, ensuring that the tea stays warm for an extended period. It is also non-porous, which means it does not absorb any flavors or odors from the tea, preserving the purity of the flavor. To clean a china teapot, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the delicate surface of the teapot. Overall, a china teapot is a timeless and classic piece of tableware that adds a touch of elegance and sophistication to any tea party or gathering. Its delicate and intricate design, combined with its functionality and heat retention properties, make it a cherished item for tea lovers around the world.", + "en-US": "This teapot is made of fine porcelain, commonly known as bone china. It is a delicate and elegant piece of tableware that is designed to brew and serve tea. The fine china material used in the teapot provides an excellent heat retention capacity, ensuring that the tea stays warm for an extended period. It is also non-porous, which means it does not absorb any flavors or odors from the tea, preserving the purity of the flavor. To clean a china teapot, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the delicate surface of the teapot. Overall, a china teapot is a timeless and classic piece of tableware that adds a touch of elegance and sophistication to any tea party or gathering. Its delicate and intricate design, combined with its functionality and heat retention properties, make it a cherished item for tea lovers around the world.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Himmel blau:#87CEEB", - "en-GB": "Sky Blue:#87CEEB", - "en-US": "Sky Blue:#87CEEB", + "key": "willow-teapot", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Handwäsche nur", + "en-GB": "- Hand wash only", + "en-US": "- Hand wash only", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Himmel blau:#87CEEB", + "en-GB": "Sky Blue:#87CEEB", + "en-US": "Sky Blue:#87CEEB", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 4160, + "w": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Willow_Teapot-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + ], + "sku": "WTP-09", }, - }, - ], - "images": [ - { - "dimensions": { - "h": 4160, - "w": 6240, + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Teekanne >Willow<", + "en": undefined, + "en-GB": "Willow Teapot", + "en-US": "Willow Teapot", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Willow_Teapot-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "EUR", + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "GBP", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "willow-teekanne", + "en": undefined, + "en-GB": "willow-teapot", + "en-US": "willow-teapot", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 899, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "WTP-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Teekanne >Willow<", - "en": undefined, - "en-GB": "Willow Teapot", - "en-US": "Willow Teapot", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "willow-teekanne", - "en": undefined, - "en-GB": "willow-teapot", - "en-US": "willow-teapot", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a willowTeapot preset when built for graphql`, () => { const willowTeapotPresetGraphql = willowTeapot().buildGraphql(); expect(willowTeapotPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "dinnerware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "This teapot is made of fine porcelain, commonly known as bone china. It is a delicate and elegant piece of tableware that is designed to brew and serve tea. The fine china material used in the teapot provides an excellent heat retention capacity, ensuring that the tea stays warm for an extended period. It is also non-porous, which means it does not absorb any flavors or odors from the tea, preserving the purity of the flavor. To clean a china teapot, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the delicate surface of the teapot. Overall, a china teapot is a timeless and classic piece of tableware that adds a touch of elegance and sophistication to any tea party or gathering. Its delicate and intricate design, combined with its functionality and heat retention properties, make it a cherished item for tea lovers around the world.", - }, - { - "locale": "de-DE", - "value": "Diese Teekanne besteht aus feinem Porzellan, allgemein bekannt als Knochenporzellan. Es ist ein zartes und elegantes Geschirr, das zum Aufbrühen und Servieren von Tee bestimmt ist. Das für die Teekanne verwendete feine Porzellanmaterial hat ein hervorragendes Wärmespeichervermögen und sorgt dafür, dass der Tee lange warm bleibt. Es ist auch nicht porös, was bedeutet, dass es keine Aromen oder Gerüche aus dem Tee aufnimmt, wodurch die Reinheit des Geschmacks erhalten bleibt. Zum Reinigen einer Teekanne aus Porzellan wird empfohlen, sie von Hand mit einem milden Reinigungsmittel und einem weichen Tuch oder Schwamm zu waschen. Scharfe Reinigungsmittel oder Scheuermittel sollten vermieden werden, da sie die empfindliche Oberfläche der Teekanne beschädigen können. Die Teekanne aus Porzellan ein zeitloses und klassisches Geschirr, das jeder Teestunde oder Zusammenkunft einen Hauch von Eleganz und Raffinesse verleiht. Ihr zartes und kompliziertes Design, kombiniert mit ihrer Funktionalität und Wärmespeichereigenschaften, macht sie zum idealen Must-have für Teeliebhaber auf der ganzen Welt.", - }, - { - "locale": "en-GB", - "value": "This teapot is made of fine porcelain, commonly known as bone china. It is a delicate and elegant piece of tableware that is designed to brew and serve tea. The fine china material used in the teapot provides an excellent heat retention capacity, ensuring that the tea stays warm for an extended period. It is also non-porous, which means it does not absorb any flavors or odors from the tea, preserving the purity of the flavor. To clean a china teapot, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the delicate surface of the teapot. Overall, a china teapot is a timeless and classic piece of tableware that adds a touch of elegance and sophistication to any tea party or gathering. Its delicate and intricate design, combined with its functionality and heat retention properties, make it a cherished item for tea lovers around the world.", - }, - ], - "key": "willow-teapot", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Hand wash only","en-US":"- Hand wash only","de-DE":"- Handwäsche nur"}", - }, - { - "name": "color", - "value": "{"en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB","en-US":"Sky Blue:#87CEEB"}", - }, - ], - "images": [ - { - "dimensions": { - "height": 4160, - "width": 6240, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Willow_Teapot-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "EUR", + "categories": [ + { + "key": "dinnerware", + "typeId": "category", }, + { + "key": "kitchen", + "typeId": "category", + }, + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "This teapot is made of fine porcelain, commonly known as bone china. It is a delicate and elegant piece of tableware that is designed to brew and serve tea. The fine china material used in the teapot provides an excellent heat retention capacity, ensuring that the tea stays warm for an extended period. It is also non-porous, which means it does not absorb any flavors or odors from the tea, preserving the purity of the flavor. To clean a china teapot, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the delicate surface of the teapot. Overall, a china teapot is a timeless and classic piece of tableware that adds a touch of elegance and sophistication to any tea party or gathering. Its delicate and intricate design, combined with its functionality and heat retention properties, make it a cherished item for tea lovers around the world.", + }, + { + "locale": "de-DE", + "value": "Diese Teekanne besteht aus feinem Porzellan, allgemein bekannt als Knochenporzellan. Es ist ein zartes und elegantes Geschirr, das zum Aufbrühen und Servieren von Tee bestimmt ist. Das für die Teekanne verwendete feine Porzellanmaterial hat ein hervorragendes Wärmespeichervermögen und sorgt dafür, dass der Tee lange warm bleibt. Es ist auch nicht porös, was bedeutet, dass es keine Aromen oder Gerüche aus dem Tee aufnimmt, wodurch die Reinheit des Geschmacks erhalten bleibt. Zum Reinigen einer Teekanne aus Porzellan wird empfohlen, sie von Hand mit einem milden Reinigungsmittel und einem weichen Tuch oder Schwamm zu waschen. Scharfe Reinigungsmittel oder Scheuermittel sollten vermieden werden, da sie die empfindliche Oberfläche der Teekanne beschädigen können. Die Teekanne aus Porzellan ein zeitloses und klassisches Geschirr, das jeder Teestunde oder Zusammenkunft einen Hauch von Eleganz und Raffinesse verleiht. Ihr zartes und kompliziertes Design, kombiniert mit ihrer Funktionalität und Wärmespeichereigenschaften, macht sie zum idealen Must-have für Teeliebhaber auf der ganzen Welt.", + }, + { + "locale": "en-GB", + "value": "This teapot is made of fine porcelain, commonly known as bone china. It is a delicate and elegant piece of tableware that is designed to brew and serve tea. The fine china material used in the teapot provides an excellent heat retention capacity, ensuring that the tea stays warm for an extended period. It is also non-porous, which means it does not absorb any flavors or odors from the tea, preserving the purity of the flavor. To clean a china teapot, it is recommended to wash it by hand with a mild detergent, using a soft cloth or sponge. Harsh cleaning agents or abrasives should be avoided, as they can damage the delicate surface of the teapot. Overall, a china teapot is a timeless and classic piece of tableware that adds a touch of elegance and sophistication to any tea party or gathering. Its delicate and intricate design, combined with its functionality and heat retention properties, make it a cherished item for tea lovers around the world.", + }, + ], + "key": "willow-teapot", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Hand wash only","en-US":"- Hand wash only","de-DE":"- Handwäsche nur"}", + }, + { + "name": "color", + "value": "{"en-GB":"Sky Blue:#87CEEB","de-DE":"Himmel blau:#87CEEB","en-US":"Sky Blue:#87CEEB"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 4160, + "width": 6240, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Willow_Teapot-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "899USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 899, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "WTP-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Willow Teapot", + }, + { + "locale": "en-GB", + "value": "Willow Teapot", + }, + { + "locale": "de-DE", + "value": "Teekanne >Willow<", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 899, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "willow-teapot", + }, + { + "locale": "en-GB", + "value": "willow-teapot", + }, + { + "locale": "de-DE", + "value": "willow-teekanne", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "WTP-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Willow Teapot", - }, - { - "locale": "en-GB", - "value": "Willow Teapot", - }, - { - "locale": "de-DE", - "value": "Teekanne >Willow<", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "willow-teapot", - }, - { - "locale": "en-GB", - "value": "willow-teapot", - }, - { - "locale": "de-DE", - "value": "willow-teekanne", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/wilma-chair.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/wilma-chair.spec.ts index 006ffa538..98357618b 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/wilma-chair.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/wilma-chair.spec.ts @@ -5,333 +5,333 @@ describe(`with wilmaChair preset`, () => { it(`should return a wilmaChair preset`, () => { const wilmaChairPreset = wilmaChair().build(); expect(wilmaChairPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Der getuftete armlehnenlose Futon-Stuhl hat ein einfaches und modernes Design mit gepolstertem Sitz und Rückenlehne. Das Design des Sessels verzichtet auf Armlehnen, um mehr Flexibilität beim Sitzerlebnis zu schaffen. Die Polsterung besteht aus strapazierfähigem Stoff, der leicht zu reinigen und zu pflegen ist. Der getuftete Futonstuhl ohne Armlehnen ist ein praktisches und stilvolles Möbelstück, das in einer Vielzahl von Umgebungen verwendet werden kann, z. B. im Wohn-, Schlaf- oder Arbeitsbereich.", - "en": undefined, - "en-GB": "A tufted armless futon chair has a simple and modern design, featuring a cushioned seat and backrest with tufted details for added comfort and style. The chair lacks arms to allow for more flexibility and ease of use. The upholstery is made of durable fabric that is easy to clean and maintain. Overall, a tufted armless futon chair is a practical and stylish furniture piece that can be used in a variety of settings, such as a living room, bedroom, or home office.", - "en-US": "A tufted armless futon chair has a simple and modern design, featuring a cushioned seat and backrest with tufted details for added comfort and style. The chair lacks arms to allow for more flexibility and ease of use. The upholstery is made of durable fabric that is easy to clean and maintain. Overall, a tufted armless futon chair is a practical and stylish furniture piece that can be used in a variety of settings, such as a living room, bedroom, or home office.", - "fr": undefined, - }, - "key": "wilma-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Kissenbezüge sind abnehmbar und maschinenwaschbar", - "en-GB": "- Cushion covers are removable and machine washable", - "en-US": "- Cushion covers are removable and machine washable", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Der getuftete armlehnenlose Futon-Stuhl hat ein einfaches und modernes Design mit gepolstertem Sitz und Rückenlehne. Das Design des Sessels verzichtet auf Armlehnen, um mehr Flexibilität beim Sitzerlebnis zu schaffen. Die Polsterung besteht aus strapazierfähigem Stoff, der leicht zu reinigen und zu pflegen ist. Der getuftete Futonstuhl ohne Armlehnen ist ein praktisches und stilvolles Möbelstück, das in einer Vielzahl von Umgebungen verwendet werden kann, z. B. im Wohn-, Schlaf- oder Arbeitsbereich.", + "en": undefined, + "en-GB": "A tufted armless futon chair has a simple and modern design, featuring a cushioned seat and backrest with tufted details for added comfort and style. The chair lacks arms to allow for more flexibility and ease of use. The upholstery is made of durable fabric that is easy to clean and maintain. Overall, a tufted armless futon chair is a practical and stylish furniture piece that can be used in a variety of settings, such as a living room, bedroom, or home office.", + "en-US": "A tufted armless futon chair has a simple and modern design, featuring a cushioned seat and backrest with tufted details for added comfort and style. The chair lacks arms to allow for more flexibility and ease of use. The upholstery is made of durable fabric that is easy to clean and maintain. Overall, a tufted armless futon chair is a practical and stylish furniture piece that can be used in a variety of settings, such as a living room, bedroom, or home office.", + "fr": undefined, }, - }, - { - "name": "finish", - "value": { - "de-DE": "Schwarz:#000000", - "en-GB": "Black:#000000", - "en-US": "Black:#000000", + "key": "wilma-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Kissenbezüge sind abnehmbar und maschinenwaschbar", + "en-GB": "- Cushion covers are removable and machine washable", + "en-US": "- Cushion covers are removable and machine washable", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Schwarz:#000000", + "en-GB": "Black:#000000", + "en-US": "Black:#000000", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Blumen weiß:#FFFAF0", + "en-GB": "Floral White:#FFFAF0", + "en-US": "Floral White:#FFFAF0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.1.jpeg", + }, + { + "dimensions": { + "h": 3200, + "w": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + ], + "sku": "NJOP-09", }, - }, - { - "name": "color", - "value": { - "de-DE": "Blumen weiß:#FFFAF0", - "en-GB": "Floral White:#FFFAF0", - "en-US": "Floral White:#FFFAF0", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Sessel >Wilma<", + "en": undefined, + "en-GB": "Wilma Chair", + "en-US": "Wilma Chair", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3200, - "w": 2400, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.1.jpeg", - }, - { - "dimensions": { - "h": 3200, - "w": 2400, + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "wilma-stuhl", + "en": undefined, + "en-GB": "wilma-chair", + "en-US": "wilma-chair", + "fr": undefined, }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "EUR", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 29900, - "currencyCode": "USD", - }, - }, - ], - "sku": "NJOP-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Sessel >Wilma<", - "en": undefined, - "en-GB": "Wilma Chair", - "en-US": "Wilma Chair", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "wilma-stuhl", - "en": undefined, - "en-GB": "wilma-chair", - "en-US": "wilma-chair", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a wilmaChair preset when built for graphql`, () => { const wilmaChairPresetGraphql = wilmaChair().buildGraphql(); expect(wilmaChairPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "armchairs", - "typeId": "category", - }, - { - "key": "living-room-furniture", - "typeId": "category", - }, - { - "key": "furniture", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A tufted armless futon chair has a simple and modern design, featuring a cushioned seat and backrest with tufted details for added comfort and style. The chair lacks arms to allow for more flexibility and ease of use. The upholstery is made of durable fabric that is easy to clean and maintain. Overall, a tufted armless futon chair is a practical and stylish furniture piece that can be used in a variety of settings, such as a living room, bedroom, or home office.", - }, - { - "locale": "de-DE", - "value": "Der getuftete armlehnenlose Futon-Stuhl hat ein einfaches und modernes Design mit gepolstertem Sitz und Rückenlehne. Das Design des Sessels verzichtet auf Armlehnen, um mehr Flexibilität beim Sitzerlebnis zu schaffen. Die Polsterung besteht aus strapazierfähigem Stoff, der leicht zu reinigen und zu pflegen ist. Der getuftete Futonstuhl ohne Armlehnen ist ein praktisches und stilvolles Möbelstück, das in einer Vielzahl von Umgebungen verwendet werden kann, z. B. im Wohn-, Schlaf- oder Arbeitsbereich.", - }, - { - "locale": "en-GB", - "value": "A tufted armless futon chair has a simple and modern design, featuring a cushioned seat and backrest with tufted details for added comfort and style. The chair lacks arms to allow for more flexibility and ease of use. The upholstery is made of durable fabric that is easy to clean and maintain. Overall, a tufted armless futon chair is a practical and stylish furniture piece that can be used in a variety of settings, such as a living room, bedroom, or home office.", - }, - ], - "key": "wilma-chair", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Cushion covers are removable and machine washable","en-US":"- Cushion covers are removable and machine washable","de-DE":"- Kissenbezüge sind abnehmbar und maschinenwaschbar"}", - }, - { - "name": "finish", - "value": "{"en-GB":"Black:#000000","en-US":"Black:#000000","de-DE":"Schwarz:#000000"}", - }, - { - "name": "color", - "value": "{"en-GB":"Floral White:#FFFAF0","de-DE":"Blumen weiß:#FFFAF0","en-US":"Floral White:#FFFAF0"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3200, - "width": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.1.jpeg", - }, - { - "dimensions": { - "height": 3200, - "width": 2400, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.2.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "EUR", + "categories": [ + { + "key": "armchairs", + "typeId": "category", + }, + { + "key": "living-room-furniture", + "typeId": "category", + }, + { + "key": "furniture", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A tufted armless futon chair has a simple and modern design, featuring a cushioned seat and backrest with tufted details for added comfort and style. The chair lacks arms to allow for more flexibility and ease of use. The upholstery is made of durable fabric that is easy to clean and maintain. Overall, a tufted armless futon chair is a practical and stylish furniture piece that can be used in a variety of settings, such as a living room, bedroom, or home office.", + }, + { + "locale": "de-DE", + "value": "Der getuftete armlehnenlose Futon-Stuhl hat ein einfaches und modernes Design mit gepolstertem Sitz und Rückenlehne. Das Design des Sessels verzichtet auf Armlehnen, um mehr Flexibilität beim Sitzerlebnis zu schaffen. Die Polsterung besteht aus strapazierfähigem Stoff, der leicht zu reinigen und zu pflegen ist. Der getuftete Futonstuhl ohne Armlehnen ist ein praktisches und stilvolles Möbelstück, das in einer Vielzahl von Umgebungen verwendet werden kann, z. B. im Wohn-, Schlaf- oder Arbeitsbereich.", }, + { + "locale": "en-GB", + "value": "A tufted armless futon chair has a simple and modern design, featuring a cushioned seat and backrest with tufted details for added comfort and style. The chair lacks arms to allow for more flexibility and ease of use. The upholstery is made of durable fabric that is easy to clean and maintain. Overall, a tufted armless futon chair is a practical and stylish furniture piece that can be used in a variety of settings, such as a living room, bedroom, or home office.", + }, + ], + "key": "wilma-chair", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Cushion covers are removable and machine washable","en-US":"- Cushion covers are removable and machine washable","de-DE":"- Kissenbezüge sind abnehmbar und maschinenwaschbar"}", + }, + { + "name": "finish", + "value": "{"en-GB":"Black:#000000","en-US":"Black:#000000","de-DE":"Schwarz:#000000"}", + }, + { + "name": "color", + "value": "{"en-GB":"Floral White:#FFFAF0","de-DE":"Blumen weiß:#FFFAF0","en-US":"Floral White:#FFFAF0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3200, + "width": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.1.jpeg", + }, + { + "dimensions": { + "height": 3200, + "width": 2400, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wilma_Chair-1.2.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "29900USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 29900, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "NJOP-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Wilma Chair", + }, + { + "locale": "en-GB", + "value": "Wilma Chair", + }, + { + "locale": "de-DE", + "value": "Sessel >Wilma<", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 29900, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "wilma-chair", + }, + { + "locale": "en-GB", + "value": "wilma-chair", + }, + { + "locale": "de-DE", + "value": "wilma-stuhl", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "NJOP-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Wilma Chair", - }, - { - "locale": "en-GB", - "value": "Wilma Chair", - }, - { - "locale": "de-DE", - "value": "Sessel >Wilma<", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "wilma-chair", - }, - { - "locale": "en-GB", - "value": "wilma-chair", - }, - { - "locale": "de-DE", - "value": "wilma-stuhl", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); }); diff --git a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener.spec.ts b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener.spec.ts index 223705b9d..adcd96da3 100644 --- a/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener.spec.ts +++ b/models/product/src/product/product-draft/presets/sample-data-b2c-lifestyle/wine-bottle-opener.spec.ts @@ -5,317 +5,317 @@ describe(`with wineBottleOpener preset`, () => { it(`should return a wineBottleOpener preset`, () => { const wineBottleOpenerPreset = wineBottleOpener().build(); expect(wineBottleOpenerPreset).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": { - "de": undefined, - "de-DE": "Mit diesem praktischen Korkenzieher wird das Öffnen von Weinflaschen zur leichten Übung. Der Korkenzieher hat eine spitze Spiralschraube, die in den Korken gedreht wird, und einen Griff oder Hebel, mit dem der Korken aus der Flasche gehoben wird. Ein weiteres Feature des Korkenziehers im Hebelstil ist ein Flaschenöffner.", - "en": undefined, - "en-GB": "A wine bottle opener is a device used to remove the cork from a wine bottle. This opener features a pointed helix screw that is twisted into the cork, and a handle or lever that is used to pull the cork out of the bottle. Additional features include a bottle opener. This wine bottle opener is lever-style.", - "en-US": "A wine bottle opener is a device used to remove the cork from a wine bottle. This opener features a pointed helix screw that is twisted into the cork, and a handle or lever that is used to pull the cork out of the bottle. Additional features include a bottle opener. This wine bottle opener is lever-style.", - "fr": undefined, - }, - "key": "wine-bottle-opener", - "masterVariant": { - "assets": undefined, - "attributes": [ { - "name": "productspec", - "value": { - "de-DE": "- Edelstahl", - "en-GB": "- Stainless steel", - "en-US": "- Stainless steel", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": { + "de": undefined, + "de-DE": "Mit diesem praktischen Korkenzieher wird das Öffnen von Weinflaschen zur leichten Übung. Der Korkenzieher hat eine spitze Spiralschraube, die in den Korken gedreht wird, und einen Griff oder Hebel, mit dem der Korken aus der Flasche gehoben wird. Ein weiteres Feature des Korkenziehers im Hebelstil ist ein Flaschenöffner.", + "en": undefined, + "en-GB": "A wine bottle opener is a device used to remove the cork from a wine bottle. This opener features a pointed helix screw that is twisted into the cork, and a handle or lever that is used to pull the cork out of the bottle. Additional features include a bottle opener. This wine bottle opener is lever-style.", + "en-US": "A wine bottle opener is a device used to remove the cork from a wine bottle. This opener features a pointed helix screw that is twisted into the cork, and a handle or lever that is used to pull the cork out of the bottle. Additional features include a bottle opener. This wine bottle opener is lever-style.", + "fr": undefined, }, - }, - { - "name": "color", - "value": { - "de-DE": "Weiß:#FFFFFF", - "en-GB": "White:#FFFFFF", - "en-US": "White:#FFFFFF", + "key": "wine-bottle-opener", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": { + "de-DE": "- Edelstahl", + "en-GB": "- Stainless steel", + "en-US": "- Stainless steel", + }, + }, + { + "name": "color", + "value": { + "de-DE": "Weiß:#FFFFFF", + "en-GB": "White:#FFFFFF", + "en-US": "White:#FFFFFF", + }, + }, + { + "name": "finish", + "value": { + "de-DE": "Silber:#C0C0C0", + "en-GB": "Silver:#C0C0C0", + "en-US": "Silver:#C0C0C0", + }, + }, + ], + "images": [ + { + "dimensions": { + "h": 3456, + "w": 5184, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wine_Bottle_Opener-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + ], + "sku": "WOP-09", }, - }, - { - "name": "finish", - "value": { - "de-DE": "Silber:#C0C0C0", - "en-GB": "Silver:#C0C0C0", - "en-US": "Silver:#C0C0C0", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": { + "de": undefined, + "de-DE": "Korkenzieher", + "en": undefined, + "en-GB": "Wine Bottle Opener", + "en-US": "Wine Bottle Opener", + "fr": undefined, }, - }, - ], - "images": [ - { - "dimensions": { - "h": 3456, - "w": 5184, + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wine_Bottle_Opener-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "EUR", + "publish": true, + "searchKeywords": undefined, + "slug": { + "de": undefined, + "de-DE": "wein-flaschenffner", + "en": undefined, + "en-GB": "wine-bottle-opener", + "en-US": "wine-bottle-opener", + "fr": undefined, }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "GBP", - }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centAmount": 199, - "currencyCode": "USD", + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "WOP-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": { - "de": undefined, - "de-DE": "Korkenzieher", - "en": undefined, - "en-GB": "Wine Bottle Opener", - "en-US": "Wine Bottle Opener", - "fr": undefined, - }, - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": { - "de": undefined, - "de-DE": "wein-flaschenffner", - "en": undefined, - "en-GB": "wine-bottle-opener", - "en-US": "wine-bottle-opener", - "fr": undefined, - }, - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); it(`should return a wineBottleOpener preset when built for graphql`, () => { const wineBottleOpenerPresetGraphql = wineBottleOpener().buildGraphql(); expect(wineBottleOpenerPresetGraphql).toMatchInlineSnapshot(` -{ - "categories": [ - { - "key": "bar-accessories", - "typeId": "category", - }, - { - "key": "bar-and-glassware", - "typeId": "category", - }, - { - "key": "kitchen", - "typeId": "category", - }, - ], - "categoryOrderHints": undefined, - "description": [ - { - "locale": "en-US", - "value": "A wine bottle opener is a device used to remove the cork from a wine bottle. This opener features a pointed helix screw that is twisted into the cork, and a handle or lever that is used to pull the cork out of the bottle. Additional features include a bottle opener. This wine bottle opener is lever-style.", - }, - { - "locale": "de-DE", - "value": "Mit diesem praktischen Korkenzieher wird das Öffnen von Weinflaschen zur leichten Übung. Der Korkenzieher hat eine spitze Spiralschraube, die in den Korken gedreht wird, und einen Griff oder Hebel, mit dem der Korken aus der Flasche gehoben wird. Ein weiteres Feature des Korkenziehers im Hebelstil ist ein Flaschenöffner.", - }, - { - "locale": "en-GB", - "value": "A wine bottle opener is a device used to remove the cork from a wine bottle. This opener features a pointed helix screw that is twisted into the cork, and a handle or lever that is used to pull the cork out of the bottle. Additional features include a bottle opener. This wine bottle opener is lever-style.", - }, - ], - "key": "wine-bottle-opener", - "masterVariant": { - "assets": undefined, - "attributes": [ - { - "name": "productspec", - "value": "{"en-GB":"- Stainless steel","en-US":"- Stainless steel","de-DE":"- Edelstahl"}", - }, - { - "name": "color", - "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", - }, - { - "name": "finish", - "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", - }, - ], - "images": [ { - "dimensions": { - "height": 3456, - "width": 5184, - }, - "label": undefined, - "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wine_Bottle_Opener-1.1.jpeg", - }, - ], - "key": undefined, - "prices": [ - { - "channel": undefined, - "country": "DE", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "EUR", + "categories": [ + { + "key": "bar-accessories", + "typeId": "category", + }, + { + "key": "bar-and-glassware", + "typeId": "category", + }, + { + "key": "kitchen", + "typeId": "category", + }, + ], + "categoryOrderHints": undefined, + "description": [ + { + "locale": "en-US", + "value": "A wine bottle opener is a device used to remove the cork from a wine bottle. This opener features a pointed helix screw that is twisted into the cork, and a handle or lever that is used to pull the cork out of the bottle. Additional features include a bottle opener. This wine bottle opener is lever-style.", + }, + { + "locale": "de-DE", + "value": "Mit diesem praktischen Korkenzieher wird das Öffnen von Weinflaschen zur leichten Übung. Der Korkenzieher hat eine spitze Spiralschraube, die in den Korken gedreht wird, und einen Griff oder Hebel, mit dem der Korken aus der Flasche gehoben wird. Ein weiteres Feature des Korkenziehers im Hebelstil ist ein Flaschenöffner.", + }, + { + "locale": "en-GB", + "value": "A wine bottle opener is a device used to remove the cork from a wine bottle. This opener features a pointed helix screw that is twisted into the cork, and a handle or lever that is used to pull the cork out of the bottle. Additional features include a bottle opener. This wine bottle opener is lever-style.", }, + ], + "key": "wine-bottle-opener", + "masterVariant": { + "assets": undefined, + "attributes": [ + { + "name": "productspec", + "value": "{"en-GB":"- Stainless steel","en-US":"- Stainless steel","de-DE":"- Edelstahl"}", + }, + { + "name": "color", + "value": "{"en-US":"White:#FFFFFF","en-GB":"White:#FFFFFF","de-DE":"Weiß:#FFFFFF"}", + }, + { + "name": "finish", + "value": "{"en-US":"Silver:#C0C0C0","en-GB":"Silver:#C0C0C0","de-DE":"Silber:#C0C0C0"}", + }, + ], + "images": [ + { + "dimensions": { + "height": 3456, + "width": 5184, + }, + "label": undefined, + "url": "https://storage.googleapis.com/merchant-center-europe/sample-data/b2c-lifestyle/Wine_Bottle_Opener-1.1.jpeg", + }, + ], + "key": undefined, + "prices": [ + { + "channel": undefined, + "country": "DE", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199EUR", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "EUR", + }, + }, + }, + { + "channel": undefined, + "country": "GB", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199GBP", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "GBP", + }, + }, + }, + { + "channel": undefined, + "country": "US", + "custom": undefined, + "customerGroup": undefined, + "discounted": undefined, + "key": "199USD", + "tiers": undefined, + "validFrom": undefined, + "validUntil": undefined, + "value": { + "centPrecision": { + "centAmount": 199, + "currencyCode": "USD", + }, + }, + }, + ], + "sku": "WOP-09", }, - }, - { - "channel": undefined, - "country": "GB", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "GBP", + "metaDescription": undefined, + "metaKeywords": undefined, + "metaTitle": undefined, + "name": [ + { + "locale": "en-US", + "value": "Wine Bottle Opener", + }, + { + "locale": "en-GB", + "value": "Wine Bottle Opener", + }, + { + "locale": "de-DE", + "value": "Korkenzieher", }, + ], + "priceMode": undefined, + "productType": { + "key": "furniture-and-decor", + "typeId": "product-type", }, - }, - { - "channel": undefined, - "country": "US", - "custom": undefined, - "customerGroup": undefined, - "discounted": undefined, - "key": undefined, - "tiers": undefined, - "validFrom": undefined, - "validUntil": undefined, - "value": { - "centPrecision": { - "centAmount": 199, - "currencyCode": "USD", + "publish": true, + "searchKeywords": undefined, + "slug": [ + { + "locale": "en-US", + "value": "wine-bottle-opener", + }, + { + "locale": "en-GB", + "value": "wine-bottle-opener", + }, + { + "locale": "de-DE", + "value": "wein-flaschenffner", }, + ], + "state": undefined, + "taxCategory": { + "key": "standard-tax", + "typeId": "tax-category", }, - }, - ], - "sku": "WOP-09", - }, - "metaDescription": undefined, - "metaKeywords": undefined, - "metaTitle": undefined, - "name": [ - { - "locale": "en-US", - "value": "Wine Bottle Opener", - }, - { - "locale": "en-GB", - "value": "Wine Bottle Opener", - }, - { - "locale": "de-DE", - "value": "Korkenzieher", - }, - ], - "priceMode": undefined, - "productType": { - "key": "furniture-and-decor", - "typeId": "product-type", - }, - "publish": true, - "searchKeywords": undefined, - "slug": [ - { - "locale": "en-US", - "value": "wine-bottle-opener", - }, - { - "locale": "en-GB", - "value": "wine-bottle-opener", - }, - { - "locale": "de-DE", - "value": "wein-flaschenffner", - }, - ], - "state": undefined, - "taxCategory": { - "key": "standard-tax", - "typeId": "tax-category", - }, - "variants": undefined, -} -`); + "variants": undefined, + } + `); }); });