@use-stall/types 0.9.1 → 0.9.3
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/device.d.ts +5 -5
- package/src/payments.d.ts +7 -10
package/package.json
CHANGED
package/src/device.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InstalledExtensionType } from "./extensions";
|
|
2
2
|
import type { UnifiedFulfillmentMethods } from "./fulfillment";
|
|
3
|
-
import type { UnifiedMethodsType } from "./payments";
|
|
3
|
+
import type { UnifiedMethodsType, UnifiedPaymentMethodType } from "./payments";
|
|
4
4
|
|
|
5
5
|
export interface DeviceType {
|
|
6
6
|
id: string;
|
|
@@ -24,11 +24,11 @@ export interface DeviceType {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface DevicePaymentMethod {
|
|
27
|
+
id: string;
|
|
28
|
+
method: string, // id of UnifiedPaymentMethodType;
|
|
27
29
|
provider: string;
|
|
28
|
-
external_id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
type: UnifiedMethodsType;
|
|
31
|
-
supported_currencies: string[];
|
|
30
|
+
external_id: string; // from device configs (options e.g serial number)
|
|
31
|
+
name: string; // from device configs (options e.g Skolodo)
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export interface DeviceFulfillmentMethod {
|
package/src/payments.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface UnifiedPaymentProviderType {
|
|
|
28
28
|
|
|
29
29
|
export interface UnifiedPaymentMethodType {
|
|
30
30
|
id: string;
|
|
31
|
-
title: string;
|
|
31
|
+
title: string; // Ecocash, Smile & Pay, Link
|
|
32
32
|
type: UnifiedMethodsType;
|
|
33
33
|
offline_support: boolean;
|
|
34
34
|
instant_clear: boolean; // whether the payment is cleared instantly like cash or custom
|
|
@@ -71,18 +71,15 @@ export interface UnifiedPaymentProviderConfigType {
|
|
|
71
71
|
|
|
72
72
|
export interface FrontendPaymentMethodType {
|
|
73
73
|
id: string;
|
|
74
|
-
|
|
75
|
-
provider
|
|
74
|
+
method: UnifiedPaymentMethodType;
|
|
75
|
+
provider: {
|
|
76
76
|
id: string; // provider id
|
|
77
|
-
name: string;
|
|
78
|
-
logo: string;
|
|
77
|
+
name: string; // provider name
|
|
78
|
+
logo: string; // provider logo
|
|
79
79
|
};
|
|
80
|
-
external_id: string;
|
|
81
|
-
name: string;
|
|
82
|
-
type: UnifiedMethodsType;
|
|
80
|
+
external_id: string; // from device configs (options e.g serial number)
|
|
81
|
+
name: string; // from device configs (options e.g Skolodo)
|
|
83
82
|
supported_currencies: string[];
|
|
84
|
-
offline_support: boolean;
|
|
85
|
-
instant_clear: boolean; // whether the payment is cleared instantly like cash or custom
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
export type UnifiedPaymentCollectionStatus =
|