@use-stall/types 0.5.0 → 0.6.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/catalog.d.ts +1 -2
- package/src/fulfillment.d.ts +15 -0
- package/src/payments.d.ts +2 -0
package/package.json
CHANGED
package/src/catalog.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedAttributeType,
|
|
3
3
|
UnifiedVariantsAttributeType,
|
|
4
|
-
UnifiedProductImagesType,
|
|
5
4
|
} from "./product";
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -44,7 +43,7 @@ export interface UnifiedCatalogType {
|
|
|
44
43
|
description: string;
|
|
45
44
|
body_html: string;
|
|
46
45
|
thumbnail: string;
|
|
47
|
-
images:
|
|
46
|
+
images: string[];
|
|
48
47
|
tax_class: string;
|
|
49
48
|
taxable: boolean;
|
|
50
49
|
categories: string[];
|
package/src/fulfillment.d.ts
CHANGED
|
@@ -36,6 +36,21 @@ export interface UnifiedFulfillmentProviderConfigType {
|
|
|
36
36
|
updated_at: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
// The fulfillment-method counterpart to FrontendPaymentMethodType — same shape, minus
|
|
40
|
+
// supported_currencies (fulfillment methods aren't currency-scoped like payment methods are).
|
|
41
|
+
export interface FrontendFulfillmentMethodType {
|
|
42
|
+
id: string;
|
|
43
|
+
// Absent for methods with no fulfillment gateway to resolve, e.g. in-house pickup.
|
|
44
|
+
provider?: {
|
|
45
|
+
id: string; // provider id
|
|
46
|
+
name: string;
|
|
47
|
+
logo: string;
|
|
48
|
+
};
|
|
49
|
+
external_id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
type: UnifiedFulfillmentMethods;
|
|
52
|
+
}
|
|
53
|
+
|
|
39
54
|
export type UnifiedFulfillmentStatus =
|
|
40
55
|
| "pending"
|
|
41
56
|
| "packing"
|
package/src/payments.d.ts
CHANGED
|
@@ -79,6 +79,8 @@ export interface FrontendPaymentMethodType {
|
|
|
79
79
|
name: string;
|
|
80
80
|
type: UnifiedMethodsType;
|
|
81
81
|
supported_currencies: string[];
|
|
82
|
+
offline_support: boolean;
|
|
83
|
+
instant_clear: boolean; // whether the payment is cleared instantly like cash or custom
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
export type UnifiedPaymentCollectionStatus =
|