up
This commit is contained in:
@@ -50,6 +50,19 @@ export class Order extends BaseEntity {
|
||||
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
|
||||
couponDiscount: number = 0;
|
||||
|
||||
@Property({ type: 'json', nullable: true })
|
||||
couponDetail: {
|
||||
couponId: string;
|
||||
couponName: string;
|
||||
couponCode: string;
|
||||
type: 'PERCENTAGE' | 'FIXED' | 'DELIVERY' | 'ITEM';
|
||||
value: number;
|
||||
|
||||
maxDiscount?: number;
|
||||
calculatedDiscount: number;
|
||||
ruleVersion?: string;
|
||||
} | null = null;
|
||||
|
||||
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
|
||||
itemsDiscount: number = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user