shopoflex-types 1.0.69 → 1.0.71
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 +6 -2
- 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,16 @@ 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' | 'whish' | 'paypal' | 'gift_card';
|
|
500
|
+
}
|
|
501
|
+
export type PaymentMethodType = PaymentMethod['type'];
|
|
498
502
|
export interface SelectionsState {
|
|
499
503
|
address?: Address;
|
|
500
504
|
branch?: IBranch;
|
|
501
505
|
orderType?: "delivery" | "pickup" | "dinein";
|
|
502
506
|
deliveryType?: "delivery" | "pickup" | "dineIn";
|
|
503
|
-
paymentMethod?:
|
|
507
|
+
paymentMethod?: PaymentMethodType;
|
|
504
508
|
promoCode?: string;
|
|
505
509
|
shippingMethod?: string;
|
|
506
510
|
time?: number;
|