rerobe-js-orm 4.3.0 → 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.
package/lib/models/Merchant.d.ts
CHANGED
|
@@ -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;
|
package/lib/models/Merchant.js
CHANGED
|
@@ -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
|
}
|
package/lib/models/Product.d.ts
CHANGED
|
@@ -27,12 +27,22 @@ export default class Product extends Base {
|
|
|
27
27
|
standardSize: string;
|
|
28
28
|
internationalSize: string;
|
|
29
29
|
materialComposition: MaterialComposition;
|
|
30
|
+
status: string;
|
|
31
|
+
compareAtPrice: string | undefined;
|
|
32
|
+
costPerItem: string | undefined;
|
|
33
|
+
purchasePrice: string;
|
|
34
|
+
suggestedResalePrice: string;
|
|
30
35
|
salePrice: string;
|
|
31
36
|
isOnSale: string;
|
|
32
37
|
discountType: string;
|
|
33
38
|
discountValue: string;
|
|
34
39
|
selectedForClearance: string;
|
|
35
|
-
|
|
40
|
+
priceRange: string;
|
|
41
|
+
clearanceTimestamp: number | null;
|
|
42
|
+
soldTimestamp: number | null;
|
|
43
|
+
soldSellerPaidTimestamp: number | null;
|
|
44
|
+
soldSellerToBePaidTimestamp: number | null;
|
|
45
|
+
isTaxable: string | undefined;
|
|
36
46
|
};
|
|
37
47
|
updateSelfFromTranslatedTextArray(translatedTextArray?: string[]): void;
|
|
38
48
|
autoCreateTitle(): string;
|
package/lib/models/Product.js
CHANGED
|
@@ -428,12 +428,22 @@ class Product extends Base_1.default {
|
|
|
428
428
|
standardSize: this.filterAttributes.standardSize,
|
|
429
429
|
internationalSize: this.filterAttributes.internationalSize,
|
|
430
430
|
materialComposition: this.filterAttributes.materialComposition,
|
|
431
|
+
status: this.consignmentAttributes.status,
|
|
432
|
+
compareAtPrice: this.attributes.compareAtPrice,
|
|
433
|
+
costPerItem: this.attributes.costPerItem,
|
|
434
|
+
purchasePrice: this.consignmentAttributes.purchasePrice,
|
|
435
|
+
suggestedResalePrice: this.consignmentAttributes.suggestedResalePrice,
|
|
431
436
|
salePrice: this.consignmentAttributes.salePrice,
|
|
432
437
|
isOnSale: this.consignmentAttributes.isOnSale,
|
|
433
438
|
discountType: this.consignmentAttributes.discountType,
|
|
434
439
|
discountValue: this.consignmentAttributes.discountValue,
|
|
435
440
|
selectedForClearance: this.consignmentAttributes.selectedForClearance,
|
|
436
|
-
|
|
441
|
+
priceRange: this.filterAttributes.priceRange,
|
|
442
|
+
clearanceTimestamp: this.timestampAttributes.clearanceTimestamp,
|
|
443
|
+
soldTimestamp: this.timestampAttributes.soldTimestamp,
|
|
444
|
+
soldSellerPaidTimestamp: this.timestampAttributes.soldSellerPaidTimestamp,
|
|
445
|
+
soldSellerToBePaidTimestamp: this.timestampAttributes.soldSellerToBePaidTimestamp,
|
|
446
|
+
isTaxable: this.attributes.isTaxable,
|
|
437
447
|
};
|
|
438
448
|
}
|
|
439
449
|
updateSelfFromTranslatedTextArray(translatedTextArray = []) {
|
|
@@ -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';
|