-
Notifications
You must be signed in to change notification settings - Fork 70
/
orders.model.ts
55 lines (46 loc) · 1017 Bytes
/
orders.model.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (c) 2023 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {AnyObject, model, property} from '@loopback/repository';
import {CoreEntity} from '@sourceloop/core';
@model({settings: {strict: true}})
export class Orders extends CoreEntity<Orders> {
@property({
type: 'string',
id: true,
})
id?: string;
@property({
type: 'number',
required: true,
})
totalAmount: number;
@property({
type: 'string',
required: true,
})
currency: string;
@property({
type: 'string',
required: true,
})
status: string;
@property({
type: 'string',
required: true,
})
paymentGatewayId: string;
@property({
type: 'string',
})
paymentmethod: string;
@property({
type: 'Object',
})
metaData?: AnyObject;
// Define well-known properties here
// Indexer property to allow additional data
// eslint-disable-next-line
[prop: string]: any; //NOSONAR
}