docta-package 1.2.75 → 1.2.77
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/build/enums/index.d.ts +1 -0
- package/build/enums/index.js +1 -0
- package/build/enums/status-codes.d.ts +2 -1
- package/build/enums/status-codes.js +1 -0
- package/build/enums/tranzak.d.ts +13 -0
- package/build/enums/tranzak.js +18 -0
- package/build/interfaces/index.d.ts +1 -0
- package/build/interfaces/index.js +1 -0
- package/build/interfaces/tranzak.api.response.d.ts +46 -0
- package/build/interfaces/tranzak.api.response.js +2 -0
- package/package.json +1 -1
package/build/enums/index.d.ts
CHANGED
package/build/enums/index.js
CHANGED
|
@@ -33,5 +33,6 @@ export declare enum EnumStatusCode {
|
|
|
33
33
|
PATIENT_NOT_FOUND = "PATIENT_NOT_FOUND",
|
|
34
34
|
PERIOD_NOT_FOUND = "PERIOD_NOT_FOUND",
|
|
35
35
|
PERIOD_PASSED = "PERIOD_PASSED",
|
|
36
|
-
PERIOD_TOO_CLOSE_TO_START = "PERIOD_TOO_CLOSE_TO_START"
|
|
36
|
+
PERIOD_TOO_CLOSE_TO_START = "PERIOD_TOO_CLOSE_TO_START",
|
|
37
|
+
PAYMENT_ERROR = "PAYMENT_ERROR"
|
|
37
38
|
}
|
|
@@ -38,4 +38,5 @@ var EnumStatusCode;
|
|
|
38
38
|
EnumStatusCode["PERIOD_NOT_FOUND"] = "PERIOD_NOT_FOUND";
|
|
39
39
|
EnumStatusCode["PERIOD_PASSED"] = "PERIOD_PASSED";
|
|
40
40
|
EnumStatusCode["PERIOD_TOO_CLOSE_TO_START"] = "PERIOD_TOO_CLOSE_TO_START";
|
|
41
|
+
EnumStatusCode["PAYMENT_ERROR"] = "PAYMENT_ERROR";
|
|
41
42
|
})(EnumStatusCode || (exports.EnumStatusCode = EnumStatusCode = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum EnumTranzakCurrency {
|
|
2
|
+
XAF = "XAF"
|
|
3
|
+
}
|
|
4
|
+
export declare enum EnumTranzakPaymentStatus {
|
|
5
|
+
PENDING = "PENDING",
|
|
6
|
+
SUCCESSFUL = "SUCCESSFUL",
|
|
7
|
+
CANCELLED = "CANCELLED",
|
|
8
|
+
CANCELLED_BY_PAYER = "CANCELLED_BY_PAYER",
|
|
9
|
+
FAILED = "FAILED",
|
|
10
|
+
PAYMENT_IN_PROGRESS = "PAYMENT_IN_PROGRESS",
|
|
11
|
+
CANCELLED_REFUNDED = "CANCELLED/REFUNDED",
|
|
12
|
+
PAYER_REDIRECT_REQUIRED = "PAYER_REDIRECT_REQUIRED"
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnumTranzakPaymentStatus = exports.EnumTranzakCurrency = void 0;
|
|
4
|
+
var EnumTranzakCurrency;
|
|
5
|
+
(function (EnumTranzakCurrency) {
|
|
6
|
+
EnumTranzakCurrency["XAF"] = "XAF";
|
|
7
|
+
})(EnumTranzakCurrency || (exports.EnumTranzakCurrency = EnumTranzakCurrency = {}));
|
|
8
|
+
var EnumTranzakPaymentStatus;
|
|
9
|
+
(function (EnumTranzakPaymentStatus) {
|
|
10
|
+
EnumTranzakPaymentStatus["PENDING"] = "PENDING";
|
|
11
|
+
EnumTranzakPaymentStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
12
|
+
EnumTranzakPaymentStatus["CANCELLED"] = "CANCELLED";
|
|
13
|
+
EnumTranzakPaymentStatus["CANCELLED_BY_PAYER"] = "CANCELLED_BY_PAYER";
|
|
14
|
+
EnumTranzakPaymentStatus["FAILED"] = "FAILED";
|
|
15
|
+
EnumTranzakPaymentStatus["PAYMENT_IN_PROGRESS"] = "PAYMENT_IN_PROGRESS";
|
|
16
|
+
EnumTranzakPaymentStatus["CANCELLED_REFUNDED"] = "CANCELLED/REFUNDED";
|
|
17
|
+
EnumTranzakPaymentStatus["PAYER_REDIRECT_REQUIRED"] = "PAYER_REDIRECT_REQUIRED";
|
|
18
|
+
})(EnumTranzakPaymentStatus || (exports.EnumTranzakPaymentStatus = EnumTranzakPaymentStatus = {}));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { EnumTranzakCurrency, EnumTranzakPaymentStatus } from "../enums/tranzak";
|
|
2
|
+
export type GetPaymentTokenResponseData = {
|
|
3
|
+
scope: string;
|
|
4
|
+
appId: string;
|
|
5
|
+
token: string;
|
|
6
|
+
expiresIn: number;
|
|
7
|
+
};
|
|
8
|
+
export type TranzakApiResponse<T> = {
|
|
9
|
+
data: T;
|
|
10
|
+
success: true;
|
|
11
|
+
errorMsg?: string;
|
|
12
|
+
errorCode?: number;
|
|
13
|
+
};
|
|
14
|
+
export type TranzakGetPaymentTokenRequestDto = {
|
|
15
|
+
appId: string;
|
|
16
|
+
appKey: string;
|
|
17
|
+
};
|
|
18
|
+
export type CreatePaymentSessionResponseData = {
|
|
19
|
+
requestId: string;
|
|
20
|
+
amount: number;
|
|
21
|
+
currencyCode: EnumTranzakCurrency;
|
|
22
|
+
description: string;
|
|
23
|
+
mobileWalletNumber: string | null;
|
|
24
|
+
status: EnumTranzakPaymentStatus;
|
|
25
|
+
transactionStatus: EnumTranzakPaymentStatus;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
mchTransactionRef: string;
|
|
28
|
+
appId: string;
|
|
29
|
+
payerNote: string;
|
|
30
|
+
serviceDiscountAmount: number | null;
|
|
31
|
+
receivingEntityName: string | null;
|
|
32
|
+
transactionTag: string | null;
|
|
33
|
+
links: {
|
|
34
|
+
returnUrl: string;
|
|
35
|
+
cancelUrl: string;
|
|
36
|
+
paymentAuthUrl: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type TranzakCreatePaymentSessionRequestDto = {
|
|
40
|
+
amount: number;
|
|
41
|
+
currencyCode: EnumTranzakCurrency;
|
|
42
|
+
description: string;
|
|
43
|
+
mchTransactionRef: string;
|
|
44
|
+
returnUrl: string;
|
|
45
|
+
cancelUrl: string;
|
|
46
|
+
};
|