@temboplus/tembo-dashboard 0.1.3-beta.1 → 0.1.3-beta.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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/models/statement-entry.model.d.ts +2 -2
- package/dist/lib/models/wallet-info.model.d.ts +1 -1
- package/dist/modules/collection/collection.api-contract.d.ts +32 -0
- package/dist/modules/collection/collection.model.d.ts +14 -2
- package/dist/modules/collection/collection.types.d.ts +15 -1
- package/dist/modules/payout/payout.model.d.ts +2 -2
- package/dist/modules/wallet/wallet.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,6 +24,10 @@ export interface CollectionData {
|
|
|
24
24
|
postedAmount?: string;
|
|
25
25
|
reference: string;
|
|
26
26
|
partnerReference?: string | null;
|
|
27
|
+
payerName?: string | null;
|
|
28
|
+
payerReference?: string | null;
|
|
29
|
+
merchantName?: string | null;
|
|
30
|
+
merchantReference?: string | null;
|
|
27
31
|
transactionId?: string | null;
|
|
28
32
|
serviceFeeTransactionId?: string | null;
|
|
29
33
|
requestId?: string | null;
|
|
@@ -48,6 +52,10 @@ export interface CollectionJson {
|
|
|
48
52
|
postedAmount?: AmountJson;
|
|
49
53
|
reference: string;
|
|
50
54
|
partnerReference?: string | null;
|
|
55
|
+
payerName?: string | null;
|
|
56
|
+
payerReference?: string | null;
|
|
57
|
+
merchantName?: string | null;
|
|
58
|
+
merchantReference?: string | null;
|
|
51
59
|
transactionId?: string | null;
|
|
52
60
|
serviceFeeTransactionId?: string | null;
|
|
53
61
|
requestId?: string | null;
|
|
@@ -75,6 +83,10 @@ export declare class Collection {
|
|
|
75
83
|
readonly postedAmount?: Amount;
|
|
76
84
|
readonly reference: string;
|
|
77
85
|
readonly partnerReference?: string | null;
|
|
86
|
+
readonly payerName?: string | null;
|
|
87
|
+
readonly payerReference?: string | null;
|
|
88
|
+
readonly merchantName?: string | null;
|
|
89
|
+
readonly merchantReference?: string | null;
|
|
78
90
|
readonly transactionId?: string | null;
|
|
79
91
|
readonly serviceFeeTransactionId?: string | null;
|
|
80
92
|
readonly requestId?: string | null;
|
|
@@ -136,7 +148,7 @@ export declare class Collection {
|
|
|
136
148
|
* Create Collection instance from raw API data
|
|
137
149
|
*/
|
|
138
150
|
static from(data: any): Collection | undefined;
|
|
139
|
-
static createMany(dataArray: any[]): Collection[];
|
|
151
|
+
static createMany(dataArray: any[]): Collection[] | undefined;
|
|
140
152
|
/**
|
|
141
153
|
* Create Collection instance from JSON representation
|
|
142
154
|
*/
|
|
@@ -144,7 +156,7 @@ export declare class Collection {
|
|
|
144
156
|
/**
|
|
145
157
|
* Create multiple Collection instances from JSON array
|
|
146
158
|
*/
|
|
147
|
-
static createManyFromJson(jsonArray: CollectionJson[]): Collection[];
|
|
159
|
+
static createManyFromJson(jsonArray: CollectionJson[]): Collection[] | undefined;
|
|
148
160
|
/**
|
|
149
161
|
* Convert to JSON representation with proper typing
|
|
150
162
|
*/
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export declare enum COLLECTION_STATUS {
|
|
3
3
|
PAYMENT_ACCEPTED = "PAYMENT_ACCEPTED",
|
|
4
4
|
GENERIC_FAILURE = "GENERIC_FAILURE",
|
|
5
|
+
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
5
6
|
PAYMENT_REJECTED = "PAYMENT_REJECTED",
|
|
6
7
|
PENDING_ACK = "PENDING_ACK",
|
|
7
8
|
PROVIDER_FAILED = "PROVIDER_FAILED"
|
|
@@ -10,7 +11,8 @@ export declare enum COLLECTION_CHANNEL {
|
|
|
10
11
|
AIRTEL = "TZ-AIRTEL-C2B",
|
|
11
12
|
TIGO = "TZ-TIGO-C2B",
|
|
12
13
|
HALOTEL = "TZ-HALOTEL-C2B",
|
|
13
|
-
SAFARICOM = "
|
|
14
|
+
SAFARICOM = "KE-SAFARICOM-C2B",
|
|
15
|
+
VODACOM = "TZ-VODACOM-C2B"
|
|
14
16
|
}
|
|
15
17
|
export declare const CollectionDTOSchemas: {
|
|
16
18
|
collection: z.ZodObject<{
|
|
@@ -28,6 +30,10 @@ export declare const CollectionDTOSchemas: {
|
|
|
28
30
|
postedAmount: z.ZodOptional<z.ZodString>;
|
|
29
31
|
reference: z.ZodString;
|
|
30
32
|
partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
payerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
payerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
merchantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
merchantReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
37
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
38
|
serviceFeeTransactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
39
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -54,6 +60,10 @@ export declare const CollectionDTOSchemas: {
|
|
|
54
60
|
serviceFee?: string | undefined;
|
|
55
61
|
postedAmount?: string | undefined;
|
|
56
62
|
partnerReference?: string | null | undefined;
|
|
63
|
+
payerName?: string | null | undefined;
|
|
64
|
+
payerReference?: string | null | undefined;
|
|
65
|
+
merchantName?: string | null | undefined;
|
|
66
|
+
merchantReference?: string | null | undefined;
|
|
57
67
|
transactionId?: string | null | undefined;
|
|
58
68
|
serviceFeeTransactionId?: string | null | undefined;
|
|
59
69
|
requestId?: string | null | undefined;
|
|
@@ -76,6 +86,10 @@ export declare const CollectionDTOSchemas: {
|
|
|
76
86
|
serviceFee?: string | undefined;
|
|
77
87
|
postedAmount?: string | undefined;
|
|
78
88
|
partnerReference?: string | null | undefined;
|
|
89
|
+
payerName?: string | null | undefined;
|
|
90
|
+
payerReference?: string | null | undefined;
|
|
91
|
+
merchantName?: string | null | undefined;
|
|
92
|
+
merchantReference?: string | null | undefined;
|
|
79
93
|
transactionId?: string | null | undefined;
|
|
80
94
|
serviceFeeTransactionId?: string | null | undefined;
|
|
81
95
|
requestId?: string | null | undefined;
|
|
@@ -154,7 +154,7 @@ export declare class Payout {
|
|
|
154
154
|
* Create Payout instance from raw API data
|
|
155
155
|
*/
|
|
156
156
|
static from(data: any): Payout | undefined;
|
|
157
|
-
static createMany(dataArray: any[]): Payout[];
|
|
157
|
+
static createMany(dataArray: any[]): Payout[] | undefined;
|
|
158
158
|
/**
|
|
159
159
|
* Create Payout instance from JSON representation (with Amount objects serialized)
|
|
160
160
|
*/
|
|
@@ -162,7 +162,7 @@ export declare class Payout {
|
|
|
162
162
|
/**
|
|
163
163
|
* Create multiple Payout instances from JSON array
|
|
164
164
|
*/
|
|
165
|
-
static createManyFromJson(jsonArray: PayoutJson[]): Payout[];
|
|
165
|
+
static createManyFromJson(jsonArray: PayoutJson[]): Payout[] | undefined;
|
|
166
166
|
/**
|
|
167
167
|
* Convert to JSON representation with proper typing
|
|
168
168
|
*/
|
|
@@ -57,7 +57,7 @@ export declare class Wallet {
|
|
|
57
57
|
isDisbursementWallet(): boolean;
|
|
58
58
|
isDefaultWallet(): boolean;
|
|
59
59
|
static from(data: WalletData): Wallet;
|
|
60
|
-
static createMany(dataArray: WalletData[]): Wallet[];
|
|
60
|
+
static createMany(dataArray: WalletData[]): Wallet[] | undefined;
|
|
61
61
|
toJSON(): WalletJson;
|
|
62
62
|
static fromJSON(json: WalletJson): Wallet | undefined;
|
|
63
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temboplus/tembo-dashboard",
|
|
3
|
-
"version": "0.1.3-beta.
|
|
3
|
+
"version": "0.1.3-beta.3",
|
|
4
4
|
"description": "A foundational library for Temboplus-Dashboard projects providing type-safe data layer abstraction with API contracts, domain models, and repositories.",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|