@things-factory/marketplace-base 8.0.0-beta.8 → 8.0.0
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/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/server/constants/attachment.ts +3 -0
- package/server/constants/index.ts +4 -0
- package/server/constants/order.ts +11 -0
- package/server/constants/platform.ts +7 -0
- package/server/constants/product.ts +5 -0
- package/server/constants/reserve-qty-order-statuses.ts +7 -0
- package/server/controllers/index.ts +0 -0
- package/server/entities/index.ts +45 -0
- package/server/entities/marketplace-order-item.ts +137 -0
- package/server/entities/marketplace-order-shipping-item.ts +55 -0
- package/server/entities/marketplace-order-shipping.ts +168 -0
- package/server/entities/marketplace-order.ts +141 -0
- package/server/entities/marketplace-product-attribute.ts +83 -0
- package/server/entities/marketplace-product-category.ts +53 -0
- package/server/entities/marketplace-product-variation-price.ts +63 -0
- package/server/entities/marketplace-product-variation.ts +147 -0
- package/server/entities/marketplace-product.ts +164 -0
- package/server/entities/marketplace-refund-order-item.ts +56 -0
- package/server/entities/marketplace-refund-order.ts +51 -0
- package/server/entities/marketplace-setting.ts +49 -0
- package/server/entities/store-replenishment-item.ts +48 -0
- package/server/entities/store-replenishment.ts +79 -0
- package/server/graphql/index.ts +9 -0
- package/server/graphql/resolvers/index.ts +14 -0
- package/server/graphql/resolvers/marketplace-order/auto-initialise-logistics-by-batch.ts +164 -0
- package/server/graphql/resolvers/marketplace-order/auto-update-order-ready-to-ship.ts +136 -0
- package/server/graphql/resolvers/marketplace-order/cancel-marketplace-order.ts +64 -0
- package/server/graphql/resolvers/marketplace-order/create-marketplace-order-note.ts +21 -0
- package/server/graphql/resolvers/marketplace-order/dashboard-marketplace-orders.ts +82 -0
- package/server/graphql/resolvers/marketplace-order/dashboard-marketplace-sales-average.ts +82 -0
- package/server/graphql/resolvers/marketplace-order/dashboard-marketplace-sales.ts +93 -0
- package/server/graphql/resolvers/marketplace-order/delete-marketplace-orders.ts +17 -0
- package/server/graphql/resolvers/marketplace-order/generate-marketplace-order.ts +180 -0
- package/server/graphql/resolvers/marketplace-order/get-address-list.ts +9 -0
- package/server/graphql/resolvers/marketplace-order/get-branch-list.ts +9 -0
- package/server/graphql/resolvers/marketplace-order/get-etrax-order-document.ts +49 -0
- package/server/graphql/resolvers/marketplace-order/get-logistics-param.ts +47 -0
- package/server/graphql/resolvers/marketplace-order/get-order-document.ts +149 -0
- package/server/graphql/resolvers/marketplace-order/get-store-logistics.ts +9 -0
- package/server/graphql/resolvers/marketplace-order/get-time-slot.ts +9 -0
- package/server/graphql/resolvers/marketplace-order/index.ts +75 -0
- package/server/graphql/resolvers/marketplace-order/initialise-lazada-logistics-by-batch.ts +165 -0
- package/server/graphql/resolvers/marketplace-order/initialise-logistics-by-batch.ts +41 -0
- package/server/graphql/resolvers/marketplace-order/initialise-logistics.ts +29 -0
- package/server/graphql/resolvers/marketplace-order/initialise-shopee-logistics-by-batch.ts +97 -0
- package/server/graphql/resolvers/marketplace-order/marketplace-order.ts +12 -0
- package/server/graphql/resolvers/marketplace-order/marketplace-orders-for-batch-init.ts +52 -0
- package/server/graphql/resolvers/marketplace-order/marketplace-orders-for-export.ts +63 -0
- package/server/graphql/resolvers/marketplace-order/marketplace-orders.ts +56 -0
- package/server/graphql/resolvers/marketplace-order/set-marketplace-order-delivered.ts +25 -0
- package/server/graphql/resolvers/marketplace-order/set-marketplace-order-failed-delivery.ts +25 -0
- package/server/graphql/resolvers/marketplace-order/set-own-shipping-provider-by-orders.ts +39 -0
- package/server/graphql/resolvers/marketplace-order/split-orders-by-batch.ts +245 -0
- package/server/graphql/resolvers/marketplace-order/sync-all-marketplace-order.ts +39 -0
- package/server/graphql/resolvers/marketplace-order/sync-marketplace-order.ts +940 -0
- package/server/graphql/resolvers/marketplace-order/sync-marketplace-orders-by-platform.ts +31 -0
- package/server/graphql/resolvers/marketplace-order/sync-shopee-awb.ts +49 -0
- package/server/graphql/resolvers/marketplace-order/update-marketplace-order.ts +35 -0
- package/server/graphql/resolvers/marketplace-order/update-order-ready-to-ship.ts +142 -0
- package/server/graphql/resolvers/marketplace-order-item/create-marketplace-order-item.ts +14 -0
- package/server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-item.ts +10 -0
- package/server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.ts +17 -0
- package/server/graphql/resolvers/marketplace-order-item/index.ts +22 -0
- package/server/graphql/resolvers/marketplace-order-item/marketplace-order-item.ts +14 -0
- package/server/graphql/resolvers/marketplace-order-item/marketplace-order-items.ts +15 -0
- package/server/graphql/resolvers/marketplace-order-item/update-marketplace-order-item.ts +18 -0
- package/server/graphql/resolvers/marketplace-order-item/update-multiple-marketplace-order-item.ts +44 -0
- package/server/graphql/resolvers/marketplace-order-shipping/create-marketplace-order-shipping.ts +14 -0
- package/server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shipping.ts +10 -0
- package/server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.ts +17 -0
- package/server/graphql/resolvers/marketplace-order-shipping/index.ts +23 -0
- package/server/graphql/resolvers/marketplace-order-shipping/marketplace-order-shipping.ts +25 -0
- package/server/graphql/resolvers/marketplace-order-shipping/marketplace-order-shippings-for-batch-init.ts +88 -0
- package/server/graphql/resolvers/marketplace-order-shipping/marketplace-order-shippings.ts +43 -0
- package/server/graphql/resolvers/marketplace-order-shipping/update-marketplace-order-shipping.ts +32 -0
- package/server/graphql/resolvers/marketplace-order-shipping/update-multiple-marketplace-order-shipping.ts +44 -0
- package/server/graphql/resolvers/marketplace-order-shipping-item/create-marketplace-order-shipping-item.ts +14 -0
- package/server/graphql/resolvers/marketplace-order-shipping-item/delete-marketplace-order-shipping-item.ts +10 -0
- package/server/graphql/resolvers/marketplace-order-shipping-item/delete-marketplace-order-shipping-items.ts +15 -0
- package/server/graphql/resolvers/marketplace-order-shipping-item/index.ts +20 -0
- package/server/graphql/resolvers/marketplace-order-shipping-item/marketplace-order-shipping-item.ts +21 -0
- package/server/graphql/resolvers/marketplace-order-shipping-item/marketplace-order-shipping-items.ts +14 -0
- package/server/graphql/resolvers/marketplace-order-shipping-item/update-marketplace-order-shipping-item.ts +18 -0
- package/server/graphql/resolvers/marketplace-order-shipping-item/update-multiple-marketplace-order-shipping-item.ts +44 -0
- package/server/graphql/resolvers/marketplace-product/create-marketplace-product.ts +35 -0
- package/server/graphql/resolvers/marketplace-product/delete-marketplace-product.ts +10 -0
- package/server/graphql/resolvers/marketplace-product/delete-marketplace-products.ts +17 -0
- package/server/graphql/resolvers/marketplace-product/index.ts +27 -0
- package/server/graphql/resolvers/marketplace-product/marketplace-product.ts +24 -0
- package/server/graphql/resolvers/marketplace-product/marketplace-products.ts +23 -0
- package/server/graphql/resolvers/marketplace-product/sync-all-marketplace-store-products.ts +225 -0
- package/server/graphql/resolvers/marketplace-product/sync-marketplace-store-products.ts +222 -0
- package/server/graphql/resolvers/marketplace-product/update-marketplace-product.ts +24 -0
- package/server/graphql/resolvers/marketplace-product/upsert-marketplace-product.ts +39 -0
- package/server/graphql/resolvers/marketplace-product-attribute/create-marketplace-product-attribute.ts +14 -0
- package/server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attribute.ts +10 -0
- package/server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.ts +17 -0
- package/server/graphql/resolvers/marketplace-product-attribute/index.ts +22 -0
- package/server/graphql/resolvers/marketplace-product-attribute/marketplace-product-attribute.ts +14 -0
- package/server/graphql/resolvers/marketplace-product-attribute/marketplace-product-attributes.ts +14 -0
- package/server/graphql/resolvers/marketplace-product-attribute/update-marketplace-product-attribute.ts +18 -0
- package/server/graphql/resolvers/marketplace-product-attribute/update-multiple-marketplace-product-attribute.ts +44 -0
- package/server/graphql/resolvers/marketplace-product-category/create-marketplace-product-category.ts +14 -0
- package/server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.ts +17 -0
- package/server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-category.ts +10 -0
- package/server/graphql/resolvers/marketplace-product-category/index.ts +22 -0
- package/server/graphql/resolvers/marketplace-product-category/marketplace-product-categories.ts +14 -0
- package/server/graphql/resolvers/marketplace-product-category/marketplace-product-category.ts +14 -0
- package/server/graphql/resolvers/marketplace-product-category/update-marketplace-product-category.ts +18 -0
- package/server/graphql/resolvers/marketplace-product-category/update-multiple-marketplace-product-category.ts +44 -0
- package/server/graphql/resolvers/marketplace-product-variation/create-marketplace-product-variation.ts +14 -0
- package/server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variation.ts +10 -0
- package/server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.ts +17 -0
- package/server/graphql/resolvers/marketplace-product-variation/index.ts +30 -0
- package/server/graphql/resolvers/marketplace-product-variation/link-warehouse-marketplace-product-variations.ts +59 -0
- package/server/graphql/resolvers/marketplace-product-variation/marketplace-product-variation.ts +14 -0
- package/server/graphql/resolvers/marketplace-product-variation/marketplace-product-variations.ts +79 -0
- package/server/graphql/resolvers/marketplace-product-variation/update-marketplace-product-variation.ts +32 -0
- package/server/graphql/resolvers/marketplace-product-variation/update-multiple-marketplace-product-variation-quantity.ts +76 -0
- package/server/graphql/resolvers/marketplace-product-variation/update-multiple-marketplace-product-variations.ts +49 -0
- package/server/graphql/resolvers/marketplace-product-variation-price/create-marketplace-product-variation-price.ts +16 -0
- package/server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.ts +13 -0
- package/server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.ts +18 -0
- package/server/graphql/resolvers/marketplace-product-variation-price/index.ts +19 -0
- package/server/graphql/resolvers/marketplace-product-variation-price/marketplace-product-variation-price-query.ts +52 -0
- package/server/graphql/resolvers/marketplace-product-variation-price/update-marketplace-product-variation-price.ts +20 -0
- package/server/graphql/resolvers/marketplace-product-variation-price/update-multiple-marketplace-product-variation-price.ts +49 -0
- package/server/graphql/resolvers/marketplace-refund-order/index.ts +9 -0
- package/server/graphql/resolvers/marketplace-refund-order/sync-all-marketplace-refund-orders.ts +122 -0
- package/server/graphql/resolvers/marketplace-refund-order/sync-marketplace-refund-orders.ts +106 -0
- package/server/graphql/resolvers/marketplace-report/index.ts +7 -0
- package/server/graphql/resolvers/marketplace-report/marketplace-sales-report.ts +143 -0
- package/server/graphql/resolvers/store-replenishment/create-store-replenishment.ts +16 -0
- package/server/graphql/resolvers/store-replenishment/delete-store-replenishment.ts +13 -0
- package/server/graphql/resolvers/store-replenishment/delete-store-replenishments.ts +18 -0
- package/server/graphql/resolvers/store-replenishment/index.ts +19 -0
- package/server/graphql/resolvers/store-replenishment/store-replenishment-query.ts +52 -0
- package/server/graphql/resolvers/store-replenishment/update-multiple-store-replenishment.ts +49 -0
- package/server/graphql/resolvers/store-replenishment/update-store-replenishment.ts +20 -0
- package/server/graphql/resolvers/store-replenishment-item/create-store-replenishment-item.ts +16 -0
- package/server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.ts +13 -0
- package/server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.ts +18 -0
- package/server/graphql/resolvers/store-replenishment-item/index.ts +19 -0
- package/server/graphql/resolvers/store-replenishment-item/store-replenishment-item-query.ts +52 -0
- package/server/graphql/resolvers/store-replenishment-item/update-multiple-store-replenishment-item.ts +49 -0
- package/server/graphql/resolvers/store-replenishment-item/update-store-replenishment-item.ts +20 -0
- package/server/graphql/types/index.ts +13 -0
- package/server/graphql/types/marketplace-order/dashboard-order.ts +13 -0
- package/server/graphql/types/marketplace-order/full-logistics-detail.ts +10 -0
- package/server/graphql/types/marketplace-order/index.ts +69 -0
- package/server/graphql/types/marketplace-order/logistics-detail.ts +8 -0
- package/server/graphql/types/marketplace-order/logistics-info.ts +27 -0
- package/server/graphql/types/marketplace-order/logistics-init.ts +9 -0
- package/server/graphql/types/marketplace-order/logistics-time.ts +9 -0
- package/server/graphql/types/marketplace-order/logistics.ts +21 -0
- package/server/graphql/types/marketplace-order/marketplace-logistics.ts +11 -0
- package/server/graphql/types/marketplace-order/marketplace-order-export.ts +19 -0
- package/server/graphql/types/marketplace-order/marketplace-order-list.ts +8 -0
- package/server/graphql/types/marketplace-order/marketplace-order-patch.ts +14 -0
- package/server/graphql/types/marketplace-order/marketplace-order.ts +40 -0
- package/server/graphql/types/marketplace-order/new-marketplace-order.ts +22 -0
- package/server/graphql/types/marketplace-order/order-address.ts +16 -0
- package/server/graphql/types/marketplace-order/order-document.ts +13 -0
- package/server/graphql/types/marketplace-order-item/index.ts +21 -0
- package/server/graphql/types/marketplace-order-item/marketplace-order-item-list.ts +8 -0
- package/server/graphql/types/marketplace-order-item/marketplace-order-item-patch.ts +10 -0
- package/server/graphql/types/marketplace-order-item/marketplace-order-item.ts +32 -0
- package/server/graphql/types/marketplace-order-item/new-marketplace-order-item.ts +17 -0
- package/server/graphql/types/marketplace-order-shipping/index.ts +31 -0
- package/server/graphql/types/marketplace-order-shipping/marketplace-order-shipping-list.ts +8 -0
- package/server/graphql/types/marketplace-order-shipping/marketplace-order-shipping-patch.ts +45 -0
- package/server/graphql/types/marketplace-order-shipping/marketplace-order-shipping.ts +59 -0
- package/server/graphql/types/marketplace-order-shipping/new-marketplace-order-shipping.ts +44 -0
- package/server/graphql/types/marketplace-order-shipping-item/index.ts +32 -0
- package/server/graphql/types/marketplace-order-shipping-item/marketplace-order-shipping-item-list.ts +8 -0
- package/server/graphql/types/marketplace-order-shipping-item/marketplace-order-shipping-item-patch.ts +13 -0
- package/server/graphql/types/marketplace-order-shipping-item/marketplace-order-shipping-item.ts +16 -0
- package/server/graphql/types/marketplace-order-shipping-item/new-marketplace-order-shipping-item.ts +12 -0
- package/server/graphql/types/marketplace-product/index.ts +28 -0
- package/server/graphql/types/marketplace-product/marketplace-product-list.ts +8 -0
- package/server/graphql/types/marketplace-product/marketplace-product-patch.ts +24 -0
- package/server/graphql/types/marketplace-product/marketplace-product.ts +30 -0
- package/server/graphql/types/marketplace-product/new-marketplace-product.ts +24 -0
- package/server/graphql/types/marketplace-product-attribute/index.ts +35 -0
- package/server/graphql/types/marketplace-product-attribute/marketplace-product-attribute-list.ts +8 -0
- package/server/graphql/types/marketplace-product-attribute/marketplace-product-attribute-patch.ts +10 -0
- package/server/graphql/types/marketplace-product-attribute/marketplace-product-attribute.ts +20 -0
- package/server/graphql/types/marketplace-product-attribute/new-marketplace-product-attribute.ts +13 -0
- package/server/graphql/types/marketplace-product-category/index.ts +28 -0
- package/server/graphql/types/marketplace-product-category/marketplace-product-category-list.ts +8 -0
- package/server/graphql/types/marketplace-product-category/marketplace-product-category-patch.ts +10 -0
- package/server/graphql/types/marketplace-product-category/marketplace-product-category.ts +17 -0
- package/server/graphql/types/marketplace-product-category/new-marketplace-product-category.ts +10 -0
- package/server/graphql/types/marketplace-product-variation/index.ts +47 -0
- package/server/graphql/types/marketplace-product-variation/marketplace-product-variation-list.ts +8 -0
- package/server/graphql/types/marketplace-product-variation/marketplace-product-variation-patch.ts +32 -0
- package/server/graphql/types/marketplace-product-variation/marketplace-product-variation.ts +35 -0
- package/server/graphql/types/marketplace-product-variation/new-marketplace-product-variation.ts +26 -0
- package/server/graphql/types/marketplace-product-variation/warehouse-product.ts +9 -0
- package/server/graphql/types/marketplace-product-variation-price/index.ts +21 -0
- package/server/graphql/types/marketplace-product-variation-price/marketplace-product-variation-price-list.ts +8 -0
- package/server/graphql/types/marketplace-product-variation-price/marketplace-product-variation-price-patch.ts +17 -0
- package/server/graphql/types/marketplace-product-variation-price/marketplace-product-variation-price.ts +21 -0
- package/server/graphql/types/marketplace-product-variation-price/new-marketplace-product-variation-price.ts +14 -0
- package/server/graphql/types/marketplace-refund-order/index.ts +16 -0
- package/server/graphql/types/marketplace-refund-order/marketplace-refund-order-list.ts +8 -0
- package/server/graphql/types/marketplace-refund-order/marketplace-refund-order.ts +17 -0
- package/server/graphql/types/marketplace-report/index.ts +10 -0
- package/server/graphql/types/marketplace-report/marketplace-sales-report-list.ts +8 -0
- package/server/graphql/types/marketplace-report/marketplace-sales-report.ts +67 -0
- package/server/graphql/types/store-replenishment/index.ts +21 -0
- package/server/graphql/types/store-replenishment/new-store-replenishment.ts +8 -0
- package/server/graphql/types/store-replenishment/store-replenishment-list.ts +8 -0
- package/server/graphql/types/store-replenishment/store-replenishment-patch.ts +10 -0
- package/server/graphql/types/store-replenishment/store-replenishment.ts +24 -0
- package/server/graphql/types/store-replenishment-item/index.ts +21 -0
- package/server/graphql/types/store-replenishment-item/new-store-replenishment-item.ts +8 -0
- package/server/graphql/types/store-replenishment-item/store-replenishment-item-list.ts +8 -0
- package/server/graphql/types/store-replenishment-item/store-replenishment-item-patch.ts +10 -0
- package/server/graphql/types/store-replenishment-item/store-replenishment-item.ts +15 -0
- package/server/index.ts +6 -0
- package/server/middlewares/index.ts +3 -0
- package/server/migrations/index.ts +9 -0
- package/server/routes.ts +26 -0
- package/server/utils/index.ts +1 -0
- package/server/utils/no-generator.ts +25 -0
- package/tsconfig.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/marketplace-base",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/env": "^8.0.0
|
|
28
|
-
"@things-factory/integration-fulfillment": "^8.0.0
|
|
29
|
-
"@things-factory/integration-marketplace": "^8.0.0
|
|
30
|
-
"@things-factory/product-base": "^8.0.0
|
|
31
|
-
"@things-factory/shell": "^8.0.0
|
|
27
|
+
"@things-factory/env": "^8.0.0",
|
|
28
|
+
"@things-factory/integration-fulfillment": "^8.0.0",
|
|
29
|
+
"@things-factory/integration-marketplace": "^8.0.0",
|
|
30
|
+
"@things-factory/product-base": "^8.0.0",
|
|
31
|
+
"@things-factory/shell": "^8.0.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "07ef27d272dd9a067a9648ac7013748510556a18"
|
|
34
34
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const ORDER_STATUS = {
|
|
2
|
+
CANCELLED: 'cancelled',
|
|
3
|
+
COMPLETED: 'completed',
|
|
4
|
+
DELIVERED: 'delivered',
|
|
5
|
+
PACKED: 'packed',
|
|
6
|
+
PENDING: 'pending',
|
|
7
|
+
READY_TO_SHIP: 'ready_to_ship',
|
|
8
|
+
SHIPPED: 'shipped',
|
|
9
|
+
TO_CONFIRM_RECEIVE: 'to_confirm_receive',
|
|
10
|
+
UNPAID: 'unpaid'
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { MarketplaceOrder } from './marketplace-order'
|
|
2
|
+
import { MarketplaceOrderItem } from './marketplace-order-item'
|
|
3
|
+
import { MarketplaceOrderShipping } from './marketplace-order-shipping'
|
|
4
|
+
import { MarketplaceOrderShippingItem } from './marketplace-order-shipping-item'
|
|
5
|
+
import { MarketplaceProduct } from './marketplace-product'
|
|
6
|
+
import { MarketplaceProductAttribute } from './marketplace-product-attribute'
|
|
7
|
+
import { MarketplaceProductCategory } from './marketplace-product-category'
|
|
8
|
+
import { MarketplaceProductVariation } from './marketplace-product-variation'
|
|
9
|
+
import { MarketplaceProductVariationPrice } from './marketplace-product-variation-price'
|
|
10
|
+
import { MarketplaceRefundOrder } from './marketplace-refund-order'
|
|
11
|
+
import { MarketplaceRefundOrderItem } from './marketplace-refund-order-item'
|
|
12
|
+
import { StoreReplenishment } from './store-replenishment'
|
|
13
|
+
import { StoreReplenishmentItem } from './store-replenishment-item'
|
|
14
|
+
|
|
15
|
+
export const entities = [
|
|
16
|
+
MarketplaceProductVariationPrice,
|
|
17
|
+
StoreReplenishment,
|
|
18
|
+
StoreReplenishmentItem,
|
|
19
|
+
MarketplaceProduct,
|
|
20
|
+
MarketplaceProductAttribute,
|
|
21
|
+
MarketplaceProductVariation,
|
|
22
|
+
MarketplaceProductCategory,
|
|
23
|
+
MarketplaceOrder,
|
|
24
|
+
MarketplaceOrderItem,
|
|
25
|
+
MarketplaceOrderShipping,
|
|
26
|
+
MarketplaceRefundOrder,
|
|
27
|
+
MarketplaceRefundOrderItem,
|
|
28
|
+
MarketplaceOrderShippingItem
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
MarketplaceOrder,
|
|
33
|
+
MarketplaceOrderItem,
|
|
34
|
+
MarketplaceOrderShipping,
|
|
35
|
+
MarketplaceOrderShippingItem,
|
|
36
|
+
MarketplaceProduct,
|
|
37
|
+
MarketplaceProductAttribute,
|
|
38
|
+
MarketplaceProductCategory,
|
|
39
|
+
MarketplaceProductVariation,
|
|
40
|
+
MarketplaceProductVariationPrice,
|
|
41
|
+
MarketplaceRefundOrder,
|
|
42
|
+
MarketplaceRefundOrderItem,
|
|
43
|
+
StoreReplenishment,
|
|
44
|
+
StoreReplenishmentItem
|
|
45
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
|
|
2
|
+
|
|
3
|
+
import { User } from '@things-factory/auth-base'
|
|
4
|
+
import { Domain, roundTransformer } from '@things-factory/shell'
|
|
5
|
+
|
|
6
|
+
import { MarketplaceOrder, MarketplaceOrderShippingItem, MarketplaceProductVariation } from '../entities'
|
|
7
|
+
|
|
8
|
+
@Entity()
|
|
9
|
+
@Index('ix_marketplace-order-item_0', (marketplaceOrderItem: MarketplaceOrderItem) => [marketplaceOrderItem.domain, marketplaceOrderItem.id], { unique: true })
|
|
10
|
+
export class MarketplaceOrderItem {
|
|
11
|
+
@PrimaryGeneratedColumn('uuid')
|
|
12
|
+
id: string
|
|
13
|
+
|
|
14
|
+
@ManyToOne(type => Domain)
|
|
15
|
+
domain: Domain
|
|
16
|
+
|
|
17
|
+
@ManyToOne(type => MarketplaceProductVariation)
|
|
18
|
+
marketplaceProductVariation: MarketplaceProductVariation
|
|
19
|
+
|
|
20
|
+
@ManyToOne(type => MarketplaceOrder)
|
|
21
|
+
marketplaceOrder: MarketplaceOrder
|
|
22
|
+
|
|
23
|
+
@OneToMany(type => MarketplaceOrderShippingItem, marketplaceOrderShippingItem => marketplaceOrderShippingItem.marketplaceOrderItem)
|
|
24
|
+
marketplaceOrderShippingItems: MarketplaceOrderShippingItem[]
|
|
25
|
+
|
|
26
|
+
@Column()
|
|
27
|
+
name: string
|
|
28
|
+
|
|
29
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
30
|
+
qty: number
|
|
31
|
+
|
|
32
|
+
@Column({ nullable: true })
|
|
33
|
+
cancelBy: string
|
|
34
|
+
|
|
35
|
+
@Column({ nullable: true })
|
|
36
|
+
returnStatus: string
|
|
37
|
+
|
|
38
|
+
@Column({ nullable: true })
|
|
39
|
+
paidPrice: string
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'float', nullable: true, transformer: roundTransformer })
|
|
42
|
+
originalPrice: number
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'float', nullable: true, transformer: roundTransformer })
|
|
45
|
+
discount: number
|
|
46
|
+
|
|
47
|
+
@Column({ nullable: true })
|
|
48
|
+
promotionId: string
|
|
49
|
+
|
|
50
|
+
@Column({ nullable: true })
|
|
51
|
+
packageId: string
|
|
52
|
+
|
|
53
|
+
@Column({ nullable: true })
|
|
54
|
+
invoiceNo: string
|
|
55
|
+
|
|
56
|
+
@Column({ nullable: true })
|
|
57
|
+
reason: string
|
|
58
|
+
|
|
59
|
+
@Column({ nullable: true })
|
|
60
|
+
docRefNo: string
|
|
61
|
+
|
|
62
|
+
@Column({ nullable: true })
|
|
63
|
+
trackingCode: string
|
|
64
|
+
|
|
65
|
+
@Column()
|
|
66
|
+
status: string
|
|
67
|
+
|
|
68
|
+
@Column({ nullable: true })
|
|
69
|
+
description: string
|
|
70
|
+
|
|
71
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
72
|
+
paymentFee: number
|
|
73
|
+
|
|
74
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
75
|
+
commissionFee: number
|
|
76
|
+
|
|
77
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
78
|
+
shippingFeePaidByCustomer: number
|
|
79
|
+
|
|
80
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
81
|
+
promotionalCharges: number
|
|
82
|
+
|
|
83
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
84
|
+
ordersMarketplaceFeesTotal: number
|
|
85
|
+
|
|
86
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
87
|
+
ordersMarketingFeesTotal: number
|
|
88
|
+
|
|
89
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
90
|
+
ordersSalesTotal: number
|
|
91
|
+
|
|
92
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
93
|
+
ordersLogisticsTotal: number
|
|
94
|
+
|
|
95
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
96
|
+
itemPriceCredit: number
|
|
97
|
+
|
|
98
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
99
|
+
marketplaceBonus: number
|
|
100
|
+
|
|
101
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
102
|
+
marketplaceBonusSeller: number
|
|
103
|
+
|
|
104
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
105
|
+
shippingFeeDiscountMarketplace: number
|
|
106
|
+
|
|
107
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
108
|
+
shippingFeeDiscountSeller: number
|
|
109
|
+
|
|
110
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
111
|
+
promotionalChargesFlexiCombo: number
|
|
112
|
+
|
|
113
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
114
|
+
autoShippingSubsidyMarketplace: number
|
|
115
|
+
|
|
116
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
117
|
+
originalShippingFee: number
|
|
118
|
+
|
|
119
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
120
|
+
taxAmount: number
|
|
121
|
+
|
|
122
|
+
@CreateDateColumn()
|
|
123
|
+
createdAt: Date
|
|
124
|
+
|
|
125
|
+
@UpdateDateColumn()
|
|
126
|
+
updatedAt: Date
|
|
127
|
+
|
|
128
|
+
@ManyToOne(type => User, {
|
|
129
|
+
nullable: true
|
|
130
|
+
})
|
|
131
|
+
creator: User
|
|
132
|
+
|
|
133
|
+
@ManyToOne(type => User, {
|
|
134
|
+
nullable: true
|
|
135
|
+
})
|
|
136
|
+
updater: User
|
|
137
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
|
|
2
|
+
|
|
3
|
+
import { User } from '@things-factory/auth-base'
|
|
4
|
+
import { Product } from '@things-factory/product-base'
|
|
5
|
+
import { Domain } from '@things-factory/shell'
|
|
6
|
+
|
|
7
|
+
import { MarketplaceOrderItem, MarketplaceOrderShipping } from '../entities'
|
|
8
|
+
|
|
9
|
+
@Entity()
|
|
10
|
+
@Index(
|
|
11
|
+
'ix_marketplace-order-shipping-item_0',
|
|
12
|
+
(marketplaceOrderShippingItem: MarketplaceOrderShippingItem) => [
|
|
13
|
+
marketplaceOrderShippingItem.domain,
|
|
14
|
+
marketplaceOrderShippingItem.name
|
|
15
|
+
],
|
|
16
|
+
{ unique: true }
|
|
17
|
+
)
|
|
18
|
+
export class MarketplaceOrderShippingItem {
|
|
19
|
+
@PrimaryGeneratedColumn('uuid')
|
|
20
|
+
id: string
|
|
21
|
+
|
|
22
|
+
@ManyToOne(type => Domain)
|
|
23
|
+
domain: Domain
|
|
24
|
+
|
|
25
|
+
@ManyToOne(type => MarketplaceOrderItem)
|
|
26
|
+
marketplaceOrderItem: MarketplaceOrderItem
|
|
27
|
+
|
|
28
|
+
@ManyToOne(type => MarketplaceOrderShipping)
|
|
29
|
+
marketplaceOrderShipping: MarketplaceOrderShipping
|
|
30
|
+
|
|
31
|
+
@ManyToOne(type => Product, { nullable: true })
|
|
32
|
+
product: Product
|
|
33
|
+
|
|
34
|
+
@Column()
|
|
35
|
+
name: string
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'int', nullable: true })
|
|
38
|
+
qty: number
|
|
39
|
+
|
|
40
|
+
@CreateDateColumn()
|
|
41
|
+
createdAt: Date
|
|
42
|
+
|
|
43
|
+
@UpdateDateColumn()
|
|
44
|
+
updatedAt: Date
|
|
45
|
+
|
|
46
|
+
@ManyToOne(type => User, {
|
|
47
|
+
nullable: true
|
|
48
|
+
})
|
|
49
|
+
creator: User
|
|
50
|
+
|
|
51
|
+
@ManyToOne(type => User, {
|
|
52
|
+
nullable: true
|
|
53
|
+
})
|
|
54
|
+
updater: User
|
|
55
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
|
|
2
|
+
|
|
3
|
+
import { User } from '@things-factory/auth-base'
|
|
4
|
+
import { FulfillmentCenter } from '@things-factory/integration-fulfillment'
|
|
5
|
+
import { MarketplaceStore } from '@things-factory/integration-marketplace'
|
|
6
|
+
import { Domain, roundTransformer } from '@things-factory/shell'
|
|
7
|
+
|
|
8
|
+
import { MarketplaceOrderShippingItem } from '../entities'
|
|
9
|
+
|
|
10
|
+
@Entity()
|
|
11
|
+
@Index('ix_marketplace-order-shipping_0', (marketplaceOrderShipping: MarketplaceOrderShipping) => [marketplaceOrderShipping.domain, marketplaceOrderShipping.name], {
|
|
12
|
+
unique: true
|
|
13
|
+
})
|
|
14
|
+
export class MarketplaceOrderShipping {
|
|
15
|
+
@PrimaryGeneratedColumn('uuid')
|
|
16
|
+
id: string
|
|
17
|
+
|
|
18
|
+
@ManyToOne(type => Domain)
|
|
19
|
+
domain: Domain
|
|
20
|
+
|
|
21
|
+
@Column()
|
|
22
|
+
name: string
|
|
23
|
+
|
|
24
|
+
@OneToMany(type => MarketplaceOrderShippingItem, marketplaceOrderShippingItem => marketplaceOrderShippingItem.marketplaceOrderShipping)
|
|
25
|
+
marketplaceOrderShippingItems: MarketplaceOrderShippingItem[]
|
|
26
|
+
|
|
27
|
+
@ManyToOne(type => MarketplaceStore)
|
|
28
|
+
marketplaceStore: MarketplaceStore
|
|
29
|
+
|
|
30
|
+
@Column({ nullable: true })
|
|
31
|
+
orderNoRef: string
|
|
32
|
+
|
|
33
|
+
@Column({ nullable: true })
|
|
34
|
+
subOrderNoRef: string
|
|
35
|
+
|
|
36
|
+
@Column()
|
|
37
|
+
address1: string
|
|
38
|
+
|
|
39
|
+
@Column({ nullable: true })
|
|
40
|
+
address2: string
|
|
41
|
+
|
|
42
|
+
@Column({ nullable: true })
|
|
43
|
+
address3: string
|
|
44
|
+
|
|
45
|
+
@Column({ nullable: true })
|
|
46
|
+
address4: string
|
|
47
|
+
|
|
48
|
+
@Column({ nullable: true })
|
|
49
|
+
address5: string
|
|
50
|
+
|
|
51
|
+
@Column()
|
|
52
|
+
attentionTo: string
|
|
53
|
+
|
|
54
|
+
@Column()
|
|
55
|
+
city: string
|
|
56
|
+
|
|
57
|
+
@Column({ nullable: true })
|
|
58
|
+
state: string
|
|
59
|
+
|
|
60
|
+
@Column()
|
|
61
|
+
postCode: string
|
|
62
|
+
|
|
63
|
+
@Column()
|
|
64
|
+
country: string
|
|
65
|
+
|
|
66
|
+
@Column({ nullable: true })
|
|
67
|
+
phone1: string
|
|
68
|
+
|
|
69
|
+
@Column({ nullable: true })
|
|
70
|
+
phone2: string
|
|
71
|
+
|
|
72
|
+
@Column({ nullable: true })
|
|
73
|
+
email: string
|
|
74
|
+
|
|
75
|
+
@Column({ nullable: true })
|
|
76
|
+
transporter: string
|
|
77
|
+
|
|
78
|
+
@Column({ nullable: true })
|
|
79
|
+
ownTransporter: string
|
|
80
|
+
|
|
81
|
+
@Column({ nullable: true })
|
|
82
|
+
orderType: string
|
|
83
|
+
|
|
84
|
+
@Column({ nullable: true, type: 'int' })
|
|
85
|
+
freightType: number
|
|
86
|
+
|
|
87
|
+
@Column({ nullable: true, type: 'int' })
|
|
88
|
+
parcelType: number
|
|
89
|
+
|
|
90
|
+
@Column({ nullable: true, type: 'int' })
|
|
91
|
+
goodsType: number
|
|
92
|
+
|
|
93
|
+
@Column({ nullable: true, type: 'int' })
|
|
94
|
+
deliveryMethod: number
|
|
95
|
+
|
|
96
|
+
@Column({ nullable: true })
|
|
97
|
+
description: string
|
|
98
|
+
|
|
99
|
+
@Column({ nullable: true })
|
|
100
|
+
weightUnit: string
|
|
101
|
+
|
|
102
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
103
|
+
totalWeight: number
|
|
104
|
+
|
|
105
|
+
@Column({ nullable: true })
|
|
106
|
+
volumeUnit: string
|
|
107
|
+
|
|
108
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
109
|
+
totalVolume: number
|
|
110
|
+
|
|
111
|
+
@Column({ nullable: true })
|
|
112
|
+
collectionType: string
|
|
113
|
+
|
|
114
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
115
|
+
collectionAmount: number
|
|
116
|
+
|
|
117
|
+
@Column({ nullable: true })
|
|
118
|
+
collectionCurrency: string
|
|
119
|
+
|
|
120
|
+
@Column({ nullable: true })
|
|
121
|
+
trackingNo: string
|
|
122
|
+
|
|
123
|
+
@Column({ nullable: true })
|
|
124
|
+
ownTrackingNo: string
|
|
125
|
+
|
|
126
|
+
@Column({ nullable: true })
|
|
127
|
+
airwayBill: string
|
|
128
|
+
|
|
129
|
+
@Column({ nullable: true })
|
|
130
|
+
invoice: string
|
|
131
|
+
|
|
132
|
+
@Column({ type: 'float', nullable: true, transformer: roundTransformer })
|
|
133
|
+
shippingFee: number
|
|
134
|
+
|
|
135
|
+
@Column({ type: 'float', nullable: true, transformer: roundTransformer })
|
|
136
|
+
actualShippingFee: number
|
|
137
|
+
|
|
138
|
+
@Column({ type: 'float', nullable: true, transformer: roundTransformer })
|
|
139
|
+
marketplaceShippingFeeVoucher: number
|
|
140
|
+
|
|
141
|
+
@Column({ type: 'float', nullable: true, transformer: roundTransformer })
|
|
142
|
+
sellerShippingFeeVoucher: number
|
|
143
|
+
|
|
144
|
+
@Column({ nullable: true })
|
|
145
|
+
releaseOrderId: string
|
|
146
|
+
|
|
147
|
+
@ManyToOne(type => FulfillmentCenter, { nullable: true })
|
|
148
|
+
fulfillmentCenter: FulfillmentCenter
|
|
149
|
+
|
|
150
|
+
@Column({ nullable: true })
|
|
151
|
+
trackingUrl: String
|
|
152
|
+
|
|
153
|
+
@CreateDateColumn()
|
|
154
|
+
createdAt: Date
|
|
155
|
+
|
|
156
|
+
@UpdateDateColumn()
|
|
157
|
+
updatedAt: Date
|
|
158
|
+
|
|
159
|
+
@ManyToOne(type => User, {
|
|
160
|
+
nullable: true
|
|
161
|
+
})
|
|
162
|
+
creator: User
|
|
163
|
+
|
|
164
|
+
@ManyToOne(type => User, {
|
|
165
|
+
nullable: true
|
|
166
|
+
})
|
|
167
|
+
updater: User
|
|
168
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
|
|
2
|
+
|
|
3
|
+
import { User } from '@things-factory/auth-base'
|
|
4
|
+
import { FulfillmentCenter } from '@things-factory/integration-fulfillment'
|
|
5
|
+
import { MarketplaceStore } from '@things-factory/integration-marketplace'
|
|
6
|
+
import { Domain, roundTransformer } from '@things-factory/shell'
|
|
7
|
+
|
|
8
|
+
import { MarketplaceOrderItem } from '../entities'
|
|
9
|
+
|
|
10
|
+
@Entity()
|
|
11
|
+
@Index('ix_marketplace-order_0', (marketplaceOrder: MarketplaceOrder) => [marketplaceOrder.domain, marketplaceOrder.name, marketplaceOrder.marketplaceStore], {
|
|
12
|
+
unique: true
|
|
13
|
+
})
|
|
14
|
+
export class MarketplaceOrder {
|
|
15
|
+
@PrimaryGeneratedColumn('uuid')
|
|
16
|
+
id: string
|
|
17
|
+
|
|
18
|
+
@ManyToOne(type => Domain)
|
|
19
|
+
domain: Domain
|
|
20
|
+
|
|
21
|
+
@ManyToOne(type => MarketplaceStore)
|
|
22
|
+
marketplaceStore: MarketplaceStore
|
|
23
|
+
|
|
24
|
+
@OneToMany(type => MarketplaceOrderItem, marketplaceOrderItem => marketplaceOrderItem.marketplaceOrder)
|
|
25
|
+
marketplaceOrderItems: MarketplaceOrderItem[]
|
|
26
|
+
|
|
27
|
+
@Column()
|
|
28
|
+
name: string
|
|
29
|
+
|
|
30
|
+
@Column({ nullable: true })
|
|
31
|
+
description: string
|
|
32
|
+
|
|
33
|
+
@Column({ nullable: true })
|
|
34
|
+
orderNo: string
|
|
35
|
+
|
|
36
|
+
@Column({ nullable: true })
|
|
37
|
+
currency: string
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'int', nullable: true })
|
|
40
|
+
itemCount: number
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'float', nullable: true, transformer: roundTransformer })
|
|
43
|
+
totalAmount: number
|
|
44
|
+
|
|
45
|
+
@Column({ nullable: true })
|
|
46
|
+
paymentMethod: string
|
|
47
|
+
|
|
48
|
+
@Column({ nullable: true })
|
|
49
|
+
type: string
|
|
50
|
+
|
|
51
|
+
@Column({ nullable: true })
|
|
52
|
+
remark: string
|
|
53
|
+
|
|
54
|
+
@Column({ nullable: true })
|
|
55
|
+
giftOption: Boolean
|
|
56
|
+
|
|
57
|
+
@Column({ nullable: true })
|
|
58
|
+
voucherCode: string
|
|
59
|
+
|
|
60
|
+
@Column({ nullable: true })
|
|
61
|
+
discountValue: string
|
|
62
|
+
|
|
63
|
+
@Column({ nullable: true })
|
|
64
|
+
trackingNo: string
|
|
65
|
+
|
|
66
|
+
@Column({ nullable: true })
|
|
67
|
+
ownTrackingNo: string
|
|
68
|
+
|
|
69
|
+
@Column({ nullable: true })
|
|
70
|
+
shippingProvider: string
|
|
71
|
+
|
|
72
|
+
@Column({ nullable: true })
|
|
73
|
+
ownShippingProvider: string
|
|
74
|
+
|
|
75
|
+
@Column()
|
|
76
|
+
status: string
|
|
77
|
+
|
|
78
|
+
@Column({ nullable: true })
|
|
79
|
+
releaseOrderId: string
|
|
80
|
+
|
|
81
|
+
@ManyToOne(type => FulfillmentCenter, { nullable: true })
|
|
82
|
+
fulfillmentCenter: FulfillmentCenter
|
|
83
|
+
|
|
84
|
+
@Column({ nullable: true })
|
|
85
|
+
orderCreatedAt: Date
|
|
86
|
+
|
|
87
|
+
@Column({ nullable: true })
|
|
88
|
+
orderUpdatedAt: Date
|
|
89
|
+
|
|
90
|
+
@Column({ nullable: true })
|
|
91
|
+
otherInfoJSON: string
|
|
92
|
+
|
|
93
|
+
@Column({ nullable: true })
|
|
94
|
+
isSplitted: boolean
|
|
95
|
+
|
|
96
|
+
@Column({ nullable: true })
|
|
97
|
+
buyerUsername: string
|
|
98
|
+
|
|
99
|
+
@Column({ nullable: true })
|
|
100
|
+
payTime: Date
|
|
101
|
+
|
|
102
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
103
|
+
commissionFee: Number
|
|
104
|
+
|
|
105
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
106
|
+
serviceFee: Number
|
|
107
|
+
|
|
108
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
109
|
+
transactionFee: Number
|
|
110
|
+
|
|
111
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
112
|
+
totalRealeasedAmount: Number
|
|
113
|
+
|
|
114
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
115
|
+
voucherAmount: String
|
|
116
|
+
|
|
117
|
+
@Column({ nullable: true, type: 'float', transformer: roundTransformer })
|
|
118
|
+
shippingRebate: Number
|
|
119
|
+
|
|
120
|
+
@Column({ nullable: true })
|
|
121
|
+
shippingMode: String
|
|
122
|
+
|
|
123
|
+
@Column({ nullable: true })
|
|
124
|
+
payoutDate: Date
|
|
125
|
+
|
|
126
|
+
@CreateDateColumn()
|
|
127
|
+
createdAt: Date
|
|
128
|
+
|
|
129
|
+
@UpdateDateColumn()
|
|
130
|
+
updatedAt: Date
|
|
131
|
+
|
|
132
|
+
@ManyToOne(type => User, {
|
|
133
|
+
nullable: true
|
|
134
|
+
})
|
|
135
|
+
creator: User
|
|
136
|
+
|
|
137
|
+
@ManyToOne(type => User, {
|
|
138
|
+
nullable: true
|
|
139
|
+
})
|
|
140
|
+
updater: User
|
|
141
|
+
}
|