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.
Files changed (2) hide show
  1. package/dist/common.d.ts +6 -2
  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?: string;
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?: "cash_on_delivery" | "card_on_delivery" | "wallet" | "credit_card";
507
+ paymentMethod?: PaymentMethodType;
504
508
  promoCode?: string;
505
509
  shippingMethod?: string;
506
510
  time?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",