@use-stall/types 0.9.2 → 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 +4 -3
- package/src/payments.d.ts +6 -9
package/package.json
CHANGED
package/src/device.d.ts
CHANGED
|
@@ -24,10 +24,11 @@ export interface DeviceType {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface DevicePaymentMethod {
|
|
27
|
-
|
|
27
|
+
id: string;
|
|
28
|
+
method: string, // id of UnifiedPaymentMethodType;
|
|
28
29
|
provider: string;
|
|
29
|
-
external_id: string;
|
|
30
|
-
name: string;
|
|
30
|
+
external_id: string; // from device configs (options e.g serial number)
|
|
31
|
+
name: string; // from device configs (options e.g Skolodo)
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export interface DeviceFulfillmentMethod {
|
package/src/payments.d.ts
CHANGED
|
@@ -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 =
|