@use-stall/types 0.2.10 → 0.2.11
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 +14 -6
- package/src/payments.d.ts +14 -0
package/package.json
CHANGED
package/src/orders.d.ts
CHANGED
|
@@ -134,7 +134,13 @@ export interface UnifiedOrderRefundType {
|
|
|
134
134
|
status: "pending" | "processing" | "completed" | "cancelled" | "failed";
|
|
135
135
|
restock: boolean;
|
|
136
136
|
refund_type: "amount" | "line_items";
|
|
137
|
-
metadata:
|
|
137
|
+
metadata: {
|
|
138
|
+
stall_offline_id: string;
|
|
139
|
+
stall_offline_created_at: string;
|
|
140
|
+
stall_offline_updated_at: string;
|
|
141
|
+
stall_offline_deleted_at: string;
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
};
|
|
138
144
|
line_items: {
|
|
139
145
|
id: string;
|
|
140
146
|
quantity: number;
|
|
@@ -146,10 +152,6 @@ export interface UnifiedOrderRefundType {
|
|
|
146
152
|
device_id: string;
|
|
147
153
|
location_id: string;
|
|
148
154
|
organization_id: string;
|
|
149
|
-
stall_offline_id: string;
|
|
150
|
-
stall_offline_created_at: string;
|
|
151
|
-
stall_offline_updated_at: string;
|
|
152
|
-
stall_offline_deleted_at: string;
|
|
153
155
|
}
|
|
154
156
|
|
|
155
157
|
export interface UnifiedOrderNote {
|
|
@@ -161,5 +163,11 @@ export interface UnifiedOrderNote {
|
|
|
161
163
|
created_by: string;
|
|
162
164
|
created_at: string;
|
|
163
165
|
updated_at: string;
|
|
164
|
-
metadata:
|
|
166
|
+
metadata: {
|
|
167
|
+
stall_offline_id: string;
|
|
168
|
+
stall_offline_created_at: string;
|
|
169
|
+
stall_offline_updated_at: string;
|
|
170
|
+
stall_offline_deleted_at: string;
|
|
171
|
+
[key: string]: unknown;
|
|
172
|
+
};
|
|
165
173
|
}
|
package/src/payments.d.ts
CHANGED
|
@@ -18,6 +18,13 @@ export interface UnifiedPaymentProviderType {
|
|
|
18
18
|
integration_url: string;
|
|
19
19
|
integration_docs: string;
|
|
20
20
|
active: boolean;
|
|
21
|
+
metadata: {
|
|
22
|
+
stall_offline_id: string;
|
|
23
|
+
stall_offline_created_at: string;
|
|
24
|
+
stall_offline_updated_at: string;
|
|
25
|
+
stall_offline_deleted_at: string;
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
export interface UnifiedPaymentMethodType {
|
|
@@ -36,6 +43,13 @@ export interface UnifiedPaymentProviderConfigType {
|
|
|
36
43
|
manual_methods?: string[];
|
|
37
44
|
created_at: string;
|
|
38
45
|
updated_at: string;
|
|
46
|
+
metadata: {
|
|
47
|
+
stall_offline_id: string;
|
|
48
|
+
stall_offline_created_at: string;
|
|
49
|
+
stall_offline_updated_at: string;
|
|
50
|
+
stall_offline_deleted_at: string;
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
39
53
|
}
|
|
40
54
|
|
|
41
55
|
export type UnifiedPaymentCollectionStatus =
|