rerobe-js-orm 4.3.1 → 4.3.3
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.
|
@@ -296,3 +296,14 @@ export namespace PUBLISH_TYPE {
|
|
|
296
296
|
const USER_PUBLISHED: string;
|
|
297
297
|
const MERCHANT_PUBLISHED: string;
|
|
298
298
|
}
|
|
299
|
+
export namespace PAYOUT_METHOD {
|
|
300
|
+
const CASH: string;
|
|
301
|
+
const STORE_CREDIT: string;
|
|
302
|
+
const RIBBN_CREDITS: string;
|
|
303
|
+
}
|
|
304
|
+
export namespace PAYOUT_SYSTEM {
|
|
305
|
+
export const STRIPE: string;
|
|
306
|
+
export const MANUAL_TRANSFER: string;
|
|
307
|
+
const RIBBN_CREDITS_1: string;
|
|
308
|
+
export { RIBBN_CREDITS_1 as RIBBN_CREDITS };
|
|
309
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PUBLISH_TYPE = exports.MEASUREMENT_FIELDS_DICT = exports.MEASUREMENT_CATEGORY = exports.PRODUCT_STATE_LABELS_ADMIN_VIEW = exports.PRODUCT_STATE_LABELS = exports.PRODUCT_STATES = exports.SYSTEM_DRIVEN_STATES = exports.ADMIN_SIMPLIFIED_STATES = exports.ADMIN_ACTION_DRIVEN_STATES = exports.ADMIN_DRIVEN_STATES = exports.SELLER_DRIVEN_STATES = void 0;
|
|
3
|
+
exports.PAYOUT_SYSTEM = exports.PAYOUT_METHOD = exports.PUBLISH_TYPE = exports.MEASUREMENT_FIELDS_DICT = exports.MEASUREMENT_CATEGORY = exports.PRODUCT_STATE_LABELS_ADMIN_VIEW = exports.PRODUCT_STATE_LABELS = exports.PRODUCT_STATES = exports.SYSTEM_DRIVEN_STATES = exports.ADMIN_SIMPLIFIED_STATES = exports.ADMIN_ACTION_DRIVEN_STATES = exports.ADMIN_DRIVEN_STATES = exports.SELLER_DRIVEN_STATES = void 0;
|
|
4
4
|
exports.SELLER_DRIVEN_STATES = {
|
|
5
5
|
archived: 'ARCHIVED',
|
|
6
6
|
sellerDonated: 'SELLER_DONATED',
|
|
@@ -111,9 +111,9 @@ exports.PRODUCT_STATE_LABELS = {
|
|
|
111
111
|
availableInStore: 'Listed for sale in store',
|
|
112
112
|
sellerDonated: 'Donated by you',
|
|
113
113
|
merchantDonated: 'Donated by merchant',
|
|
114
|
-
soldSellerSelfPay: 'Sold
|
|
115
|
-
soldSellerPayoutProcessing: 'Sold
|
|
116
|
-
soldSellerPayoutFailed: 'Sold
|
|
114
|
+
soldSellerSelfPay: 'Sold-awaiting self payout',
|
|
115
|
+
soldSellerPayoutProcessing: 'Sold-payout processing',
|
|
116
|
+
soldSellerPayoutFailed: 'Sold-payout failed',
|
|
117
117
|
};
|
|
118
118
|
exports.PRODUCT_STATE_LABELS_ADMIN_VIEW = {
|
|
119
119
|
archived: 'Saved for later',
|
|
@@ -145,7 +145,7 @@ exports.PRODUCT_STATE_LABELS_ADMIN_VIEW = {
|
|
|
145
145
|
availableInStore: 'Listed for sale in store',
|
|
146
146
|
sellerDonated: 'Donated by seller',
|
|
147
147
|
merchantDonated: 'Donated by merchant',
|
|
148
|
-
soldSellerSelfPay: 'Sold—seller self payout
|
|
148
|
+
soldSellerSelfPay: 'Sold—awaiting seller self payout',
|
|
149
149
|
soldSellerPayoutProcessing: 'Sold—seller payout processing',
|
|
150
150
|
soldSellerPayoutFailed: 'Sold—seller payout failed',
|
|
151
151
|
};
|
|
@@ -200,3 +200,13 @@ exports.PUBLISH_TYPE = {
|
|
|
200
200
|
USER_PUBLISHED: 'USER_PUBLISHED',
|
|
201
201
|
MERCHANT_PUBLISHED: 'MERCHANT_PUBLISHED',
|
|
202
202
|
};
|
|
203
|
+
exports.PAYOUT_METHOD = {
|
|
204
|
+
CASH: 'CASH',
|
|
205
|
+
STORE_CREDIT: 'STORE_CREDIT',
|
|
206
|
+
RIBBN_CREDITS: 'RIBBN_CREDITS',
|
|
207
|
+
};
|
|
208
|
+
exports.PAYOUT_SYSTEM = {
|
|
209
|
+
STRIPE: 'STRIPE',
|
|
210
|
+
MANUAL_TRANSFER: 'MANUAL_TRANSFER',
|
|
211
|
+
RIBBN_CREDITS: 'RIBBN_CREDITS',
|
|
212
|
+
};
|
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
|
}
|
|
@@ -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';
|