@things-factory/integration-sellercraft 5.0.0-alpha.36 → 5.0.0-alpha.39
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/constants/order-status-mapping.js +21 -3
- package/dist-server/constants/order-status-mapping.js.map +1 -1
- package/dist-server/constants/platform.js +3 -1
- package/dist-server/constants/platform.js.map +1 -1
- package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-categories.js +3 -2
- package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-categories.js.map +1 -1
- package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-order-package.js +5 -2
- package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-order-package.js.map +1 -1
- package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.js +21 -14
- package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.js.map +1 -1
- package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.js +15 -11
- package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.js.map +1 -1
- package/dist-server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.js +8 -4
- package/dist-server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.js.map +1 -1
- package/dist-server/routers/sellercraft-router.js +195 -75
- package/dist-server/routers/sellercraft-router.js.map +1 -1
- package/dist-server/service/marketplace-channel/marketplace-channel-order-mutation.js +317 -103
- package/dist-server/service/marketplace-channel/marketplace-channel-order-mutation.js.map +1 -1
- package/dist-server/service/marketplace-channel/marketplace-channel-product-mutation.js +83 -25
- package/dist-server/service/marketplace-channel/marketplace-channel-product-mutation.js.map +1 -1
- package/dist-server/service/marketplace-channel/marketplace-channel.js +5 -0
- package/dist-server/service/marketplace-channel/marketplace-channel.js.map +1 -1
- package/package.json +15 -15
- package/server/constants/order-status-mapping.ts +21 -2
- package/server/constants/platform.ts +3 -1
- package/server/controllers/sellercraft-channel-integration/apis/ingest-channel-categories.ts +4 -3
- package/server/controllers/sellercraft-channel-integration/apis/ingest-channel-order-package.ts +6 -2
- package/server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.ts +22 -15
- package/server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.ts +26 -21
- package/server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.ts +8 -4
- package/server/routers/sellercraft-router.ts +199 -79
- package/server/service/marketplace-channel/marketplace-channel-order-mutation.ts +379 -149
- package/server/service/marketplace-channel/marketplace-channel-product-mutation.ts +83 -26
- package/server/service/marketplace-channel/marketplace-channel.ts +4 -0
@@ -15,123 +15,314 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.MarketplaceChannelOrderMutation = void 0;
|
16
16
|
const type_graphql_1 = require("type-graphql");
|
17
17
|
const typeorm_1 = require("typeorm");
|
18
|
-
const marketplace_channel_1 = require("./marketplace-channel");
|
19
18
|
const env_1 = require("@things-factory/env");
|
20
19
|
const integration_marketplace_1 = require("@things-factory/integration-marketplace");
|
20
|
+
const constants_1 = require("../../constants");
|
21
21
|
const sellercraft_channel_integration_api_1 = require("../../controllers/sellercraft-channel-integration-api");
|
22
|
+
const marketplace_channel_1 = require("./marketplace-channel");
|
22
23
|
let MarketplaceChannelOrderMutation = class MarketplaceChannelOrderMutation {
|
23
24
|
async syncAllMarketplaceChannelOrders(fromDate, toDate, context) {
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
24
26
|
const sellercraftChannelIntegrationConfig = env_1.config.get('sellercraftChannelIntegrationConfig', {});
|
25
27
|
const { tokenCraftApiKey: apiKey, getShopsTokenCraftUrl } = sellercraftChannelIntegrationConfig;
|
26
|
-
const channels = await (0, typeorm_1.getRepository)(marketplace_channel_1.MarketplaceChannel).find();
|
28
|
+
const channels = await (0, typeorm_1.getRepository)(marketplace_channel_1.MarketplaceChannel).find({ where: { isActive: true } });
|
27
29
|
for (var i = 0; i < channels.length; i++) {
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
try {
|
31
|
+
const channel = channels[i];
|
32
|
+
var channelsFullPath = getShopsTokenCraftUrl + '?channel_id=' + channel.channelId;
|
33
|
+
const channelResponse = await fetch(channelsFullPath, {
|
34
|
+
method: 'get',
|
35
|
+
headers: {
|
36
|
+
'Content-Type': 'application/json',
|
37
|
+
'x-api-key': apiKey
|
38
|
+
}
|
39
|
+
});
|
40
|
+
if (!channelResponse.ok) {
|
41
|
+
throw new Error(channelResponse);
|
34
42
|
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
platform: channels[i].name,
|
47
|
-
accessToken: shops[j].credential.access_token // Magento+
|
48
|
-
};
|
49
|
-
// let countryCode = shops[j].country_code
|
50
|
-
// let channelCode = shops[j].org_prefix
|
51
|
-
let organisationId = shops[j].account_id;
|
52
|
-
let channelShopId = shops[j].channel_shop_id;
|
53
|
-
const orderReq = {
|
54
|
-
fromDate: fromDate,
|
55
|
-
toDate: toDate
|
56
|
-
};
|
57
|
-
const orderResult = await integration_marketplace_1.StoreAPI.getStoreOrders(store, orderReq);
|
58
|
-
var sellercraftStore = Object.assign(Object.assign({}, store), { platform: 'sellercraftChannelIntegration' });
|
59
|
-
let mappedOrderResult = orderResult.results.map(order => {
|
60
|
-
let { firstName: custFirstName, lastName: custLastName, orderCreatedAt: createdAt, orderUpdatedAt: updatedAt, orderNo: id, status } = order;
|
61
|
-
let { first_name: billFirstName, last_name: billLastName, address_1: billAddress1, address_2: billAddress2, address_3: billAddress3, address_4: billAddress4, address_5: billAddress5, city: billCity, postcode: billPostalCode, country: billCountry, phone: billPhone1, phone_2: billPhone2 } = order === null || order === void 0 ? void 0 : order.billing;
|
62
|
-
let { first_name: shipFirstName, last_name: shipLastName, address_1: shipAddress1, address_2: shipAddress2, address_3: shipAddress3, address_4: shipAddress4, address_5: shipAddress5, city: shipCity, postcode: shipPostalCode, country: shipCountry, phone: shipPhone1, phone_2: shipPhone2 } = order.shipping;
|
63
|
-
let orderItems = order.orderItems.map(item => {
|
64
|
-
let { name: id, variationId: variationId, slaExpiresAt, total, totalTax, subtotal, subtotalTax, qty } = item;
|
65
|
-
return {
|
66
|
-
id,
|
67
|
-
variationId,
|
68
|
-
currency: order.orderShipping.collectionCurrency,
|
69
|
-
createdAt: order.orderCreatedAt,
|
70
|
-
updatedAt: order.orderUpdatedAt,
|
71
|
-
charges: [
|
72
|
-
{
|
73
|
-
name: 'PRICE_NORMAL_SELLING',
|
74
|
-
grossAmount: total,
|
75
|
-
nettAmount: subtotal
|
76
|
-
},
|
77
|
-
{
|
78
|
-
name: 'TAXES',
|
79
|
-
grossAmount: totalTax,
|
80
|
-
nettAmount: subtotalTax
|
81
|
-
}
|
82
|
-
],
|
83
|
-
slaExpiresAt,
|
84
|
-
qty
|
43
|
+
var shopsResponse = await channelResponse.json();
|
44
|
+
var shops = shopsResponse.shops;
|
45
|
+
for (var j = 0; j < shops.length; j++) {
|
46
|
+
try {
|
47
|
+
var store = {
|
48
|
+
accessKey: ((_b = (_a = shops[j]) === null || _a === void 0 ? void 0 : _a.credential) === null || _b === void 0 ? void 0 : _b.consumer_key) || '',
|
49
|
+
accessSecret: ((_d = (_c = shops[j]) === null || _c === void 0 ? void 0 : _c.credential) === null || _d === void 0 ? void 0 : _d.consumer_secret) || '',
|
50
|
+
storeURL: ((_f = (_e = shops[j]) === null || _e === void 0 ? void 0 : _e.credential) === null || _f === void 0 ? void 0 : _f.store_url) || '',
|
51
|
+
platform: channel.name,
|
52
|
+
accessToken: (_h = (_g = shops[j]) === null || _g === void 0 ? void 0 : _g.credential) === null || _h === void 0 ? void 0 : _h.access_token,
|
53
|
+
channelShopId: (_j = shops[j]) === null || _j === void 0 ? void 0 : _j.channel_shop_id
|
85
54
|
};
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
55
|
+
// let countryCode = shops[j].country_code
|
56
|
+
// let channelCode = shops[j].org_prefix
|
57
|
+
let organisationId = shops[j].account_id;
|
58
|
+
let channelShopId = shops[j].channel_shop_id;
|
59
|
+
let orderResult = [];
|
60
|
+
let page = store.platform == 'magento' ? 1 : 0;
|
61
|
+
let hasMorePage = true;
|
62
|
+
let lastOrderId;
|
63
|
+
let cursor;
|
64
|
+
var limit = 50;
|
65
|
+
while (hasMorePage) {
|
66
|
+
const { results: marketplaceOrders, more, nextCursor } = await integration_marketplace_1.StoreAPI.getStoreOrders(store, {
|
67
|
+
fromDate,
|
68
|
+
toDate,
|
69
|
+
pagination: { page, limit },
|
70
|
+
lastOrderId,
|
71
|
+
nextCursor: cursor
|
72
|
+
});
|
73
|
+
orderResult.push(...marketplaceOrders);
|
74
|
+
if (more)
|
75
|
+
page++;
|
76
|
+
hasMorePage = more;
|
77
|
+
cursor = nextCursor;
|
91
78
|
}
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
79
|
+
var sellercraftStore = Object.assign(Object.assign({}, store), { platform: 'sellercraftChannelIntegration' });
|
80
|
+
let mappedOrderResult = orderResult.map(order => {
|
81
|
+
let id = store.platform == 'magento' ? order.name : order.orderNo;
|
82
|
+
let { firstName: custFirstName, lastName: custLastName, orderCreatedAt: createdAt, orderUpdatedAt: updatedAt, status, isSOF } = order;
|
83
|
+
let { first_name: billFirstName, last_name: billLastName, address_1: billAddress1, address_2: billAddress2, address_3: billAddress3, address_4: billAddress4, address_5: billAddress5, city: billCity, postcode: billPostalCode, country: billCountry, phone: billPhone1, phone_2: billPhone2 } = order === null || order === void 0 ? void 0 : order.billing;
|
84
|
+
let { first_name: shipFirstName, last_name: shipLastName, address_1: shipAddress1, address_2: shipAddress2, address_3: shipAddress3, address_4: shipAddress4, address_5: shipAddress5, city: shipCity, postcode: shipPostalCode, country: shipCountry, phone: shipPhone1, phone_2: shipPhone2 } = order.shipping;
|
85
|
+
let orderPackage = (order === null || order === void 0 ? void 0 : order.orderPackage) || {};
|
86
|
+
let orderItems = order.orderItems.map(item => {
|
87
|
+
let { name: id, variationId: variationId, slaExpiresAt, total, totalTax, subtotal, subtotalTax, qty } = item;
|
88
|
+
return {
|
89
|
+
id,
|
90
|
+
variationId,
|
91
|
+
currency: order.orderShipping.collectionCurrency,
|
92
|
+
createdAt: order.orderCreatedAt,
|
93
|
+
updatedAt: order.orderUpdatedAt,
|
94
|
+
charges: [
|
95
|
+
{
|
96
|
+
name: 'CHARGES_MARKETING',
|
97
|
+
grossAmount: 0,
|
98
|
+
nettAmount: 0
|
99
|
+
},
|
100
|
+
{
|
101
|
+
name: 'CLAIMS_DAMAGE',
|
102
|
+
grossAmount: 0,
|
103
|
+
nettAmount: 0
|
104
|
+
},
|
105
|
+
{
|
106
|
+
name: 'CLAIMS_LOST',
|
107
|
+
grossAmount: 0,
|
108
|
+
nettAmount: 0
|
109
|
+
},
|
110
|
+
{
|
111
|
+
name: 'COMMISSION_PLATFORM',
|
112
|
+
grossAmount: 0,
|
113
|
+
nettAmount: 0
|
114
|
+
},
|
115
|
+
{
|
116
|
+
name: 'DEPOSIT_PRESALE',
|
117
|
+
grossAmount: 0,
|
118
|
+
nettAmount: 0
|
119
|
+
},
|
120
|
+
{
|
121
|
+
name: 'FEE_MISCELLANEOUS',
|
122
|
+
grossAmount: 0,
|
123
|
+
nettAmount: 0
|
124
|
+
},
|
125
|
+
{
|
126
|
+
name: 'FEE_TRANSACTION',
|
127
|
+
grossAmount: 0,
|
128
|
+
nettAmount: 0
|
129
|
+
},
|
130
|
+
{
|
131
|
+
name: 'PRICE_NORMAL_SELLING',
|
132
|
+
grossAmount: total,
|
133
|
+
nettAmount: subtotal
|
134
|
+
},
|
135
|
+
{
|
136
|
+
name: 'PRICE_RECOMMENDED_RETAIL',
|
137
|
+
grossAmount: 0,
|
138
|
+
nettAmount: 0
|
139
|
+
},
|
140
|
+
{
|
141
|
+
name: 'PROMOTIONS_CUSTOMER_RECEIVED',
|
142
|
+
grossAmount: 0,
|
143
|
+
nettAmount: 0
|
144
|
+
},
|
145
|
+
{
|
146
|
+
name: 'PROMOTIONS_REBATE_PLATFORM',
|
147
|
+
grossAmount: 0,
|
148
|
+
nettAmount: 0
|
149
|
+
},
|
150
|
+
{
|
151
|
+
name: 'PROMOTIONS_REBATE_SELLER',
|
152
|
+
grossAmount: 0,
|
153
|
+
nettAmount: 0
|
154
|
+
},
|
155
|
+
{
|
156
|
+
name: 'REVERSAL_CHARGES_MARKETING',
|
157
|
+
grossAmount: 0,
|
158
|
+
nettAmount: 0
|
159
|
+
},
|
160
|
+
{
|
161
|
+
name: 'REVERSAL_COMMISSION',
|
162
|
+
grossAmount: 0,
|
163
|
+
nettAmount: 0
|
164
|
+
},
|
165
|
+
{
|
166
|
+
name: 'REVERSAL_FEE_MISCELLANEOUS',
|
167
|
+
grossAmount: 0,
|
168
|
+
nettAmount: 0
|
169
|
+
},
|
170
|
+
{
|
171
|
+
name: 'REVERSAL_PROMOTIONS_CUSTOMER_RECEIVED',
|
172
|
+
grossAmount: 0,
|
173
|
+
nettAmount: 0
|
174
|
+
},
|
175
|
+
{
|
176
|
+
name: 'REVERSAL_SELLER_RETURN_REFUND_AMOUNT',
|
177
|
+
grossAmount: 0,
|
178
|
+
nettAmount: 0
|
179
|
+
},
|
180
|
+
{
|
181
|
+
name: 'REVERSAL_SHIPPING_CUSTOMER_PAID',
|
182
|
+
grossAmount: 0,
|
183
|
+
nettAmount: 0
|
184
|
+
},
|
185
|
+
{
|
186
|
+
name: 'REVERSAL_SHIPPING_REBATE_PLATFORM',
|
187
|
+
grossAmount: 0,
|
188
|
+
nettAmount: 0
|
189
|
+
},
|
190
|
+
{
|
191
|
+
name: 'REVERSAL_SHIPPING_SELLER_PAID',
|
192
|
+
grossAmount: 0,
|
193
|
+
nettAmount: 0
|
194
|
+
},
|
195
|
+
{
|
196
|
+
name: 'SHIPPING_COST_TOTAL',
|
197
|
+
grossAmount: 0,
|
198
|
+
nettAmount: 0
|
199
|
+
},
|
200
|
+
{
|
201
|
+
name: 'SHIPPING_CUSTOMER_PAID',
|
202
|
+
grossAmount: 0,
|
203
|
+
nettAmount: 0
|
204
|
+
},
|
205
|
+
{
|
206
|
+
name: 'SHIPPING_REBATE_PLATFORM',
|
207
|
+
grossAmount: 0,
|
208
|
+
nettAmount: 0
|
209
|
+
},
|
210
|
+
{
|
211
|
+
name: 'SHIPPING_SELLER_PAID',
|
212
|
+
grossAmount: 0,
|
213
|
+
nettAmount: 0
|
214
|
+
},
|
215
|
+
{
|
216
|
+
name: 'TAXES',
|
217
|
+
grossAmount: totalTax,
|
218
|
+
nettAmount: subtotalTax
|
219
|
+
},
|
220
|
+
{
|
221
|
+
name: 'VOUCHERS_CUSTOMER_RECEIVED',
|
222
|
+
grossAmount: 0,
|
223
|
+
nettAmount: 0
|
224
|
+
},
|
225
|
+
{
|
226
|
+
name: 'VOUCHERS_REBATE_PLATFORM',
|
227
|
+
grossAmount: 0,
|
228
|
+
nettAmount: 0
|
229
|
+
},
|
230
|
+
{
|
231
|
+
name: 'VOUCHERS_REBATE_SELLER',
|
232
|
+
grossAmount: 0,
|
233
|
+
nettAmount: 0
|
234
|
+
}
|
235
|
+
],
|
236
|
+
slaExpiresAt,
|
237
|
+
qty
|
238
|
+
};
|
239
|
+
});
|
240
|
+
let mappedOrderItems = [];
|
241
|
+
orderItems.map(oi => {
|
242
|
+
for (let i = 0; i < oi.qty; i++) {
|
243
|
+
mappedOrderItems.push(Object.assign(Object.assign({}, oi), { id: `${oi.id}-${i + 1}` }));
|
244
|
+
}
|
245
|
+
});
|
246
|
+
return {
|
247
|
+
custFirstName,
|
248
|
+
custLastName,
|
249
|
+
createdAt,
|
250
|
+
updatedAt,
|
251
|
+
id,
|
252
|
+
billFirstName,
|
253
|
+
billLastName,
|
254
|
+
billAddress1: billAddress1.toString() || shipAddress1.toString(),
|
255
|
+
billAddress2: billAddress2 || shipAddress2,
|
256
|
+
billAddress3: billAddress3 || shipAddress3,
|
257
|
+
billAddress4: billAddress4 || shipAddress4,
|
258
|
+
billAddress5: billAddress5 || shipAddress5,
|
259
|
+
billCity: billCity || shipCity,
|
260
|
+
billPostalCode: billPostalCode || shipPostalCode,
|
261
|
+
billCountry: billCountry || shipCountry,
|
262
|
+
billPhone1: billPhone1 || shipPhone1,
|
263
|
+
billPhone2: billPhone2 || shipPhone2,
|
264
|
+
shipFirstName,
|
265
|
+
shipLastName,
|
266
|
+
shipAddress1: shipAddress1.toString(),
|
267
|
+
shipAddress2,
|
268
|
+
shipAddress3,
|
269
|
+
shipAddress4,
|
270
|
+
shipAddress5,
|
271
|
+
shipCity,
|
272
|
+
shipPostalCode,
|
273
|
+
shipCountry,
|
274
|
+
shipPhone1,
|
275
|
+
shipPhone2,
|
276
|
+
mappedOrderItems,
|
277
|
+
channelShopId,
|
278
|
+
organisationId,
|
279
|
+
status,
|
280
|
+
isSOF: isSOF ? isSOF : false,
|
281
|
+
orderPackage,
|
282
|
+
charges: getOrderCharges(mappedOrderItems)
|
283
|
+
};
|
284
|
+
});
|
285
|
+
if (mappedOrderResult.length > 0) {
|
286
|
+
await sellercraft_channel_integration_api_1.SellercraftChannelIntegrationAPI.ingestChannelOrder(sellercraftStore, {
|
287
|
+
orders: mappedOrderResult
|
288
|
+
});
|
289
|
+
await Promise.all(mappedOrderResult.map(async (result) => {
|
290
|
+
var _a;
|
291
|
+
if (!(result === null || result === void 0 ? void 0 : result.isSOF) && ((_a = result === null || result === void 0 ? void 0 : result.orderPackage) === null || _a === void 0 ? void 0 : _a.packageId)) {
|
292
|
+
let orderPackage = result.orderPackage;
|
293
|
+
let newOrderPackage = {
|
294
|
+
channelShopId,
|
295
|
+
nativeOrderId: result.id,
|
296
|
+
nativePackageId: orderPackage.packageId,
|
297
|
+
shippingTrackingCode: orderPackage.trackingNumber,
|
298
|
+
shippingTypeValue: (orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.shippingType)
|
299
|
+
? orderPackage.shippingType
|
300
|
+
: constants_1.SHIPPING_TYPE.DROP_SHIPPING,
|
301
|
+
warehouseCode: constants_1.SHIPPING_TYPE.DROP_SHIPPING,
|
302
|
+
shipper: {
|
303
|
+
name: orderPackage.shippingProvider,
|
304
|
+
isCodSupported: (orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.isCodSupport) ? orderPackage.isCodSupport : false
|
305
|
+
},
|
306
|
+
documents: (orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.orderDocument) || [],
|
307
|
+
shipperLastMile: {
|
308
|
+
name: orderPackage.shippingProvider,
|
309
|
+
isCodSupported: (orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.isCodSupport) ? orderPackage.isCodSupport : false
|
310
|
+
},
|
311
|
+
orderItemIds: (orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.orderListIdList)
|
312
|
+
? orderPackage.orderListIdList
|
313
|
+
: result.mappedOrderItems.map(orderItem => orderItem.id)
|
314
|
+
};
|
315
|
+
await sellercraft_channel_integration_api_1.SellercraftChannelIntegrationAPI.ingestChannelOrderPackage(sellercraftStore, newOrderPackage);
|
316
|
+
}
|
317
|
+
}));
|
318
|
+
}
|
319
|
+
}
|
320
|
+
catch (e) { }
|
131
321
|
}
|
132
322
|
}
|
133
|
-
|
323
|
+
catch (e) { }
|
134
324
|
}
|
325
|
+
return true;
|
135
326
|
}
|
136
327
|
};
|
137
328
|
__decorate([
|
@@ -147,4 +338,27 @@ MarketplaceChannelOrderMutation = __decorate([
|
|
147
338
|
(0, type_graphql_1.Resolver)()
|
148
339
|
], MarketplaceChannelOrderMutation);
|
149
340
|
exports.MarketplaceChannelOrderMutation = MarketplaceChannelOrderMutation;
|
341
|
+
function getOrderCharges(mappedOrderItems) {
|
342
|
+
let chargesList = [];
|
343
|
+
for (let i = 0; i < mappedOrderItems.length; i++) {
|
344
|
+
for (let j = 0; j < mappedOrderItems[i].charges.length; j++) {
|
345
|
+
let charge = mappedOrderItems[i].charges[j];
|
346
|
+
let foundCharge = chargesList.find(cl => cl.name == charge.name);
|
347
|
+
if (foundCharge) {
|
348
|
+
foundCharge.grossAmount = parseFloat(foundCharge.grossAmount) + parseFloat(charge.grossAmount);
|
349
|
+
foundCharge.nettAmount = parseFloat(foundCharge.nettAmount) + parseFloat(charge.nettAmount);
|
350
|
+
chargesList = chargesList.filter(cl => cl.name != charge.name);
|
351
|
+
}
|
352
|
+
else {
|
353
|
+
foundCharge = {
|
354
|
+
name: charge.name,
|
355
|
+
grossAmount: charge.grossAmount,
|
356
|
+
nettAmount: charge.nettAmount
|
357
|
+
};
|
358
|
+
}
|
359
|
+
chargesList.push(foundCharge);
|
360
|
+
}
|
361
|
+
}
|
362
|
+
return chargesList;
|
363
|
+
}
|
150
364
|
//# sourceMappingURL=marketplace-channel-order-mutation.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"marketplace-channel-order-mutation.js","sourceRoot":"","sources":["../../../server/service/marketplace-channel/marketplace-channel-order-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA2D;AAC3D,qCAAuC;AAEvC
|
1
|
+
{"version":3,"file":"marketplace-channel-order-mutation.js","sourceRoot":"","sources":["../../../server/service/marketplace-channel/marketplace-channel-order-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA2D;AAC3D,qCAAuC;AAEvC,6CAA4C;AAC5C,qFAAkE;AAElE,+CAA+C;AAC/C,+GAAwG;AACxG,+DAA0D;AAG1D,IAAa,+B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