shopoflex-types 1.0.68 → 1.0.70
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/dist/common.d.ts +20 -2
- package/dist/common.js +15 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -292,10 +292,13 @@ export interface Shipping {
|
|
|
292
292
|
}
|
|
293
293
|
export interface OrderType {
|
|
294
294
|
_id?: string | any;
|
|
295
|
+
orderType: 'instore' | 'pickup' | 'delivery';
|
|
296
|
+
source: 'pos' | 'online';
|
|
297
|
+
tableNumber?: number;
|
|
295
298
|
customer?: Customer;
|
|
296
299
|
vendorId?: string;
|
|
297
300
|
cart?: Cart;
|
|
298
|
-
paymentMethod?:
|
|
301
|
+
paymentMethod?: PaymentMethodType;
|
|
299
302
|
address?: Address;
|
|
300
303
|
status?: OrderStatus;
|
|
301
304
|
paid?: boolean;
|
|
@@ -492,12 +495,27 @@ export interface NotificationType {
|
|
|
492
495
|
createdAt?: Date;
|
|
493
496
|
updatedAt?: Date;
|
|
494
497
|
}
|
|
498
|
+
export interface PaymentMethod {
|
|
499
|
+
type: 'cash' | 'card' | 'knet' | 'bank_transfer' | 'wallet' | 'external_link' | 'crypto' | 'wish' | 'paypal' | 'gift_card';
|
|
500
|
+
}
|
|
501
|
+
export declare enum PaymentMethodType {
|
|
502
|
+
CASH = "cash",
|
|
503
|
+
CARD = "card",
|
|
504
|
+
KNET = "knet",
|
|
505
|
+
BANK_TRANSFER = "bank_transfer",
|
|
506
|
+
WALLET = "wallet",
|
|
507
|
+
EXTERNAL_LINK = "external_link",
|
|
508
|
+
CRYPTO = "crypto",
|
|
509
|
+
WISH = "wish",
|
|
510
|
+
PAYPAL = "paypal",
|
|
511
|
+
GIFT_CARD = "gift_card"
|
|
512
|
+
}
|
|
495
513
|
export interface SelectionsState {
|
|
496
514
|
address?: Address;
|
|
497
515
|
branch?: IBranch;
|
|
498
516
|
orderType?: "delivery" | "pickup" | "dinein";
|
|
499
517
|
deliveryType?: "delivery" | "pickup" | "dineIn";
|
|
500
|
-
paymentMethod?:
|
|
518
|
+
paymentMethod?: PaymentMethodType;
|
|
501
519
|
promoCode?: string;
|
|
502
520
|
shippingMethod?: string;
|
|
503
521
|
time?: number;
|
package/dist/common.js
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethodType = void 0;
|
|
4
|
+
// Basic enum for ecommerce
|
|
5
|
+
var PaymentMethodType;
|
|
6
|
+
(function (PaymentMethodType) {
|
|
7
|
+
PaymentMethodType["CASH"] = "cash";
|
|
8
|
+
PaymentMethodType["CARD"] = "card";
|
|
9
|
+
PaymentMethodType["KNET"] = "knet";
|
|
10
|
+
PaymentMethodType["BANK_TRANSFER"] = "bank_transfer";
|
|
11
|
+
PaymentMethodType["WALLET"] = "wallet";
|
|
12
|
+
PaymentMethodType["EXTERNAL_LINK"] = "external_link";
|
|
13
|
+
PaymentMethodType["CRYPTO"] = "crypto";
|
|
14
|
+
PaymentMethodType["WISH"] = "wish";
|
|
15
|
+
PaymentMethodType["PAYPAL"] = "paypal";
|
|
16
|
+
PaymentMethodType["GIFT_CARD"] = "gift_card";
|
|
17
|
+
})(PaymentMethodType || (exports.PaymentMethodType = PaymentMethodType = {}));
|