@things-factory/integration-sellercraft 4.2.3 → 4.2.8

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