new StringField('referenced_id', 'referencedId'
))->
addFlags(new ApiAware()),
(new IntField('quantity', 'quantity'
))->
addFlags(new ApiAware(),
new Required()),
(new StringField('label', 'label'
))->
addFlags(new ApiAware(),
new Required()),
(new JsonField('payload', 'payload'
))->
addFlags(new ApiAware()),
(new BoolField('good', 'good'
))->
addFlags(new ApiAware()),
(new BoolField('removable', 'removable'
))->
addFlags(new ApiAware()),
(new BoolField('stackable', 'stackable'
))->
addFlags(new ApiAware()),
(new IntField('position', 'position'
))->
addFlags(new ApiAware(),
new Required()),
(new ListField('states', 'states', StringField::
class))->
addFlags(new ApiAware(),
new Required()),
(new CalculatedPriceField('price', 'price'
))->
addFlags(new Required()),
(new PriceDefinitionField('price_definition', 'priceDefinition'
))->
addFlags(new ApiAware()),
(new FloatField('unit_price', 'unitPrice'
))->
addFlags(new ApiAware(),
new Computed()),
(new FloatField('total_price', 'totalPrice'
))->
addFlags(new ApiAware(),
new Computed()),
(new LongTextField('description', 'description'
))->
addFlags(new ApiAware()),
(new StringField('type', 'type'
))->
addFlags(new ApiAware()),
(new CustomFields())->
addFlags(new ApiAware()),
new ManyToOneAssociationField('order', 'order_id', OrderDefinition::
class, 'id', false
),
new ManyToOneAssociationField('product', 'product_id', ProductDefinition::
class, 'id', false
),
new ManyToOneAssociationField('promotion', 'promotion_id', PromotionDefinition::
class, 'id', false
),
(new OneToManyAssociationField('orderDeliveryPositions', OrderDeliveryPositionDefinition::
class, 'order_line_item_id', 'id'
))->
addFlags(new ApiAware(),
new CascadeDelete(),
new WriteProtected()),
(new OneToManyAssociationField('orderTransactionCaptureRefundPositions', OrderTransactionCaptureRefundPositionDefinition::
class, 'order_line_item_id'
))->
addFlags(new CascadeDelete()),
(