@things-factory/marketplace-base 6.2.140 → 6.2.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/marketplace-base",
3
- "version": "6.2.140",
3
+ "version": "6.2.142",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -27,8 +27,8 @@
27
27
  "@things-factory/env": "^6.2.139",
28
28
  "@things-factory/integration-fulfillment": "^6.2.140",
29
29
  "@things-factory/integration-marketplace": "^6.2.140",
30
- "@things-factory/product-base": "^6.2.139",
30
+ "@things-factory/product-base": "^6.2.142",
31
31
  "@things-factory/shell": "^6.2.139"
32
32
  },
33
- "gitHead": "aa99f06916839efd1616697529c8b1a08bdebde1"
33
+ "gitHead": "78bb2ad1a9d851be0c6ea0e176ccbab61c3b6cc8"
34
34
  }
@@ -1,25 +1,12 @@
1
- import {
2
- Column,
3
- CreateDateColumn,
4
- Entity,
5
- Index,
6
- ManyToOne,
7
- OneToMany,
8
- PrimaryGeneratedColumn,
9
- UpdateDateColumn
10
- } from 'typeorm'
1
+ import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
11
2
 
12
3
  import { User } from '@things-factory/auth-base'
13
- import { Domain } from '@things-factory/shell'
4
+ import { Domain, roundTransformer } from '@things-factory/shell'
14
5
 
15
6
  import { MarketplaceOrder, MarketplaceOrderShippingItem, MarketplaceProductVariation } from '../entities'
16
7
 
17
8
  @Entity()
18
- @Index(
19
- 'ix_marketplace-order-item_0',
20
- (marketplaceOrderItem: MarketplaceOrderItem) => [marketplaceOrderItem.domain, marketplaceOrderItem.id],
21
- { unique: true }
22
- )
9
+ @Index('ix_marketplace-order-item_0', (marketplaceOrderItem: MarketplaceOrderItem) => [marketplaceOrderItem.domain, marketplaceOrderItem.id], { unique: true })
23
10
  export class MarketplaceOrderItem {
24
11
  @PrimaryGeneratedColumn('uuid')
25
12
  id: string
@@ -33,16 +20,13 @@ export class MarketplaceOrderItem {
33
20
  @ManyToOne(type => MarketplaceOrder)
34
21
  marketplaceOrder: MarketplaceOrder
35
22
 
36
- @OneToMany(
37
- type => MarketplaceOrderShippingItem,
38
- marketplaceOrderShippingItem => marketplaceOrderShippingItem.marketplaceOrderItem
39
- )
23
+ @OneToMany(type => MarketplaceOrderShippingItem, marketplaceOrderShippingItem => marketplaceOrderShippingItem.marketplaceOrderItem)
40
24
  marketplaceOrderShippingItems: MarketplaceOrderShippingItem[]
41
25
 
42
26
  @Column()
43
27
  name: string
44
28
 
45
- @Column({ nullable: true, type: 'float' })
29
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
46
30
  qty: number
47
31
 
48
32
  @Column({ nullable: true })
@@ -54,10 +38,10 @@ export class MarketplaceOrderItem {
54
38
  @Column({ nullable: true })
55
39
  paidPrice: string
56
40
 
57
- @Column({ type: 'float', nullable: true })
41
+ @Column({ type: 'float', nullable: true, transformer: roundTransformer })
58
42
  originalPrice: number
59
43
 
60
- @Column({ type: 'float', nullable: true })
44
+ @Column({ type: 'float', nullable: true, transformer: roundTransformer })
61
45
  discount: number
62
46
 
63
47
  @Column({ nullable: true })
@@ -84,55 +68,55 @@ export class MarketplaceOrderItem {
84
68
  @Column({ nullable: true })
85
69
  description: string
86
70
 
87
- @Column({ nullable: true, type: 'float' })
71
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
88
72
  paymentFee: number
89
73
 
90
- @Column({ nullable: true, type: 'float' })
74
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
91
75
  commissionFee: number
92
76
 
93
- @Column({ nullable: true, type: 'float' })
77
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
94
78
  shippingFeePaidByCustomer: number
95
79
 
96
- @Column({ nullable: true, type: 'float' })
80
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
97
81
  promotionalCharges: number
98
82
 
99
- @Column({ nullable: true, type: 'float' })
83
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
100
84
  ordersMarketplaceFeesTotal: number
101
85
 
102
- @Column({ nullable: true, type: 'float' })
86
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
103
87
  ordersMarketingFeesTotal: number
104
88
 
105
- @Column({ nullable: true, type: 'float' })
89
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
106
90
  ordersSalesTotal: number
107
91
 
108
- @Column({ nullable: true, type: 'float' })
92
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
109
93
  ordersLogisticsTotal: number
110
94
 
111
- @Column({ nullable: true, type: 'float' })
95
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
112
96
  itemPriceCredit: number
113
97
 
114
- @Column({ nullable: true, type: 'float' })
98
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
115
99
  marketplaceBonus: number
116
100
 
117
- @Column({ nullable: true, type: 'float' })
101
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
118
102
  marketplaceBonusSeller: number
119
103
 
120
- @Column({ nullable: true, type: 'float' })
104
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
121
105
  shippingFeeDiscountMarketplace: number
122
106
 
123
- @Column({ nullable: true, type: 'float' })
107
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
124
108
  shippingFeeDiscountSeller: number
125
109
 
126
- @Column({ nullable: true, type: 'float' })
110
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
127
111
  promotionalChargesFlexiCombo: number
128
112
 
129
- @Column({ nullable: true, type: 'float' })
113
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
130
114
  autoShippingSubsidyMarketplace: number
131
115
 
132
- @Column({ nullable: true, type: 'float' })
116
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
133
117
  originalShippingFee: number
134
118
 
135
- @Column({ nullable: true, type: 'float' })
119
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
136
120
  taxAmount: number
137
121
 
138
122
  @CreateDateColumn()
@@ -1,30 +1,16 @@
1
- import {
2
- Column,
3
- CreateDateColumn,
4
- Entity,
5
- Index,
6
- ManyToOne,
7
- OneToMany,
8
- PrimaryGeneratedColumn,
9
- UpdateDateColumn
10
- } from 'typeorm'
1
+ import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
11
2
 
12
3
  import { User } from '@things-factory/auth-base'
13
4
  import { FulfillmentCenter } from '@things-factory/integration-fulfillment'
14
5
  import { MarketplaceStore } from '@things-factory/integration-marketplace'
15
- import { Domain } from '@things-factory/shell'
6
+ import { Domain, roundTransformer } from '@things-factory/shell'
16
7
 
17
8
  import { MarketplaceOrderShippingItem } from '../entities'
18
9
 
19
10
  @Entity()
20
- @Index(
21
- 'ix_marketplace-order-shipping_0',
22
- (marketplaceOrderShipping: MarketplaceOrderShipping) => [
23
- marketplaceOrderShipping.domain,
24
- marketplaceOrderShipping.name
25
- ],
26
- { unique: true }
27
- )
11
+ @Index('ix_marketplace-order-shipping_0', (marketplaceOrderShipping: MarketplaceOrderShipping) => [marketplaceOrderShipping.domain, marketplaceOrderShipping.name], {
12
+ unique: true
13
+ })
28
14
  export class MarketplaceOrderShipping {
29
15
  @PrimaryGeneratedColumn('uuid')
30
16
  id: string
@@ -35,10 +21,7 @@ export class MarketplaceOrderShipping {
35
21
  @Column()
36
22
  name: string
37
23
 
38
- @OneToMany(
39
- type => MarketplaceOrderShippingItem,
40
- marketplaceOrderShippingItem => marketplaceOrderShippingItem.marketplaceOrderShipping
41
- )
24
+ @OneToMany(type => MarketplaceOrderShippingItem, marketplaceOrderShippingItem => marketplaceOrderShippingItem.marketplaceOrderShipping)
42
25
  marketplaceOrderShippingItems: MarketplaceOrderShippingItem[]
43
26
 
44
27
  @ManyToOne(type => MarketplaceStore)
@@ -116,19 +99,19 @@ export class MarketplaceOrderShipping {
116
99
  @Column({ nullable: true })
117
100
  weightUnit: string
118
101
 
119
- @Column({ nullable: true, type: 'float' })
102
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
120
103
  totalWeight: number
121
104
 
122
105
  @Column({ nullable: true })
123
106
  volumeUnit: string
124
107
 
125
- @Column({ nullable: true, type: 'float' })
108
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
126
109
  totalVolume: number
127
110
 
128
111
  @Column({ nullable: true })
129
112
  collectionType: string
130
113
 
131
- @Column({ nullable: true, type: 'float' })
114
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
132
115
  collectionAmount: number
133
116
 
134
117
  @Column({ nullable: true })
@@ -146,16 +129,16 @@ export class MarketplaceOrderShipping {
146
129
  @Column({ nullable: true })
147
130
  invoice: string
148
131
 
149
- @Column({ type: 'float', nullable: true })
132
+ @Column({ type: 'float', nullable: true, transformer: roundTransformer })
150
133
  shippingFee: number
151
134
 
152
- @Column({ type: 'float', nullable: true })
135
+ @Column({ type: 'float', nullable: true, transformer: roundTransformer })
153
136
  actualShippingFee: number
154
137
 
155
- @Column({ type: 'float', nullable: true })
138
+ @Column({ type: 'float', nullable: true, transformer: roundTransformer })
156
139
  marketplaceShippingFeeVoucher: number
157
140
 
158
- @Column({ type: 'float', nullable: true })
141
+ @Column({ type: 'float', nullable: true, transformer: roundTransformer })
159
142
  sellerShippingFeeVoucher: number
160
143
 
161
144
  @Column({ nullable: true })
@@ -1,27 +1,16 @@
1
- import {
2
- Column,
3
- CreateDateColumn,
4
- Entity,
5
- Index,
6
- ManyToOne,
7
- OneToMany,
8
- PrimaryGeneratedColumn,
9
- UpdateDateColumn
10
- } from 'typeorm'
1
+ import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
11
2
 
12
3
  import { User } from '@things-factory/auth-base'
13
4
  import { FulfillmentCenter } from '@things-factory/integration-fulfillment'
14
5
  import { MarketplaceStore } from '@things-factory/integration-marketplace'
15
- import { Domain } from '@things-factory/shell'
6
+ import { Domain, roundTransformer } from '@things-factory/shell'
16
7
 
17
8
  import { MarketplaceOrderItem } from '../entities'
18
9
 
19
10
  @Entity()
20
- @Index(
21
- 'ix_marketplace-order_0',
22
- (marketplaceOrder: MarketplaceOrder) => [marketplaceOrder.domain, marketplaceOrder.name, marketplaceOrder.marketplaceStore],
23
- { unique: true }
24
- )
11
+ @Index('ix_marketplace-order_0', (marketplaceOrder: MarketplaceOrder) => [marketplaceOrder.domain, marketplaceOrder.name, marketplaceOrder.marketplaceStore], {
12
+ unique: true
13
+ })
25
14
  export class MarketplaceOrder {
26
15
  @PrimaryGeneratedColumn('uuid')
27
16
  id: string
@@ -50,7 +39,7 @@ export class MarketplaceOrder {
50
39
  @Column({ type: 'int', nullable: true })
51
40
  itemCount: number
52
41
 
53
- @Column({ type: 'float', nullable: true })
42
+ @Column({ type: 'float', nullable: true, transformer: roundTransformer })
54
43
  totalAmount: number
55
44
 
56
45
  @Column({ nullable: true })
@@ -110,26 +99,26 @@ export class MarketplaceOrder {
110
99
  @Column({ nullable: true })
111
100
  payTime: Date
112
101
 
113
- @Column({ nullable: true, type: 'float' })
102
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
114
103
  commissionFee: Number
115
104
 
116
- @Column({ nullable: true, type: 'float' })
105
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
117
106
  serviceFee: Number
118
107
 
119
- @Column({ nullable: true, type: 'float' })
108
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
120
109
  transactionFee: Number
121
110
 
122
- @Column({ nullable: true, type: 'float' })
111
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
123
112
  totalRealeasedAmount: Number
124
113
 
125
- @Column({ nullable: true, type: 'float' })
114
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
126
115
  voucherAmount: String
127
116
 
128
- @Column({ nullable: true, type: 'float' })
117
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
129
118
  shippingRebate: Number
130
119
 
131
120
  @Column({ nullable: true })
132
- shippingMode: String
121
+ shippingMode: String
133
122
 
134
123
  @Column({ nullable: true })
135
124
  payoutDate: Date
@@ -1,24 +1,12 @@
1
- import {
2
- CreateDateColumn,
3
- UpdateDateColumn,
4
- Entity,
5
- Index,
6
- Column,
7
- OneToMany,
8
- ManyToOne,
9
- PrimaryGeneratedColumn
10
- } from 'typeorm'
11
- import { Domain } from '@things-factory/shell'
1
+ import { CreateDateColumn, UpdateDateColumn, Entity, Index, Column, OneToMany, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'
2
+ import { Domain, roundTransformer } from '@things-factory/shell'
12
3
  import { User } from '@things-factory/auth-base'
13
4
  import { MarketplaceProductVariation } from '../entities'
14
5
 
15
6
  @Entity()
16
7
  @Index(
17
8
  'ix_marketplace_product_variation_price_0',
18
- (marketplaceProductVariationPrice: MarketplaceProductVariationPrice) => [
19
- marketplaceProductVariationPrice.domain,
20
- marketplaceProductVariationPrice.name
21
- ],
9
+ (marketplaceProductVariationPrice: MarketplaceProductVariationPrice) => [marketplaceProductVariationPrice.domain, marketplaceProductVariationPrice.name],
22
10
  { unique: true }
23
11
  )
24
12
  export class MarketplaceProductVariationPrice {
@@ -36,28 +24,25 @@ export class MarketplaceProductVariationPrice {
36
24
  })
37
25
  description: string
38
26
 
39
- @ManyToOne(
40
- type => MarketplaceProductVariation,
41
- marketplaceProductVariation => marketplaceProductVariation.marketplaceProductVariationPrices
42
- )
27
+ @ManyToOne(type => MarketplaceProductVariation, marketplaceProductVariation => marketplaceProductVariation.marketplaceProductVariationPrices)
43
28
  marketplaceProductVariation: MarketplaceProductVariation
44
29
 
45
30
  @Column({ nullable: true })
46
31
  currency: string
47
32
 
48
- @Column('float', { nullable: true })
33
+ @Column('float', { nullable: true, transformer: roundTransformer })
49
34
  mrpPrice: number
50
35
 
51
- @Column('float', { nullable: true })
36
+ @Column('float', { nullable: true, transformer: roundTransformer })
52
37
  costPrice: number
53
38
 
54
- @Column('float', { nullable: true })
39
+ @Column('float', { nullable: true, transformer: roundTransformer })
55
40
  sellPrice: number
56
41
 
57
- @Column('float', { nullable: true })
42
+ @Column('float', { nullable: true, transformer: roundTransformer })
58
43
  afterTaxCostPrice: number
59
44
 
60
- @Column('float', { nullable: true })
45
+ @Column('float', { nullable: true, transformer: roundTransformer })
61
46
  afterTaxSalesPrice: number
62
47
 
63
48
  @CreateDateColumn()
@@ -1,16 +1,7 @@
1
- import {
2
- Column,
3
- CreateDateColumn,
4
- Entity,
5
- Index,
6
- ManyToOne,
7
- OneToMany,
8
- PrimaryGeneratedColumn,
9
- UpdateDateColumn
10
- } from 'typeorm'
1
+ import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
11
2
 
12
3
  import { User } from '@things-factory/auth-base'
13
- import { Domain } from '@things-factory/shell'
4
+ import { Domain, roundTransformer } from '@things-factory/shell'
14
5
 
15
6
  import { MarketplaceProduct, MarketplaceProductVariationPrice } from '../entities'
16
7
  import { NoGenerator } from '../utils'
@@ -18,10 +9,7 @@ import { NoGenerator } from '../utils'
18
9
  @Entity()
19
10
  @Index(
20
11
  'ix_marketplace-product-variation_0',
21
- (marketplaceProductVariation: MarketplaceProductVariation) => [
22
- marketplaceProductVariation.domain,
23
- marketplaceProductVariation.id
24
- ],
12
+ (marketplaceProductVariation: MarketplaceProductVariation) => [marketplaceProductVariation.domain, marketplaceProductVariation.id],
25
13
  { unique: true }
26
14
  )
27
15
  export class MarketplaceProductVariation {
@@ -71,10 +59,7 @@ export class MarketplaceProductVariation {
71
59
  @ManyToOne(type => MarketplaceProduct, marketplaceProduct => marketplaceProduct.marketplaceProductVariations)
72
60
  marketplaceProduct: MarketplaceProduct
73
61
 
74
- @OneToMany(
75
- type => MarketplaceProductVariationPrice,
76
- marketplaceProductVariationPrice => marketplaceProductVariationPrice.marketplaceProductVariation
77
- )
62
+ @OneToMany(type => MarketplaceProductVariationPrice, marketplaceProductVariationPrice => marketplaceProductVariationPrice.marketplaceProductVariation)
78
63
  marketplaceProductVariationPrices: MarketplaceProductVariationPrice[]
79
64
 
80
65
  @Column()
@@ -92,22 +77,22 @@ export class MarketplaceProductVariation {
92
77
  @Column({ nullable: true })
93
78
  description: string
94
79
 
95
- @Column('float', { nullable: true })
80
+ @Column('float', { nullable: true, transformer: roundTransformer })
96
81
  qty: number
97
82
 
98
- @Column('float', { nullable: true })
83
+ @Column('float', { nullable: true, transformer: roundTransformer })
99
84
  reserveQty: number
100
85
 
101
86
  @Column({ nullable: true })
102
87
  type: string
103
88
 
104
- @Column('float', { nullable: true })
89
+ @Column('float', { nullable: true, transformer: roundTransformer })
105
90
  mrpPrice: number
106
91
 
107
- @Column('float', { nullable: true })
92
+ @Column('float', { nullable: true, transformer: roundTransformer })
108
93
  costPrice: number
109
94
 
110
- @Column('float', { nullable: true })
95
+ @Column('float', { nullable: true, transformer: roundTransformer })
111
96
  sellPrice: number
112
97
 
113
98
  @Column({ nullable: true })
@@ -119,10 +104,10 @@ export class MarketplaceProductVariation {
119
104
  @Column({ nullable: true })
120
105
  marketplaceStatus: string
121
106
 
122
- @Column('float', { nullable: true })
107
+ @Column('float', { nullable: true, transformer: roundTransformer })
123
108
  afterTaxCostPrice: number
124
109
 
125
- @Column('float', { nullable: true })
110
+ @Column('float', { nullable: true, transformer: roundTransformer })
126
111
  afterTaxSalesPrice: number
127
112
 
128
113
  @Column({ nullable: true })
@@ -131,7 +116,7 @@ export class MarketplaceProductVariation {
131
116
  @Column({ nullable: true })
132
117
  primaryUnit: string
133
118
 
134
- @Column('float', { nullable: true })
119
+ @Column('float', { nullable: true, transformer: roundTransformer })
135
120
  primaryUnitValue: number
136
121
 
137
122
  @Column({
@@ -1,65 +1,56 @@
1
- import {
2
- Column,
3
- CreateDateColumn,
4
- Entity,
5
- Index,
6
- ManyToOne,
7
- PrimaryGeneratedColumn,
8
- UpdateDateColumn
9
- } from 'typeorm'
10
-
11
- import { User } from '@things-factory/auth-base'
12
- import { Domain } from '@things-factory/shell'
13
- import { MarketplaceRefundOrder } from '../entities'
14
- import { MarketplaceProductVariation } from '../entities'
15
- @Entity()
16
- @Index(
17
- 'ix_marketplace-refund-order-item_0',
18
- (marketplaceRefundOrderItem: MarketplaceRefundOrderItem) => [marketplaceRefundOrderItem.domain, marketplaceRefundOrderItem.name],
19
- { unique: true }
20
- )
21
- export class MarketplaceRefundOrderItem {
22
- @PrimaryGeneratedColumn('uuid')
23
- id: string
24
-
25
- @ManyToOne(type => Domain)
26
- domain: Domain
27
-
28
- @ManyToOne(type => MarketplaceRefundOrder)
29
- marketplaceRefundOrder: MarketplaceRefundOrder
30
-
31
- @ManyToOne(type => MarketplaceProductVariation)
32
- marketplaceProductVariation: MarketplaceProductVariation
33
-
34
- @Column()
35
- name: string
36
-
37
- @Column()
38
- orderItemId: string
39
-
40
- @Column({ nullable: true })
41
- status: string
42
-
43
- @Column({ nullable: true, type: 'float' })
44
- price: number
45
-
46
- @Column({ nullable: true })
47
- qty: string
48
-
49
- @CreateDateColumn()
50
- createdAt: Date
51
-
52
- @UpdateDateColumn()
53
- updatedAt: Date
54
-
55
- @ManyToOne(type => User, {
56
- nullable: true
57
- })
58
- creator: User
59
-
60
- @ManyToOne(type => User, {
61
- nullable: true
62
- })
63
- updater: User
64
- }
65
-
1
+ import { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
2
+
3
+ import { User } from '@things-factory/auth-base'
4
+ import { Domain, roundTransformer } from '@things-factory/shell'
5
+ import { MarketplaceRefundOrder } from '../entities'
6
+ import { MarketplaceProductVariation } from '../entities'
7
+ @Entity()
8
+ @Index(
9
+ 'ix_marketplace-refund-order-item_0',
10
+ (marketplaceRefundOrderItem: MarketplaceRefundOrderItem) => [marketplaceRefundOrderItem.domain, marketplaceRefundOrderItem.name],
11
+ { unique: true }
12
+ )
13
+ export class MarketplaceRefundOrderItem {
14
+ @PrimaryGeneratedColumn('uuid')
15
+ id: string
16
+
17
+ @ManyToOne(type => Domain)
18
+ domain: Domain
19
+
20
+ @ManyToOne(type => MarketplaceRefundOrder)
21
+ marketplaceRefundOrder: MarketplaceRefundOrder
22
+
23
+ @ManyToOne(type => MarketplaceProductVariation)
24
+ marketplaceProductVariation: MarketplaceProductVariation
25
+
26
+ @Column()
27
+ name: string
28
+
29
+ @Column()
30
+ orderItemId: string
31
+
32
+ @Column({ nullable: true })
33
+ status: string
34
+
35
+ @Column({ nullable: true, type: 'float', transformer: roundTransformer })
36
+ price: number
37
+
38
+ @Column({ nullable: true })
39
+ qty: string
40
+
41
+ @CreateDateColumn()
42
+ createdAt: Date
43
+
44
+ @UpdateDateColumn()
45
+ updatedAt: Date
46
+
47
+ @ManyToOne(type => User, {
48
+ nullable: true
49
+ })
50
+ creator: User
51
+
52
+ @ManyToOne(type => User, {
53
+ nullable: true
54
+ })
55
+ updater: User
56
+ }