OrderModification
OrderModification
An entity which represents a modification to an order which has been placed, and then modified afterwards by an administrator.
Signature
class OrderModification extends VendureEntity {
constructor(input?: DeepPartial<OrderModification>)
@Column()
note: string;
@ManyToOne(type => Order, order => order.modifications, { onDelete: 'CASCADE' })
order: Order;
@ManyToMany(type => OrderItem)
@JoinTable()
orderItems: OrderItem[];
@OneToMany(type => Surcharge, surcharge => surcharge.orderModification)
surcharges: Surcharge[];
@Column()
priceChange: number;
@OneToOne(type => Payment)
@JoinColumn()
payment?: Payment;
@OneToOne(type => Refund)
@JoinColumn()
refund?: Refund;
@Column('simple-json', { nullable: true }) shippingAddressChange: OrderAddress;
@Column('simple-json', { nullable: true }) billingAddressChange: OrderAddress;
isSettled: boolean
}
Extends
Members
constructor
(input?: DeepPartial<OrderModification>) => OrderModification
note
string
order
Order
orderItems
OrderItem[]
surcharges
Surcharge[]
priceChange
number
payment
Payment
refund
Refund
shippingAddressChange
OrderAddress
billingAddressChange
OrderAddress
isSettled
boolean