mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
120 lines
3 KiB
YAML
120 lines
3 KiB
YAML
Sylius\Component\Core\Model\Order:
|
|
order1:
|
|
channel: @channel
|
|
currencyCode: "EUR"
|
|
addItem: [@orderItem1]
|
|
|
|
Sylius\Component\Core\Model\OrderItem:
|
|
orderItem1:
|
|
quantity: 1
|
|
unitPrice: 2000
|
|
addUnit: [@orderItemUnit1]
|
|
variant: @productVariant1
|
|
|
|
Sylius\Component\Core\Model\OrderItemUnit:
|
|
orderItemUnit1:
|
|
__construct: [@orderItem1]
|
|
|
|
Sylius\Component\Core\Model\Channel:
|
|
channel:
|
|
code: "CHANNEL"
|
|
name: "Channel"
|
|
hostname: "localhost"
|
|
description: "Lorem ipsum"
|
|
defaultCurrency: @currency
|
|
defaultLocale: @locale
|
|
color: "black"
|
|
enabled: true
|
|
taxCalculationStrategy: "order_items_based"
|
|
currencies: [@currency]
|
|
shippingMethods: [@ups]
|
|
paymentMethods: [@cash_on_delivery]
|
|
|
|
Sylius\Component\Core\Model\Product:
|
|
product1:
|
|
updatedAt: 2015-10-10
|
|
currentLocale: en_US
|
|
currentTranslation: @productTranslation1
|
|
variants: [@productVariant1]
|
|
code: MUG_SW
|
|
product2:
|
|
updatedAt: 2015-10-04
|
|
currentLocale: en_US
|
|
currentTranslation: @productTranslation2
|
|
variants: [@productVariant2]
|
|
code: MUG_LOTR
|
|
|
|
Sylius\Component\Core\Model\ProductTranslation:
|
|
productTranslation1:
|
|
slug: mug-star-wars
|
|
locale: en_US
|
|
name: 'Star wars mug'
|
|
description: <paragraph(2)>
|
|
translatable: @product1
|
|
productTranslation2:
|
|
slug: mug-lotr
|
|
locale: en_US
|
|
name: 'Lotr mug'
|
|
description: <paragraph(2)>
|
|
translatable: @product2
|
|
|
|
Sylius\Component\Core\Model\ProductVariant:
|
|
productVariant1:
|
|
code: MUG_1
|
|
setPrice: [20]
|
|
productVariant2:
|
|
code: MUG_2
|
|
setPrice: [20]
|
|
|
|
Sylius\Component\Core\Model\ShippingMethod:
|
|
ups:
|
|
code: UPS
|
|
enabled: true
|
|
calculator: 'flat_rate'
|
|
configuration:
|
|
amount: 10
|
|
zone: @zone_eu
|
|
currentLocale: en_US
|
|
currentTranslation: @upsTranslation1
|
|
|
|
Sylius\Component\Shipping\Model\ShippingMethodTranslation:
|
|
upsTranslation1:
|
|
name: 'UPS'
|
|
locale: 'en_US'
|
|
translatable: @ups
|
|
|
|
Sylius\Component\Payment\Model\PaymentMethod:
|
|
cash_on_delivery:
|
|
code: cod
|
|
enabled: true
|
|
gateway: 'offline'
|
|
currentLocale: en_US
|
|
currentTranslation: @cash_on_delivery_translation1
|
|
|
|
Sylius\Component\Payment\Model\PaymentMethodTranslation:
|
|
cash_on_delivery_translation1:
|
|
name: 'Cach on delivery'
|
|
locale: 'en_US'
|
|
translatable: @cash_on_delivery
|
|
|
|
Sylius\Component\Currency\Model\Currency:
|
|
currency:
|
|
code: "EUR"
|
|
exchangeRate: 1
|
|
enabled: true
|
|
|
|
Sylius\Component\Locale\Model\Locale:
|
|
locale:
|
|
code: en_US
|
|
enabled: true
|
|
|
|
Sylius\Component\Addressing\Model\Zone:
|
|
zone_eu:
|
|
code: EU
|
|
name: European Union
|
|
type: country
|
|
members: [@member_NL, @member_BE]
|
|
|
|
Sylius\Component\Addressing\Model\ZoneMember:
|
|
member_{NL, BE}:
|
|
code: <current()>
|