rerobe-js-orm 4.5.6 → 4.5.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.
@@ -10,6 +10,7 @@ export namespace PAYMENT_TYPES {
10
10
  let shoppingCredit: string;
11
11
  let cash: string;
12
12
  let mobilePayment: string;
13
+ let shopifyPayment: string;
13
14
  }
14
15
  export namespace ORDER_STATES {
15
16
  let draft: string;
@@ -21,6 +22,7 @@ export namespace SALES_CHANNELS {
21
22
  let store: string;
22
23
  let onlineStore: string;
23
24
  let thirdParty: string;
25
+ let shopify: string;
24
26
  let ahlens: string;
25
27
  let ribbnMobilePOS: string;
26
28
  let ribbnWebPOS: string;
@@ -51,6 +53,7 @@ export const SALES_CHANNEL_TO_RETURN_POLICY_MAPPING: {
51
53
  [SALES_CHANNELS.webApp]: string;
52
54
  [SALES_CHANNELS.store]: string;
53
55
  [SALES_CHANNELS.onlineStore]: string;
56
+ [SALES_CHANNELS.shopify]: string;
54
57
  [SALES_CHANNELS.thirdParty]: string;
55
58
  [SALES_CHANNELS.ahlens]: string;
56
59
  [SALES_CHANNELS.ribbnMobilePOS]: string;
@@ -13,6 +13,7 @@ exports.PAYMENT_TYPES = {
13
13
  shoppingCredit: 'SHOPPING_CREDIT',
14
14
  cash: 'CASH',
15
15
  mobilePayment: 'MOBILE_PAYMENT',
16
+ shopifyPayment: 'SHOPIFY_PAYMENT',
16
17
  };
17
18
  exports.ORDER_STATES = {
18
19
  draft: 'DRAFT',
@@ -24,6 +25,7 @@ exports.SALES_CHANNELS = {
24
25
  store: 'STORE',
25
26
  onlineStore: 'ONLINE_STORE',
26
27
  thirdParty: 'THIRD_PARTY',
28
+ shopify: 'SHOPIFY',
27
29
  ahlens: 'AHLENS',
28
30
  ribbnMobilePOS: 'RIBBN_MOBILE_POS',
29
31
  ribbnWebPOS: 'RIBBN_WEB_POS',
@@ -54,6 +56,7 @@ exports.SALES_CHANNEL_TO_RETURN_POLICY_MAPPING = {
54
56
  [exports.SALES_CHANNELS.webApp]: exports.RETURN_POLICY_TYPES.inStore,
55
57
  [exports.SALES_CHANNELS.store]: exports.RETURN_POLICY_TYPES.inStore,
56
58
  [exports.SALES_CHANNELS.onlineStore]: exports.RETURN_POLICY_TYPES.online,
59
+ [exports.SALES_CHANNELS.shopify]: exports.RETURN_POLICY_TYPES.online,
57
60
  [exports.SALES_CHANNELS.thirdParty]: exports.RETURN_POLICY_TYPES.inStore,
58
61
  [exports.SALES_CHANNELS.ahlens]: exports.RETURN_POLICY_TYPES.inStore,
59
62
  [exports.SALES_CHANNELS.ribbnMobilePOS]: exports.RETURN_POLICY_TYPES.inStore,
@@ -2,4 +2,5 @@ import OrderFactory from './OrderFactory';
2
2
  export default class OrderFromShopifyWebhook extends OrderFactory {
3
3
  createOrder(order: ShopifyRestApiOrderObj): ReRobeOrderObj;
4
4
  createOrderV2(order: any): ReRobeOrderObj;
5
+ createOrderV3(order: ShopifyOrdersCreatePayload): ReRobeOrderObj;
5
6
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const OrderFactory_1 = require("./OrderFactory");
4
4
  const Order_1 = require("../../models/Order");
5
5
  const OrderHelpers_1 = require("../../helpers/OrderHelpers");
6
+ const order_constants_1 = require("../../constants/order-constants");
6
7
  const orderHelpers = new OrderHelpers_1.default();
7
8
  const fulfillmentStatusRestMapping = {
8
9
  fulfilled: 'FULFILLED',
@@ -264,7 +265,7 @@ class OrderFromShopifyWebhook extends OrderFactory_1.default {
264
265
  };
265
266
  // @ts-ignore
266
267
  const fulfillmentStatus = !fulfillment_status ? '' : fulfillmentStatusRestMapping[fulfillment_status];
267
- const rerobeOrder = new Order_1.default(Object.assign(Object.assign({}, order), { id: orderHelpers.getOrderIdFromShopifyObj(order), shopifyId: `gid://shopify/Order/${id}`, shopifyOrderNumber: name ? Number(name.split('#')[1]) : 0, financialStatus: financial_status ? financial_status.toUpperCase() : '', fulfillmentStatus, cancelReason: cancel_reason ? cancel_reason.toUpperCase() : '', lineItems,
268
+ const rerobeOrder = new Order_1.default(Object.assign(Object.assign({}, order), { id: orderHelpers.getOrderIdFromShopifyObj({ id, tags }), shopifyId: `gid://shopify/Order/${id}`, shopifyOrderNumber: name ? Number(name.split('#')[1]) : 0, financialStatus: financial_status ? financial_status.toUpperCase() : '', fulfillmentStatus, cancelReason: cancel_reason ? cancel_reason.toUpperCase() : '', lineItems,
268
269
  subtotalPrice,
269
270
  totalPrice,
270
271
  totalShippingPrice,
@@ -274,7 +275,7 @@ class OrderFromShopifyWebhook extends OrderFactory_1.default {
274
275
  fulfillments,
275
276
  refunds,
276
277
  taxLines,
277
- shippingLine, state: Order_1.default.ORDER_STATES.completed, shippingType: orderHelpers.getShippingTypeFromShopifyObj(shipping_lines), paymentType: orderHelpers.getPaymentTypeUsingTags(tags), salesChannel: orderHelpers.getSalesChannelUsingTags(tags), tags: tags ? tags.split(', ') : [] }));
278
+ shippingLine, state: Order_1.default.ORDER_STATES.completed, shippingType: orderHelpers.getShippingTypeFromShopifyObj(shipping_lines), paymentType: orderHelpers.getPaymentTypeUsingTags(tags), salesChannel: order_constants_1.SALES_CHANNELS.shopify, tags: tags ? tags.split(', ') : [] }));
278
279
  return rerobeOrder.toObj();
279
280
  }
280
281
  // Aligned with Shopify REST order payload that includes current_* fields
@@ -308,7 +309,8 @@ class OrderFromShopifyWebhook extends OrderFactory_1.default {
308
309
  title: item.title,
309
310
  quantity: item.quantity,
310
311
  variant: {
311
- id: item.variant_id ? `gid://shopify/ProductVariant/${item.variant_id}` : '',
312
+ id: '',
313
+ shopifyId: item.variant_id ? `gid://shopify/ProductVariant/${item.variant_id}` : '',
312
314
  title: item.variant_title || '',
313
315
  image: { id: '', originalSrc: '' },
314
316
  },
@@ -337,7 +339,10 @@ class OrderFromShopifyWebhook extends OrderFactory_1.default {
337
339
  taxLines: (shipping_lines[0].tax_lines || []).map((t) => ({
338
340
  rate: t.rate,
339
341
  title: t.title,
340
- priceSet: { amount: t.price, currencyCode: currency || '' },
342
+ priceSet: {
343
+ shopMoney: { amount: t.price, currencyCode: currency || '' },
344
+ presentmentMoney: { amount: t.price, currencyCode: currency || '' },
345
+ },
341
346
  })),
342
347
  }
343
348
  : {
@@ -352,7 +357,7 @@ class OrderFromShopifyWebhook extends OrderFactory_1.default {
352
357
  // @ts-ignore
353
358
  const fulfillmentStatus = !fulfillment_status ? '' : fulfillmentStatusRestMapping[fulfillment_status];
354
359
  const rerobeOrder = new Order_1.default({
355
- id: orderHelpers.getOrderIdFromShopifyObj(order),
360
+ id: orderHelpers.getOrderIdFromShopifyObj({ id, tags }),
356
361
  shopifyId: `gid://shopify/Order/${id}`,
357
362
  shopifyOrderNumber: name ? Number(String(name).replace('#', '')) : order_number || 0,
358
363
  name: name || '',
@@ -384,5 +389,235 @@ class OrderFromShopifyWebhook extends OrderFactory_1.default {
384
389
  });
385
390
  return rerobeOrder.toObj();
386
391
  }
392
+ // Aligned with Shopify REST order payload that includes current_* fields and statusUrl
393
+ createOrderV3(order) {
394
+ const { id, name, financial_status, fulfillment_status, cancel_reason, created_at, processed_at, updated_at, currency, contact_email, email, order_status_url, shipping_address, line_items = [], discount_applications = [], shipping_lines = [], tax_lines = [], tags = '', cancelled_at, closed_at, order_number, current_subtotal_price_set, current_total_price_set, current_total_tax_set, current_total_discounts_set, current_shipping_price_set, } = order || {};
395
+ const moneyFromSet = (setObj) => {
396
+ const shop = setObj === null || setObj === void 0 ? void 0 : setObj.shop_money;
397
+ return shop
398
+ ? { amount: shop.amount, currencyCode: shop.currency_code }
399
+ : { amount: 0, currencyCode: currency || '' };
400
+ };
401
+ const subtotalPrice = moneyFromSet(current_subtotal_price_set);
402
+ const totalPrice = moneyFromSet(current_total_price_set);
403
+ const totalTax = moneyFromSet(current_total_tax_set);
404
+ const totalShippingPrice = moneyFromSet(current_shipping_price_set);
405
+ const totalDiscount = current_total_discounts_set
406
+ ? moneyFromSet(current_total_discounts_set)
407
+ : { amount: 0, currencyCode: currency || '' };
408
+ const shippingAddress = shipping_address
409
+ ? {
410
+ address1: shipping_address.address1,
411
+ address2: shipping_address.address2,
412
+ city: shipping_address.city,
413
+ country: shipping_address.country,
414
+ countryCode: shipping_address.country_code,
415
+ province: shipping_address.province,
416
+ zip: shipping_address.zip,
417
+ }
418
+ : null;
419
+ const lineItems = (line_items || []).map((item) => ({
420
+ title: item.title,
421
+ quantity: item.quantity,
422
+ variant: {
423
+ id: '',
424
+ shopifyId: item.variant_id ? `gid://shopify/ProductVariant/${item.variant_id}` : '',
425
+ title: item.variant_title || '',
426
+ image: { id: '', originalSrc: '' },
427
+ },
428
+ shopifyProductId: item.product_id ? `gid://shopify/Product/${item.product_id}` : null,
429
+ originalTotalPrice: moneyFromSet(item.price_set),
430
+ discountedTotalPrice: moneyFromSet(item.total_discount_set),
431
+ }));
432
+ const discountApplications = discount_applications.map((item) => ({
433
+ allocationMethod: item.allocation_method ? String(item.allocation_method).toUpperCase() : '',
434
+ targetSelection: item.target_selection ? String(item.target_selection).toUpperCase() : '',
435
+ targetType: item.target_type ? String(item.target_type).toUpperCase() : '',
436
+ value: { amount: item.value },
437
+ }));
438
+ const taxLinesV3 = (tax_lines || []).map((item) => ({
439
+ rate: item.rate,
440
+ title: item.title,
441
+ priceSet: {
442
+ shopMoney: { amount: item.price, currencyCode: currency || '' },
443
+ presentmentMoney: { amount: item.price, currencyCode: currency || '' },
444
+ },
445
+ }));
446
+ const shippingLine = shipping_lines && shipping_lines.length
447
+ ? {
448
+ id: '',
449
+ title: shipping_lines[0].title,
450
+ source: shipping_lines[0].source,
451
+ discountedPrice: moneyFromSet(shipping_lines[0].discounted_price_set),
452
+ originalPrice: moneyFromSet(shipping_lines[0].price_set),
453
+ taxLines: (shipping_lines[0].tax_lines || []).map((t) => ({
454
+ rate: t.rate,
455
+ title: t.title,
456
+ priceSet: {
457
+ shopMoney: { amount: t.price, currencyCode: currency || '' },
458
+ presentmentMoney: { amount: t.price, currencyCode: currency || '' },
459
+ },
460
+ })),
461
+ }
462
+ : {
463
+ id: '',
464
+ title: '',
465
+ taxLines: [],
466
+ discountAllocations: [],
467
+ discountedPrice: { amount: 0 },
468
+ originalPrice: { amount: 0 },
469
+ source: '',
470
+ };
471
+ const fulfillments = ((order === null || order === void 0 ? void 0 : order.fulfillments) || []).map((item) => ({
472
+ id: item.id,
473
+ createdAt: item.created_at,
474
+ name: item.name,
475
+ updatedAt: item.updated_at || '',
476
+ status: item.status ? String(item.status).toUpperCase() : undefined,
477
+ trackingInfo: {
478
+ company: item.tracking_company || '',
479
+ number: item.tracking_numbers && item.tracking_numbers.length ? String(item.tracking_numbers[0]) : '',
480
+ url: item.tracking_urls && item.tracking_urls.length ? item.tracking_urls[0] : '',
481
+ },
482
+ fulfillmentLineItems: (item.line_items || []).map((lineItem) => ({
483
+ lineItem: { shopifyProductId: (lineItem === null || lineItem === void 0 ? void 0 : lineItem.product_id) || null },
484
+ quantity: Number(lineItem.quantity || 0),
485
+ })),
486
+ }));
487
+ const refunds = ((order === null || order === void 0 ? void 0 : order.refunds) || []).map((rawRefundItem) => {
488
+ const currencyCode = currency;
489
+ const refundedShippingAmount = !rawRefundItem.order_adjustments.length
490
+ ? 0
491
+ : rawRefundItem.order_adjustments.reduce((result, item) => {
492
+ if (item.kind === 'shipping_refund') {
493
+ result = result - Number(item.amount);
494
+ }
495
+ return result;
496
+ }, 0);
497
+ const totalRefundedAmount = !rawRefundItem.transactions.length
498
+ ? 0
499
+ : rawRefundItem.transactions.reduce((result, item) => {
500
+ if (item.kind === 'refund') {
501
+ result = result + Number(item.amount);
502
+ }
503
+ return result;
504
+ }, 0);
505
+ let refundDiscountAmount = 0;
506
+ const subtotalRefundedAmount = !rawRefundItem.refund_line_items.length
507
+ ? 0
508
+ : (rawRefundItem.refund_line_items || []).reduce((result, item) => {
509
+ if (item.line_item) {
510
+ const itemSubtotal = Number(Number(item.line_item.price || 0) * Number(item.quantity || 0));
511
+ result = result + itemSubtotal;
512
+ refundDiscountAmount = refundDiscountAmount + itemSubtotal - Number(item.subtotal || 0);
513
+ }
514
+ return result;
515
+ }, 0);
516
+ let refundLineItems = !rawRefundItem.refund_line_items || !rawRefundItem.refund_line_items.length
517
+ ? []
518
+ : (rawRefundItem.refund_line_items || []).map((item) => {
519
+ var _a, _b;
520
+ const quantityRefund = !item.location_id ? Number(item.quantity || 0) : 0;
521
+ const quantityCancel = item.location_id ? Number(item.quantity || 0) : 0;
522
+ const discountRefundAmount = Number(Number(((_a = item.line_item) === null || _a === void 0 ? void 0 : _a.price) || 0) * Number(item.quantity || 0)) -
523
+ Number(item.subtotal || 0);
524
+ const subtotalRefundAmount = !item.location_id ? Number(item.subtotal || 0) : 0;
525
+ const subtotalCanceledAmount = item.location_id ? Number(item.subtotal || 0) : 0;
526
+ return {
527
+ lineItem: { shopifyProductId: (((_b = item.line_item) === null || _b === void 0 ? void 0 : _b.product_id) || null) },
528
+ quantityRefund,
529
+ quantityCancel,
530
+ discountRefund: { currencyCode, amount: discountRefundAmount },
531
+ subtotalRefund: { currencyCode, amount: subtotalRefundAmount },
532
+ subtotalCanceled: { currencyCode, amount: subtotalCanceledAmount },
533
+ };
534
+ });
535
+ if (refundLineItems.length) {
536
+ refundLineItems = refundLineItems.reduce((result, item) => {
537
+ var _a, _b, _c, _d, _e, _f, _g;
538
+ const existedLineItemsIds = !result.length ? [] : result.map((itm) => itm.lineItem.shopifyProductId);
539
+ const existedLineItemIdx = existedLineItemsIds.indexOf((_a = item.lineItem) === null || _a === void 0 ? void 0 : _a.shopifyProductId);
540
+ if (existedLineItemIdx < 0) {
541
+ result.push(item);
542
+ }
543
+ else {
544
+ result[existedLineItemIdx] = {
545
+ lineItem: result[existedLineItemIdx].lineItem,
546
+ quantityRefund: Number(result[existedLineItemIdx].quantityRefund) + Number(item.quantityRefund),
547
+ quantityCancel: Number(result[existedLineItemIdx].quantityCancel) + Number(item.quantityCancel),
548
+ discountRefund: Object.assign(Object.assign({}, result[existedLineItemIdx].discountRefund), { amount: Number(((_b = result[existedLineItemIdx].discountRefund) === null || _b === void 0 ? void 0 : _b.amount) || 0) +
549
+ Number(((_c = item.discountRefund) === null || _c === void 0 ? void 0 : _c.amount) || 0) }),
550
+ subtotalRefund: Object.assign(Object.assign({}, result[existedLineItemIdx].subtotalRefund), { amount: Number(((_d = result[existedLineItemIdx].subtotalRefund) === null || _d === void 0 ? void 0 : _d.amount) || 0) +
551
+ Number(((_e = item.subtotalRefund) === null || _e === void 0 ? void 0 : _e.amount) || 0) }),
552
+ subtotalCanceled: Object.assign(Object.assign({}, result[existedLineItemIdx].subtotalCanceled), { amount: Number(((_f = result[existedLineItemIdx].subtotalCanceled) === null || _f === void 0 ? void 0 : _f.amount) || 0) +
553
+ Number(((_g = item.subtotalCanceled) === null || _g === void 0 ? void 0 : _g.amount) || 0) }),
554
+ };
555
+ }
556
+ return result;
557
+ }, []);
558
+ }
559
+ return {
560
+ documentId: String(rawRefundItem.id),
561
+ createdAt: rawRefundItem.created_at,
562
+ note: rawRefundItem.note,
563
+ totalRefunded: { amount: totalRefundedAmount, currencyCode },
564
+ totalRefundedPresentment: { amount: totalRefundedAmount, currencyCode },
565
+ subtotalRefunded: { amount: subtotalRefundedAmount, currencyCode },
566
+ refundDiscount: { amount: refundDiscountAmount, currencyCode },
567
+ refundShipping: { amount: refundedShippingAmount, currencyCode },
568
+ totalTax: { amount: 0, currencyCode },
569
+ refundLineItems,
570
+ };
571
+ });
572
+ const totalRefunded = {
573
+ currencyCode: currency,
574
+ amount: !refunds || !refunds.length
575
+ ? 0
576
+ : refunds.reduce((result, item) => {
577
+ result = result + Number(item.totalRefunded.amount);
578
+ return result;
579
+ }, 0),
580
+ };
581
+ // @ts-ignore
582
+ const fulfillmentStatus = !fulfillment_status ? '' : fulfillmentStatusRestMapping[fulfillment_status];
583
+ const rerobeOrder = new Order_1.default({
584
+ id: this.utilities.makeRandId(28),
585
+ documentId: this.utilities.makeRandId(28),
586
+ shopifyId: `gid://shopify/Order/${id}`,
587
+ shopifyOrderNumber: name ? Number(String(name).replace('#', '')) : order_number || 0,
588
+ name: name || '',
589
+ currencyCode: currency || '',
590
+ statusUrl: order_status_url || '',
591
+ email: contact_email || email || '',
592
+ financialStatus: financial_status ? String(financial_status).toUpperCase() : '',
593
+ fulfillmentStatus,
594
+ cancelReason: cancel_reason ? String(cancel_reason).toUpperCase() : '',
595
+ createdAt: created_at,
596
+ processedAt: processed_at,
597
+ updatedAt: updated_at,
598
+ canceledAt: cancelled_at,
599
+ closedAt: closed_at,
600
+ orderNumber: order_number || 0,
601
+ shippingAddress,
602
+ lineItems,
603
+ subtotalPrice,
604
+ totalPrice,
605
+ totalTax,
606
+ totalShippingPrice,
607
+ totalDiscount,
608
+ taxLines: taxLinesV3,
609
+ discountApplications,
610
+ fulfillments,
611
+ refunds,
612
+ totalRefunded,
613
+ shippingLine,
614
+ tags: tags ? String(tags).split(', ').filter(Boolean) : [],
615
+ state: Order_1.default.ORDER_STATES.completed,
616
+ shippingType: orderHelpers.getShippingTypeFromShopifyObj((shipping_lines || [])),
617
+ paymentType: order_constants_1.PAYMENT_TYPES.shopifyPayment,
618
+ salesChannel: order_constants_1.SALES_CHANNELS.shopify,
619
+ });
620
+ return rerobeOrder.toObj();
621
+ }
387
622
  }
388
623
  exports.default = OrderFromShopifyWebhook;
@@ -441,9 +441,6 @@ class ReRobeProductHelpers {
441
441
  if (status === product_constants_1.PRODUCT_STATES.soldSellerPayoutProcessing && !soldSellerPayoutProcessingTimestamp) {
442
442
  const timeNow = new Date().getTime();
443
443
  docFieldsToUpdate.soldSellerPayoutProcessingTimestamp = timeNow;
444
- if (!soldSellerSelfPayTimestamp) {
445
- docFieldsToUpdate.soldSellerSelfPayTimestamp = timeNow;
446
- }
447
444
  if (!soldTimestamp) {
448
445
  docFieldsToUpdate.soldTimestamp = timeNow;
449
446
  }
@@ -12,6 +12,7 @@ export default class Order extends Base {
12
12
  shoppingCredit: string;
13
13
  cash: string;
14
14
  mobilePayment: string;
15
+ shopifyPayment: string;
15
16
  };
16
17
  static ORDER_STATES: {
17
18
  draft: string;
@@ -23,6 +24,7 @@ export default class Order extends Base {
23
24
  store: string;
24
25
  onlineStore: string;
25
26
  thirdParty: string;
27
+ shopify: string;
26
28
  ahlens: string;
27
29
  ribbnMobilePOS: string;
28
30
  ribbnWebPOS: string;
@@ -119,6 +119,7 @@ type ReRobeOrderObj = {
119
119
  totalRefunded?: Money;
120
120
  totalShippingPrice?: Money;
121
121
  totalTax?: Money;
122
+ taxLines?: TaxLine[];
122
123
  taxTitle?: string;
123
124
  originalTotalPrice?: Money;
124
125
  cancelReason?: CancelReasonTypes | string | null;
@@ -381,6 +382,7 @@ type OrderLineItemAdmin = {
381
382
  };
382
383
  type ProductVariant = {
383
384
  id: string;
385
+ shopifyId?: string;
384
386
  title?: string;
385
387
  image?: Image;
386
388
  priceV2?: Money;
@@ -939,3 +941,843 @@ type OrderAdjustment = {
939
941
  }[];
940
942
  type?: 'SHIPPING_TYPE_ADJUSTMENT' | 'SHIPPING_ADDRESS_ADJUSTMENT' | 'CUSTOMER_DETAILS_ADJUSTMENT' | 'ADDITONAL_FEE';
941
943
  };
944
+ interface ShopifyOrdersCreatePayload {
945
+ admin_graphql_api_id: string;
946
+ app_id: number | null;
947
+ billing_address: {
948
+ address1: string;
949
+ address2: null | string;
950
+ city: string;
951
+ company: null | string;
952
+ country: string;
953
+ country_code: string;
954
+ first_name: string;
955
+ last_name: string;
956
+ latitude: null | number;
957
+ longitude: null | number;
958
+ name: string;
959
+ phone: string;
960
+ province: string;
961
+ province_code: string;
962
+ zip: string;
963
+ [k: string]: unknown;
964
+ };
965
+ browser_ip: null | string;
966
+ buyer_accepts_marketing: boolean;
967
+ cancel_reason: null | string;
968
+ cancelled_at: null | string;
969
+ cart_token: null | string;
970
+ checkout_id: number | null;
971
+ checkout_token: null | string;
972
+ client_details: null | {
973
+ accept_language: null | string;
974
+ browser_height: number | null;
975
+ browser_ip?: string;
976
+ browser_width?: number | null;
977
+ session_hash?: null;
978
+ user_agent?: string;
979
+ [k: string]: unknown;
980
+ };
981
+ closed_at: null | string;
982
+ confirmation_number: null | string;
983
+ confirmed: boolean;
984
+ contact_email: string;
985
+ created_at: string;
986
+ currency: string;
987
+ current_shipping_price_set: {
988
+ presentment_money: {
989
+ amount: string;
990
+ currency_code: string;
991
+ [k: string]: unknown;
992
+ };
993
+ shop_money: {
994
+ amount: string;
995
+ currency_code: string;
996
+ [k: string]: unknown;
997
+ };
998
+ [k: string]: unknown;
999
+ };
1000
+ current_subtotal_price: string;
1001
+ current_subtotal_price_set: {
1002
+ presentment_money: {
1003
+ amount: string;
1004
+ currency_code: string;
1005
+ [k: string]: unknown;
1006
+ };
1007
+ shop_money: {
1008
+ amount: string;
1009
+ currency_code: string;
1010
+ [k: string]: unknown;
1011
+ };
1012
+ [k: string]: unknown;
1013
+ };
1014
+ current_total_additional_fees_set: null | {
1015
+ presentment_money: {
1016
+ amount: string;
1017
+ currency_code: string;
1018
+ [k: string]: unknown;
1019
+ };
1020
+ shop_money: {
1021
+ amount: string;
1022
+ currency_code: string;
1023
+ [k: string]: unknown;
1024
+ };
1025
+ [k: string]: unknown;
1026
+ };
1027
+ current_total_discounts: string;
1028
+ current_total_discounts_set: {
1029
+ presentment_money: {
1030
+ amount: string;
1031
+ currency_code: string;
1032
+ [k: string]: unknown;
1033
+ };
1034
+ shop_money: {
1035
+ amount: string;
1036
+ currency_code: string;
1037
+ [k: string]: unknown;
1038
+ };
1039
+ [k: string]: unknown;
1040
+ };
1041
+ current_total_duties_set: null | {
1042
+ presentment_money: {
1043
+ amount: string;
1044
+ currency_code: string;
1045
+ [k: string]: unknown;
1046
+ };
1047
+ shop_money: {
1048
+ amount: string;
1049
+ currency_code: string;
1050
+ [k: string]: unknown;
1051
+ };
1052
+ [k: string]: unknown;
1053
+ };
1054
+ current_total_price: string;
1055
+ current_total_price_set: {
1056
+ presentment_money: {
1057
+ amount: string;
1058
+ currency_code: string;
1059
+ [k: string]: unknown;
1060
+ };
1061
+ shop_money: {
1062
+ amount: string;
1063
+ currency_code: string;
1064
+ [k: string]: unknown;
1065
+ };
1066
+ [k: string]: unknown;
1067
+ };
1068
+ current_total_tax: string;
1069
+ current_total_tax_set: {
1070
+ presentment_money: {
1071
+ amount: string;
1072
+ currency_code: string;
1073
+ [k: string]: unknown;
1074
+ };
1075
+ shop_money: {
1076
+ amount: string;
1077
+ currency_code: string;
1078
+ [k: string]: unknown;
1079
+ };
1080
+ [k: string]: unknown;
1081
+ };
1082
+ customer: {
1083
+ accepts_marketing?: boolean;
1084
+ accepts_marketing_updated_at?: null | string;
1085
+ admin_graphql_api_id: string;
1086
+ created_at: null | string;
1087
+ currency: string;
1088
+ default_address: {
1089
+ address1: string;
1090
+ address2: null | string;
1091
+ city: string;
1092
+ company: null | string;
1093
+ country: string;
1094
+ country_code: string;
1095
+ country_name: string;
1096
+ customer_id: number;
1097
+ default: boolean;
1098
+ first_name: string;
1099
+ id: number;
1100
+ last_name: string;
1101
+ name: string;
1102
+ phone: string;
1103
+ province: string;
1104
+ province_code: string;
1105
+ zip: string;
1106
+ [k: string]: unknown;
1107
+ };
1108
+ email: string;
1109
+ email_marketing_consent?: {
1110
+ consent_updated_at: null | string;
1111
+ opt_in_level: string;
1112
+ state: string;
1113
+ [k: string]: unknown;
1114
+ };
1115
+ first_name: string;
1116
+ id: number;
1117
+ last_name: string;
1118
+ marketing_opt_in_level?: string;
1119
+ multipass_identifier: null | string;
1120
+ note: null | string;
1121
+ phone: null | string;
1122
+ sms_marketing_consent?: null | {
1123
+ consent_collected_from: string;
1124
+ consent_updated_at: null | string;
1125
+ opt_in_level: string;
1126
+ state: string;
1127
+ [k: string]: unknown;
1128
+ };
1129
+ state: string;
1130
+ tags?: string;
1131
+ tax_exempt: boolean;
1132
+ tax_exemptions: never[];
1133
+ updated_at: null | string;
1134
+ verified_email: boolean;
1135
+ [k: string]: unknown;
1136
+ };
1137
+ customer_locale: null | string;
1138
+ device_id: null | string;
1139
+ discount_applications: {
1140
+ allocation_method: string;
1141
+ code?: string;
1142
+ description?: string;
1143
+ target_selection: string;
1144
+ target_type: string;
1145
+ title?: string;
1146
+ type: string;
1147
+ value: string;
1148
+ value_type: string;
1149
+ [k: string]: unknown;
1150
+ }[];
1151
+ discount_codes: {
1152
+ amount: string;
1153
+ code: string;
1154
+ type: string;
1155
+ [k: string]: unknown;
1156
+ }[];
1157
+ duties_included: boolean;
1158
+ email: string;
1159
+ estimated_taxes: boolean;
1160
+ financial_status: string;
1161
+ fulfillment_status: null | string;
1162
+ fulfillments: {
1163
+ admin_graphql_api_id: string;
1164
+ created_at: string;
1165
+ id: number;
1166
+ line_items: {
1167
+ admin_graphql_api_id: string;
1168
+ current_quantity?: number;
1169
+ discount_allocations: {
1170
+ amount: string;
1171
+ amount_set: {
1172
+ presentment_money: {
1173
+ amount: string;
1174
+ currency_code: string;
1175
+ [k: string]: unknown;
1176
+ };
1177
+ shop_money: {
1178
+ amount: string;
1179
+ currency_code: string;
1180
+ [k: string]: unknown;
1181
+ };
1182
+ [k: string]: unknown;
1183
+ };
1184
+ discount_application_index: number;
1185
+ [k: string]: unknown;
1186
+ }[];
1187
+ duties: never[];
1188
+ fulfillable_quantity: number;
1189
+ fulfillment_service: string;
1190
+ fulfillment_status: string;
1191
+ gift_card: boolean;
1192
+ grams: number;
1193
+ id: number;
1194
+ name: string;
1195
+ pre_tax_price?: string;
1196
+ pre_tax_price_set?: {
1197
+ presentment_money: {
1198
+ amount: string;
1199
+ currency_code: string;
1200
+ [k: string]: unknown;
1201
+ };
1202
+ shop_money: {
1203
+ amount: string;
1204
+ currency_code: string;
1205
+ [k: string]: unknown;
1206
+ };
1207
+ [k: string]: unknown;
1208
+ };
1209
+ price: string;
1210
+ price_set: {
1211
+ presentment_money: {
1212
+ amount: string;
1213
+ currency_code: string;
1214
+ [k: string]: unknown;
1215
+ };
1216
+ shop_money: {
1217
+ amount: string;
1218
+ currency_code: string;
1219
+ [k: string]: unknown;
1220
+ };
1221
+ [k: string]: unknown;
1222
+ };
1223
+ product_exists: boolean;
1224
+ product_id: number;
1225
+ properties: never[];
1226
+ quantity: number;
1227
+ requires_shipping: boolean;
1228
+ sku: string;
1229
+ tax_lines: {
1230
+ channel_liable: boolean;
1231
+ price: string;
1232
+ price_set: {
1233
+ presentment_money: {
1234
+ amount: string;
1235
+ currency_code: string;
1236
+ [k: string]: unknown;
1237
+ };
1238
+ shop_money: {
1239
+ amount: string;
1240
+ currency_code: string;
1241
+ [k: string]: unknown;
1242
+ };
1243
+ [k: string]: unknown;
1244
+ };
1245
+ rate: number;
1246
+ title: string;
1247
+ [k: string]: unknown;
1248
+ }[];
1249
+ taxable: boolean;
1250
+ title: string;
1251
+ total_discount: string;
1252
+ total_discount_set: {
1253
+ presentment_money: {
1254
+ amount: string;
1255
+ currency_code: string;
1256
+ [k: string]: unknown;
1257
+ };
1258
+ shop_money: {
1259
+ amount: string;
1260
+ currency_code: string;
1261
+ [k: string]: unknown;
1262
+ };
1263
+ [k: string]: unknown;
1264
+ };
1265
+ variant_id: number;
1266
+ variant_inventory_management: null | string;
1267
+ variant_title: null | string;
1268
+ vendor: string;
1269
+ [k: string]: unknown;
1270
+ }[];
1271
+ location_id: number;
1272
+ name: string;
1273
+ order_id: number;
1274
+ origin_address: {
1275
+ [k: string]: unknown;
1276
+ };
1277
+ receipt: {
1278
+ [k: string]: unknown;
1279
+ };
1280
+ service: string;
1281
+ shipment_status: null | string;
1282
+ status: string;
1283
+ tracking_company: null | string;
1284
+ tracking_number: null | string;
1285
+ tracking_numbers: string[];
1286
+ tracking_url: null | string;
1287
+ tracking_urls: string[];
1288
+ updated_at: string;
1289
+ [k: string]: unknown;
1290
+ }[];
1291
+ id: number;
1292
+ landing_site: null | string;
1293
+ landing_site_ref: null | string;
1294
+ line_items: {
1295
+ admin_graphql_api_id: string;
1296
+ attributed_staffs: {
1297
+ id: string;
1298
+ quantity: number;
1299
+ [k: string]: unknown;
1300
+ }[];
1301
+ current_quantity: number;
1302
+ discount_allocations: {
1303
+ amount: string;
1304
+ amount_set: {
1305
+ presentment_money: {
1306
+ amount: string;
1307
+ currency_code: string;
1308
+ [k: string]: unknown;
1309
+ };
1310
+ shop_money: {
1311
+ amount: string;
1312
+ currency_code: string;
1313
+ [k: string]: unknown;
1314
+ };
1315
+ [k: string]: unknown;
1316
+ };
1317
+ discount_application_index: number;
1318
+ [k: string]: unknown;
1319
+ }[];
1320
+ duties: never[];
1321
+ fulfillable_quantity: number;
1322
+ fulfillment_service: string;
1323
+ fulfillment_status: null | string;
1324
+ gift_card: boolean;
1325
+ grams: number;
1326
+ id: number;
1327
+ name: string;
1328
+ pre_tax_price?: string;
1329
+ pre_tax_price_set?: {
1330
+ presentment_money: {
1331
+ amount: string;
1332
+ currency_code: string;
1333
+ [k: string]: unknown;
1334
+ };
1335
+ shop_money: {
1336
+ amount: string;
1337
+ currency_code: string;
1338
+ [k: string]: unknown;
1339
+ };
1340
+ [k: string]: unknown;
1341
+ };
1342
+ price: string;
1343
+ price_set: {
1344
+ presentment_money: {
1345
+ amount: string;
1346
+ currency_code: string;
1347
+ [k: string]: unknown;
1348
+ };
1349
+ shop_money: {
1350
+ amount: string;
1351
+ currency_code: string;
1352
+ [k: string]: unknown;
1353
+ };
1354
+ [k: string]: unknown;
1355
+ };
1356
+ product_exists: boolean;
1357
+ product_id: number;
1358
+ properties: {
1359
+ name: string;
1360
+ value: string;
1361
+ [k: string]: unknown;
1362
+ }[];
1363
+ quantity: number;
1364
+ requires_shipping: boolean;
1365
+ sales_line_item_group_id?: number | null;
1366
+ sku: string;
1367
+ tax_lines: {
1368
+ channel_liable: boolean;
1369
+ price: string;
1370
+ price_set: {
1371
+ presentment_money: {
1372
+ amount: string;
1373
+ currency_code: string;
1374
+ [k: string]: unknown;
1375
+ };
1376
+ shop_money: {
1377
+ amount: string;
1378
+ currency_code: string;
1379
+ [k: string]: unknown;
1380
+ };
1381
+ [k: string]: unknown;
1382
+ };
1383
+ rate: number;
1384
+ title: string;
1385
+ [k: string]: unknown;
1386
+ }[];
1387
+ taxable: boolean;
1388
+ title: string;
1389
+ total_discount: string;
1390
+ total_discount_set: {
1391
+ presentment_money: {
1392
+ amount: string;
1393
+ currency_code: string;
1394
+ [k: string]: unknown;
1395
+ };
1396
+ shop_money: {
1397
+ amount: string;
1398
+ currency_code: string;
1399
+ [k: string]: unknown;
1400
+ };
1401
+ [k: string]: unknown;
1402
+ };
1403
+ variant_id: number | null;
1404
+ variant_inventory_management: null | string;
1405
+ variant_title: null | string;
1406
+ vendor: null | string;
1407
+ [k: string]: unknown;
1408
+ }[];
1409
+ location_id: number | null;
1410
+ merchant_business_entity_id: string;
1411
+ merchant_of_record_app_id: number | null;
1412
+ name: string;
1413
+ note: null | string;
1414
+ note_attributes: {
1415
+ name: string;
1416
+ value: string;
1417
+ [k: string]: unknown;
1418
+ }[];
1419
+ number: number;
1420
+ order_number: number;
1421
+ order_status_url: string;
1422
+ original_total_additional_fees_set: null | {
1423
+ presentment_money: {
1424
+ amount: string;
1425
+ currency_code: string;
1426
+ [k: string]: unknown;
1427
+ };
1428
+ shop_money: {
1429
+ amount: string;
1430
+ currency_code: string;
1431
+ [k: string]: unknown;
1432
+ };
1433
+ [k: string]: unknown;
1434
+ };
1435
+ original_total_duties_set: null | {
1436
+ presentment_money: {
1437
+ amount: string;
1438
+ currency_code: string;
1439
+ [k: string]: unknown;
1440
+ };
1441
+ shop_money: {
1442
+ amount: string;
1443
+ currency_code: string;
1444
+ [k: string]: unknown;
1445
+ };
1446
+ [k: string]: unknown;
1447
+ };
1448
+ payment_gateway_names: string[];
1449
+ payment_terms: null | string;
1450
+ phone: null | string;
1451
+ po_number: null | string;
1452
+ presentment_currency: string;
1453
+ processed_at: string;
1454
+ reference: null | string;
1455
+ referring_site: null | string;
1456
+ refunds: never[];
1457
+ returns: never[];
1458
+ shipping_address: {
1459
+ address1: string;
1460
+ address2: null | string;
1461
+ city: string;
1462
+ company: null | string;
1463
+ country: string;
1464
+ country_code: string;
1465
+ first_name: string;
1466
+ last_name: string;
1467
+ latitude: null | number;
1468
+ longitude: null | number;
1469
+ name: string;
1470
+ phone: string;
1471
+ province: string;
1472
+ province_code: string;
1473
+ zip: string;
1474
+ [k: string]: unknown;
1475
+ };
1476
+ shipping_lines: {
1477
+ carrier_identifier: null | string;
1478
+ code: null | string;
1479
+ current_discounted_price_set: {
1480
+ presentment_money: {
1481
+ amount: string;
1482
+ currency_code: string;
1483
+ [k: string]: unknown;
1484
+ };
1485
+ shop_money: {
1486
+ amount: string;
1487
+ currency_code: string;
1488
+ [k: string]: unknown;
1489
+ };
1490
+ [k: string]: unknown;
1491
+ };
1492
+ discount_allocations: never[];
1493
+ discounted_price: string;
1494
+ discounted_price_set: {
1495
+ presentment_money: {
1496
+ amount: string;
1497
+ currency_code: string;
1498
+ [k: string]: unknown;
1499
+ };
1500
+ shop_money: {
1501
+ amount: string;
1502
+ currency_code: string;
1503
+ [k: string]: unknown;
1504
+ };
1505
+ [k: string]: unknown;
1506
+ };
1507
+ id: number;
1508
+ is_removed: boolean;
1509
+ phone: null | string;
1510
+ price: string;
1511
+ price_set: {
1512
+ presentment_money: {
1513
+ amount: string;
1514
+ currency_code: string;
1515
+ [k: string]: unknown;
1516
+ };
1517
+ shop_money: {
1518
+ amount: string;
1519
+ currency_code: string;
1520
+ [k: string]: unknown;
1521
+ };
1522
+ [k: string]: unknown;
1523
+ };
1524
+ requested_fulfillment_service_id: null;
1525
+ source: null | string;
1526
+ tax_lines: {
1527
+ channel_liable: boolean;
1528
+ price: string;
1529
+ price_set: {
1530
+ presentment_money: {
1531
+ amount: string;
1532
+ currency_code: string;
1533
+ [k: string]: unknown;
1534
+ };
1535
+ shop_money: {
1536
+ amount: string;
1537
+ currency_code: string;
1538
+ [k: string]: unknown;
1539
+ };
1540
+ [k: string]: unknown;
1541
+ };
1542
+ rate: number;
1543
+ title: string;
1544
+ [k: string]: unknown;
1545
+ }[];
1546
+ title: string;
1547
+ [k: string]: unknown;
1548
+ }[];
1549
+ source_identifier: null | string;
1550
+ source_name: string;
1551
+ source_url: null | string;
1552
+ subtotal_price: string;
1553
+ subtotal_price_set: {
1554
+ presentment_money: {
1555
+ amount: string;
1556
+ currency_code: string;
1557
+ [k: string]: unknown;
1558
+ };
1559
+ shop_money: {
1560
+ amount: string;
1561
+ currency_code: string;
1562
+ [k: string]: unknown;
1563
+ };
1564
+ [k: string]: unknown;
1565
+ };
1566
+ tags: string;
1567
+ tax_exempt: boolean;
1568
+ tax_lines: {
1569
+ channel_liable: boolean;
1570
+ price: string;
1571
+ price_set: {
1572
+ presentment_money: {
1573
+ amount: string;
1574
+ currency_code: string;
1575
+ [k: string]: unknown;
1576
+ };
1577
+ shop_money: {
1578
+ amount: string;
1579
+ currency_code: string;
1580
+ [k: string]: unknown;
1581
+ };
1582
+ [k: string]: unknown;
1583
+ };
1584
+ rate: number;
1585
+ title: string;
1586
+ [k: string]: unknown;
1587
+ }[];
1588
+ taxes_included: boolean;
1589
+ test: boolean;
1590
+ token: string;
1591
+ total_cash_rounding_payment_adjustment_set: {
1592
+ presentment_money: {
1593
+ amount: string;
1594
+ currency_code: string;
1595
+ [k: string]: unknown;
1596
+ };
1597
+ shop_money: {
1598
+ amount: string;
1599
+ currency_code: string;
1600
+ [k: string]: unknown;
1601
+ };
1602
+ [k: string]: unknown;
1603
+ };
1604
+ total_cash_rounding_refund_adjustment_set: {
1605
+ presentment_money: {
1606
+ amount: string;
1607
+ currency_code: string;
1608
+ [k: string]: unknown;
1609
+ };
1610
+ shop_money: {
1611
+ amount: string;
1612
+ currency_code: string;
1613
+ [k: string]: unknown;
1614
+ };
1615
+ [k: string]: unknown;
1616
+ };
1617
+ total_discounts: string;
1618
+ total_discounts_set: {
1619
+ presentment_money: {
1620
+ amount: string;
1621
+ currency_code: string;
1622
+ [k: string]: unknown;
1623
+ };
1624
+ shop_money: {
1625
+ amount: string;
1626
+ currency_code: string;
1627
+ [k: string]: unknown;
1628
+ };
1629
+ [k: string]: unknown;
1630
+ };
1631
+ total_line_items_price: string;
1632
+ total_line_items_price_set: {
1633
+ presentment_money: {
1634
+ amount: string;
1635
+ currency_code: string;
1636
+ [k: string]: unknown;
1637
+ };
1638
+ shop_money: {
1639
+ amount: string;
1640
+ currency_code: string;
1641
+ [k: string]: unknown;
1642
+ };
1643
+ [k: string]: unknown;
1644
+ };
1645
+ total_outstanding: string;
1646
+ total_price: string;
1647
+ total_price_set: {
1648
+ presentment_money: {
1649
+ amount: string;
1650
+ currency_code: string;
1651
+ [k: string]: unknown;
1652
+ };
1653
+ shop_money: {
1654
+ amount: string;
1655
+ currency_code: string;
1656
+ [k: string]: unknown;
1657
+ };
1658
+ [k: string]: unknown;
1659
+ };
1660
+ total_shipping_price_set: {
1661
+ presentment_money: {
1662
+ amount: string;
1663
+ currency_code: string;
1664
+ [k: string]: unknown;
1665
+ };
1666
+ shop_money: {
1667
+ amount: string;
1668
+ currency_code: string;
1669
+ [k: string]: unknown;
1670
+ };
1671
+ [k: string]: unknown;
1672
+ };
1673
+ total_tax: string;
1674
+ total_tax_set: {
1675
+ presentment_money: {
1676
+ amount: string;
1677
+ currency_code: string;
1678
+ [k: string]: unknown;
1679
+ };
1680
+ shop_money: {
1681
+ amount: string;
1682
+ currency_code: string;
1683
+ [k: string]: unknown;
1684
+ };
1685
+ [k: string]: unknown;
1686
+ };
1687
+ total_tip_received: string;
1688
+ total_weight: number;
1689
+ updated_at: string;
1690
+ user_id: number | null;
1691
+ [k: string]: unknown;
1692
+ }
1693
+ type ShopifyOrdersCreateLineItem = {
1694
+ title: string;
1695
+ quantity: number;
1696
+ variant_id?: string | number | null;
1697
+ variant_title?: string | null;
1698
+ product_id?: string | number | null;
1699
+ price_set?: MoneyBagRest;
1700
+ total_discount_set?: MoneyBagRest;
1701
+ };
1702
+ type ShopifyOrdersCreateTaxLine = {
1703
+ rate: number;
1704
+ title: string;
1705
+ price: string | number;
1706
+ };
1707
+ type ShopifyOrdersCreateFulfillment = {
1708
+ id: string | number;
1709
+ created_at: string;
1710
+ updated_at?: string;
1711
+ name: string;
1712
+ status?: string | null;
1713
+ tracking_company?: string | null;
1714
+ tracking_numbers?: (string | number)[];
1715
+ tracking_urls?: string[];
1716
+ line_items?: ShopifyOrdersCreateLineItem[];
1717
+ };
1718
+ type ShopifyOrdersCreateShippingLine = {
1719
+ title: string;
1720
+ source?: string | null;
1721
+ price_set?: MoneyBagRest;
1722
+ discounted_price_set?: MoneyBagRest;
1723
+ tax_lines?: ShopifyOrdersCreateTaxLine[];
1724
+ };
1725
+ type ShopifyOrdersCreateRefundLineItem = {
1726
+ line_item?: {
1727
+ price?: string | number;
1728
+ product_id?: string | number;
1729
+ };
1730
+ quantity: number;
1731
+ location_id?: string | number | null;
1732
+ subtotal?: string | number;
1733
+ };
1734
+ type ShopifyOrdersCreateRefund = {
1735
+ id: string | number;
1736
+ created_at?: string;
1737
+ note?: string;
1738
+ order_adjustments: any[];
1739
+ transactions: any[];
1740
+ refund_line_items: ShopifyOrdersCreateRefundLineItem[];
1741
+ };
1742
+ type GadgetRefundLineItem = {
1743
+ line_item?: {
1744
+ price?: string | number;
1745
+ product_id?: string | number;
1746
+ };
1747
+ quantity: number;
1748
+ location_id?: string | number | null;
1749
+ subtotal?: string | number;
1750
+ };
1751
+ type GadgetRefund = {
1752
+ id: string | number;
1753
+ created_at?: string;
1754
+ note?: string;
1755
+ order_adjustments: any[];
1756
+ transactions: any[];
1757
+ refund_line_items: GadgetRefundLineItem[];
1758
+ };
1759
+ type GadgetLineItem = {
1760
+ title: string;
1761
+ quantity: number;
1762
+ variant_id?: string | number | null;
1763
+ variant_title?: string;
1764
+ product_id?: string | number | null;
1765
+ price_set?: MoneyBagRest;
1766
+ total_discount_set?: MoneyBagRest;
1767
+ };
1768
+ type GadgetTaxLine = {
1769
+ price: string | number;
1770
+ rate: number;
1771
+ title: string;
1772
+ };
1773
+ type GadgetFulfillment = {
1774
+ id: string | number;
1775
+ created_at: string;
1776
+ updated_at?: string;
1777
+ name: string;
1778
+ status?: string;
1779
+ tracking_company?: string;
1780
+ tracking_numbers?: (string | number)[];
1781
+ tracking_urls?: string[];
1782
+ line_items?: GadgetLineItem[];
1783
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "4.5.6",
3
+ "version": "4.5.8",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",