rerobe-js-orm 4.3.1 → 4.3.2

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.
@@ -92,6 +92,7 @@ export default class Merchant extends Base {
92
92
  hasActiveWebshop?: boolean;
93
93
  stripeSubscription?: StripeSubscription;
94
94
  subscriptionStatus?: string;
95
+ channelPartners?: string[];
95
96
  constructor(props?: any);
96
97
  toObj(): MerchantObj;
97
98
  toMerchantMutableData(): MerchantMutableData;
@@ -52,6 +52,9 @@ class Merchant extends Base_1.default {
52
52
  this.returnPolicy = (props === null || props === void 0 ? void 0 : props.returnPolicy) || '';
53
53
  this.subscriptionStatus = (props === null || props === void 0 ? void 0 : props.subscriptionStatus) || merchant_constants_1.SUBSCRIPTION_STATUSES.trialing;
54
54
  this.hasActiveWebshop = (props === null || props === void 0 ? void 0 : props.hasActiveWebshop) || false;
55
+ if ((props === null || props === void 0 ? void 0 : props.channelPartners) && Array.isArray(props.channelPartners)) {
56
+ this.channelPartners = props.channelPartners;
57
+ }
55
58
  if (props === null || props === void 0 ? void 0 : props.isChannelPartner) {
56
59
  this.isChannelPartner = props.isChannelPartner;
57
60
  }
@@ -108,6 +111,9 @@ class Merchant extends Base_1.default {
108
111
  subscriptionStatus: this.subscriptionStatus,
109
112
  hasActiveWebshop: this.hasActiveWebshop,
110
113
  };
114
+ if (this.channelPartners && Array.isArray(this.channelPartners)) {
115
+ mObj.channelPartners = this.channelPartners;
116
+ }
111
117
  if (this.isChannelPartner) {
112
118
  mObj.isChannelPartner = this.isChannelPartner;
113
119
  }
@@ -47,6 +47,7 @@ type MerchantSystemOnlyMutableData = {
47
47
  hasReceiptPrinter?: boolean;
48
48
  hasActiveWebshop?: boolean;
49
49
  subscriptionStatus?: string;
50
+ channelPartners?: string[];
50
51
  };
51
52
  type MerchantObj = MerchantMutableData & MerchantSystemOnlyMutableData;
52
53
  type MerchantTypes = 'INDIVIDUAL' | 'BUSINESS';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",