shopoflex-types 1.0.69 → 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 +17 -2
- package/dist/common.js +15 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -298,7 +298,7 @@ export interface OrderType {
|
|
|
298
298
|
customer?: Customer;
|
|
299
299
|
vendorId?: string;
|
|
300
300
|
cart?: Cart;
|
|
301
|
-
paymentMethod?:
|
|
301
|
+
paymentMethod?: PaymentMethodType;
|
|
302
302
|
address?: Address;
|
|
303
303
|
status?: OrderStatus;
|
|
304
304
|
paid?: boolean;
|
|
@@ -495,12 +495,27 @@ export interface NotificationType {
|
|
|
495
495
|
createdAt?: Date;
|
|
496
496
|
updatedAt?: Date;
|
|
497
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
|
+
}
|
|
498
513
|
export interface SelectionsState {
|
|
499
514
|
address?: Address;
|
|
500
515
|
branch?: IBranch;
|
|
501
516
|
orderType?: "delivery" | "pickup" | "dinein";
|
|
502
517
|
deliveryType?: "delivery" | "pickup" | "dineIn";
|
|
503
|
-
paymentMethod?:
|
|
518
|
+
paymentMethod?: PaymentMethodType;
|
|
504
519
|
promoCode?: string;
|
|
505
520
|
shippingMethod?: string;
|
|
506
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 = {}));
|