new JsonField('configuration', 'configuration'
))->
addFlags(new ApiAware()),
(new BoolField('active', 'active'
))->
addFlags(new ApiAware()),
(new BoolField('hreflang_active', 'hreflangActive'
))->
addFlags(new ApiAware()),
(new BoolField('maintenance', 'maintenance'
))->
addFlags(new ApiAware()),
new ListField('maintenance_ip_whitelist', 'maintenanceIpWhitelist'
),
(new TranslatedField('customFields'
))->
addFlags(new ApiAware()),
(new TranslationsAssociationField(SalesChannelTranslationDefinition::
class, 'sales_channel_id'
))->
addFlags(new Required()),
new ManyToManyAssociationField('currencies', CurrencyDefinition::
class, SalesChannelCurrencyDefinition::
class, 'sales_channel_id', 'currency_id'
),
new ManyToManyAssociationField('languages', LanguageDefinition::
class, SalesChannelLanguageDefinition::
class, 'sales_channel_id', 'language_id'
),
new ManyToManyAssociationField('countries', CountryDefinition::
class, SalesChannelCountryDefinition::
class, 'sales_channel_id', 'country_id'
),
new ManyToManyAssociationField('paymentMethods', PaymentMethodDefinition::
class, SalesChannelPaymentMethodDefinition::
class, 'sales_channel_id', 'payment_method_id'
),
new ManyToManyIdField('payment_method_ids', 'paymentMethodIds', 'paymentMethods'
),
new ManyToManyAssociationField('shippingMethods', ShippingMethodDefinition::
class, SalesChannelShippingMethodDefinition::
class, 'sales_channel_id', 'shipping_method_id'
),
new ManyToOneAssociationField('type', 'type_id', SalesChannelTypeDefinition::
class, 'id', false
),
(new ManyToOneAssociationField('language', 'language_id', LanguageDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
new ManyToOneAssociationField('customerGroup', 'customer_group_id', CustomerGroupDefinition::
class, 'id', false
),
(new ManyToOneAssociationField('currency', 'currency_id', CurrencyDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
(new ManyToOneAssociationField('paymentMethod', 'payment_method_id', PaymentMethodDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
(new ManyToOneAssociationField('shippingMethod', 'shipping_method_id', ShippingMethodDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
(new ManyToOneAssociationField('country', 'country_id', CountryDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
new OneToManyAssociationField('orders', OrderDefinition::
class, 'sales_channel_id', 'id'
),
new OneToManyAssociationField('customers', CustomerDefinition::
class, 'sales_channel_id', 'id'
),