---
title: "OrderLineReference"
generated: true
---
<GenerationInfo sourceFile="packages/core/src/entity/order-line-reference/fulfillment-line.entity.ts" sourceLine="16" packageName="@vendure/core" />

This entity represents a line from an <DocsLink href="/reference/typescript-api/entities/order#order">Order</DocsLink> which has been fulfilled by a <DocsLink href="/reference/typescript-api/entities/fulfillment#fulfillment">Fulfillment</DocsLink>.

```ts title="Signature"
class FulfillmentLine extends OrderLineReference {
    constructor(input?: DeepPartial<FulfillmentLine>)
    @Index()
    @ManyToOne(type => Fulfillment, fulfillment => fulfillment.lines)
    fulfillment: Fulfillment;
    @EntityId()
    fulfillmentId: ID;
}
```
* Extends: <DocsLink href="/reference/typescript-api/entities/order-line-reference#orderlinereference">`OrderLineReference`</DocsLink>



<div className="members-wrapper">

### constructor

<MemberInfo kind="method" type={`(input?: `DeepPartial<`<a href='/reference/typescript-api/entities/order-line-reference#fulfillmentline'>FulfillmentLine</a>`>`) => FulfillmentLine`}   />


### fulfillment

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/entities/fulfillment#fulfillment'>Fulfillment</a>`}   />


### fulfillmentId

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/common/id#id'>ID</a>`}   />




</div>
<GenerationInfo sourceFile="packages/core/src/entity/order-line-reference/order-line-reference.entity.ts" sourceLine="15" packageName="@vendure/core" />

This is an abstract base class for entities which reference an <DocsLink href="/reference/typescript-api/entities/order-line#orderline">OrderLine</DocsLink>.

```ts title="Signature"
class OrderLineReference extends VendureEntity {
    @Column()
    quantity: number;
    @Index()
    @ManyToOne(type => OrderLine, line => line.linesReferences, { onDelete: 'CASCADE' })
    orderLine: OrderLine;
    @EntityId()
    orderLineId: ID;
}
```
* Extends: <DocsLink href="/reference/typescript-api/entities/vendure-entity#vendureentity">`VendureEntity`</DocsLink>



<div className="members-wrapper">

### quantity

<MemberInfo kind="property" type={`number`}   />


### orderLine

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/entities/order-line#orderline'>OrderLine</a>`}   />


### orderLineId

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/common/id#id'>ID</a>`}   />




</div>
<GenerationInfo sourceFile="packages/core/src/entity/order-line-reference/order-modification-line.entity.ts" sourceLine="16" packageName="@vendure/core" />

This entity represents a line from an <DocsLink href="/reference/typescript-api/entities/order#order">Order</DocsLink> which has been modified by an <DocsLink href="/reference/typescript-api/entities/order-modification#ordermodification">OrderModification</DocsLink>.

```ts title="Signature"
class OrderModificationLine extends OrderLineReference {
    constructor(input?: DeepPartial<OrderModificationLine>)
    @Index()
    @ManyToOne(type => OrderModification, modification => modification.lines)
    modification: OrderModification;
    @EntityId()
    modificationId: ID;
}
```
* Extends: <DocsLink href="/reference/typescript-api/entities/order-line-reference#orderlinereference">`OrderLineReference`</DocsLink>



<div className="members-wrapper">

### constructor

<MemberInfo kind="method" type={`(input?: `DeepPartial<`<a href='/reference/typescript-api/entities/order-line-reference#ordermodificationline'>OrderModificationLine</a>`>`) => OrderModificationLine`}   />


### modification

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/entities/order-modification#ordermodification'>OrderModification</a>`}   />


### modificationId

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/common/id#id'>ID</a>`}   />




</div>
<GenerationInfo sourceFile="packages/core/src/entity/order-line-reference/refund-line.entity.ts" sourceLine="16" packageName="@vendure/core" />

This entity represents a line from an <DocsLink href="/reference/typescript-api/entities/order#order">Order</DocsLink> which has been refunded by a <DocsLink href="/reference/typescript-api/entities/refund#refund">Refund</DocsLink>.

```ts title="Signature"
class RefundLine extends OrderLineReference {
    constructor(input?: DeepPartial<RefundLine>)
    @Index()
    @ManyToOne(type => Refund, refund => refund.lines)
    refund: Refund;
    @EntityId()
    refundId: ID;
}
```
* Extends: <DocsLink href="/reference/typescript-api/entities/order-line-reference#orderlinereference">`OrderLineReference`</DocsLink>



<div className="members-wrapper">

### constructor

<MemberInfo kind="method" type={`(input?: `DeepPartial<`<a href='/reference/typescript-api/entities/order-line-reference#refundline'>RefundLine</a>`>`) => RefundLine`}   />


### refund

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/entities/refund#refund'>Refund</a>`}   />


### refundId

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/common/id#id'>ID</a>`}   />




</div>
