rerobe-js-orm 4.4.5 → 4.4.6

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.
@@ -42,3 +42,10 @@ export namespace FINANCIAL_TYPES {
42
42
  const partiallyRefunded: string;
43
43
  const authorized: string;
44
44
  }
45
+ export namespace RETURN_POLICY_TYPES {
46
+ const inStore: string;
47
+ const online: string;
48
+ }
49
+ export const SALES_CHANNEL_TO_RETURN_POLICY_MAPPING: {
50
+ [x: string]: string;
51
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FINANCIAL_TYPES = exports.FULFILLMENT_TYPES = exports.SALES_CHANNELS = exports.ORDER_STATES = exports.PAYMENT_TYPES = exports.SHIPPING_TYPES = void 0;
3
+ exports.SALES_CHANNEL_TO_RETURN_POLICY_MAPPING = exports.RETURN_POLICY_TYPES = exports.FINANCIAL_TYPES = exports.FULFILLMENT_TYPES = exports.SALES_CHANNELS = exports.ORDER_STATES = exports.PAYMENT_TYPES = exports.SHIPPING_TYPES = void 0;
4
4
  exports.SHIPPING_TYPES = {
5
5
  localPickUp: 'LOCAL_PICK_UP',
6
6
  localDelivery: 'LOCAL_DELIVERY',
@@ -45,3 +45,19 @@ exports.FINANCIAL_TYPES = {
45
45
  partiallyRefunded: 'PARTIALLY_REFUNDED',
46
46
  authorized: 'AUTHORIZED',
47
47
  };
48
+ exports.RETURN_POLICY_TYPES = {
49
+ inStore: 'IN_STORE',
50
+ online: 'ONLINE',
51
+ };
52
+ exports.SALES_CHANNEL_TO_RETURN_POLICY_MAPPING = {
53
+ [exports.SALES_CHANNELS.mobileApp]: exports.RETURN_POLICY_TYPES.online,
54
+ [exports.SALES_CHANNELS.webApp]: exports.RETURN_POLICY_TYPES.inStore,
55
+ [exports.SALES_CHANNELS.store]: exports.RETURN_POLICY_TYPES.inStore,
56
+ [exports.SALES_CHANNELS.onlineStore]: exports.RETURN_POLICY_TYPES.online,
57
+ [exports.SALES_CHANNELS.thirdParty]: exports.RETURN_POLICY_TYPES.inStore,
58
+ [exports.SALES_CHANNELS.ahlens]: exports.RETURN_POLICY_TYPES.inStore,
59
+ [exports.SALES_CHANNELS.ribbnMobilePOS]: exports.RETURN_POLICY_TYPES.inStore,
60
+ [exports.SALES_CHANNELS.ribbnWebPOS]: exports.RETURN_POLICY_TYPES.inStore,
61
+ [exports.SALES_CHANNELS.ribbnSellThroughChannelPartner]: exports.RETURN_POLICY_TYPES.inStore,
62
+ [exports.SALES_CHANNELS.ribbnSellOnChannelPartner]: exports.RETURN_POLICY_TYPES.inStore,
63
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "4.4.5",
3
+ "version": "4.4.6",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",