@use-stall/types 0.6.0 → 0.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-stall/types",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Type declarations for Stall SDKs",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
@@ -49,6 +49,8 @@ export interface FrontendFulfillmentMethodType {
49
49
  external_id: string;
50
50
  name: string;
51
51
  type: UnifiedFulfillmentMethods;
52
+ offline_support: boolean;
53
+ instant_clear: boolean; // whether it's fulfilled instantly in-house, like pickup, vs. a courier
52
54
  }
53
55
 
54
56
  export type UnifiedFulfillmentStatus =
package/src/orders.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { UnifiedCustomerAddressType } from "./customers";
2
2
  import type {
3
3
  UnifiedFulfillmentStatus,
4
- UnifiedFulfillmentType,
5
4
  } from "./fulfillment";
6
5
  import type { UnifiedPaymentCollectionType } from "./payments";
7
6
 
@@ -46,7 +45,7 @@ export interface UnifiedOrderType {
46
45
  discounts: UnifiedDiscountType[];
47
46
  fulfillment: {
48
47
  status: UnifiedFulfillmentStatus;
49
- fulfillments: UnifiedFulfillmentType;
48
+ fulfillments: string[];// id(s) of the fulfillments
50
49
  };
51
50
  refunds: {
52
51
  id: string;
@@ -108,7 +107,7 @@ export interface UnifiedOrderPaymentDetailsType {
108
107
  currency: string;
109
108
  date: number; // Timestamp in milliseconds
110
109
  timestamp: string; // ISO string format
111
- payments: UnifiedPaymentCollectionType[];
110
+ payments: string[]; // id(s) of the payments
112
111
  status: "pending" | "processing" | "paid" | "partially_paid";
113
112
  metadata?: Record<string, any>;
114
113
  }
@@ -148,7 +147,7 @@ export interface UnifiedOrderRefundType {
148
147
  name: string;
149
148
  cost_per_item: number;
150
149
  }[];
151
- payments: UnifiedPaymentCollectionType[];
150
+ payments: string[]; // id(s) of the payments
152
151
  staff_id: string;
153
152
  device_id: string;
154
153
  location_id: string;