@use-stall/types 0.7.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 +1 -1
- package/src/orders.d.ts +3 -4
package/package.json
CHANGED
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:
|
|
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:
|
|
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:
|
|
150
|
+
payments: string[]; // id(s) of the payments
|
|
152
151
|
staff_id: string;
|
|
153
152
|
device_id: string;
|
|
154
153
|
location_id: string;
|