@use-stall/types 0.9.0 → 0.9.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-stall/types",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Type declarations for Stall SDKs",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
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,10 @@ export interface DeviceType {
24
24
  }
25
25
 
26
26
  export interface DevicePaymentMethod {
27
+ method: UnifiedPaymentMethodType;
27
28
  provider: string;
28
29
  external_id: string;
29
30
  name: string;
30
- type: UnifiedMethodsType;
31
- supported_currencies: string[];
32
31
  }
33
32
 
34
33
  export interface DeviceFulfillmentMethod {
package/src/payments.d.ts CHANGED
@@ -2,7 +2,6 @@ export type UnifiedMethodsType =
2
2
  | "terminal"
3
3
  | "soft_pos" // mobile tap to pay on android and ios
4
4
  | "payment_link" // hosted checkout, payment links, qr codes
5
- | "connector_payments"
6
5
  | "mobile_money"
7
6
  | "cash"
8
7
  | "manual";
@@ -28,11 +27,14 @@ export interface UnifiedPaymentProviderType {
28
27
  }
29
28
 
30
29
  export interface UnifiedPaymentMethodType {
30
+ id: string;
31
+ title: string; // Ecocash, Smile & Pay, Link
31
32
  type: UnifiedMethodsType;
32
33
  offline_support: boolean;
33
34
  instant_clear: boolean; // whether the payment is cleared instantly like cash or custom
34
35
  express: boolean; // for mobile money, a phone number is required to collect the payment
35
36
  requires_otp: boolean; // for mobile money, an OTP is required to collect the payment
37
+ currencies: string[]; // e.g [ "ZWG", "ZAR", "USD", "EUR",]
36
38
  }
37
39
 
38
40
  export interface UnifiedChargedPaymentMethodType extends UnifiedPaymentMethodType {