@use-stall/types 0.1.8 → 0.2.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/payments.d.ts +15 -5
package/package.json
CHANGED
package/src/payments.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
export type MethodsType =
|
|
2
|
-
| "
|
|
3
|
-
| "
|
|
2
|
+
| "terminal"
|
|
3
|
+
| "soft_pos" // mobile tap to pay on android and ios
|
|
4
4
|
| "online_checkout"
|
|
5
5
|
| "payment_link"
|
|
6
|
-
| "qr_code"
|
|
7
|
-
| "mobile_money"
|
|
8
6
|
| "connector_payments"
|
|
7
|
+
| "mobile_wallet"
|
|
9
8
|
| "cash"
|
|
10
|
-
| "manual"
|
|
9
|
+
| "manual";
|
|
11
10
|
|
|
12
11
|
export interface PaymentProviderType {
|
|
13
12
|
id: string;
|
|
@@ -27,6 +26,17 @@ export interface PaymentMethodType {
|
|
|
27
26
|
instant_clear: boolean; // whether the payment is cleared instantly like cash or custom
|
|
28
27
|
}
|
|
29
28
|
|
|
29
|
+
export interface PaymentProviderConfigType {
|
|
30
|
+
id: string;
|
|
31
|
+
provider: string; // provider id
|
|
32
|
+
config: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
manual_methods?: string[];
|
|
35
|
+
};
|
|
36
|
+
created_at: string;
|
|
37
|
+
updated_at: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
30
40
|
export type PaymentCollectionStatus =
|
|
31
41
|
| "pending"
|
|
32
42
|
| "processing"
|