@kipicore/dbcore 1.1.599 → 1.1.600
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.
|
@@ -1096,5 +1096,10 @@ export declare enum RMS_SUCCESS_MESSAGES {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
export declare enum REFUND_SUCCESS_MESSAGES {
|
|
1098
1098
|
REFUND_SUCCESS = "Refund has been initiated",
|
|
1099
|
-
REFUND_PENDING = "Refund is in progress"
|
|
1099
|
+
REFUND_PENDING = "Refund is in progress",
|
|
1100
|
+
CREATE_SUCCESS = "Refund created successfully",
|
|
1101
|
+
UPDATE_SUCCESS = "Refund updated successfully",
|
|
1102
|
+
DELETE_SUCCESS = "Refund deleted successfully",
|
|
1103
|
+
GET_SUCCESS = "Refund fetched successfully",
|
|
1104
|
+
GET_ALL_SUCCESS = "Refund fetched successfully"
|
|
1100
1105
|
}
|
|
@@ -1275,4 +1275,9 @@ var REFUND_SUCCESS_MESSAGES;
|
|
|
1275
1275
|
(function (REFUND_SUCCESS_MESSAGES) {
|
|
1276
1276
|
REFUND_SUCCESS_MESSAGES["REFUND_SUCCESS"] = "Refund has been initiated";
|
|
1277
1277
|
REFUND_SUCCESS_MESSAGES["REFUND_PENDING"] = "Refund is in progress";
|
|
1278
|
+
REFUND_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Refund created successfully";
|
|
1279
|
+
REFUND_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Refund updated successfully";
|
|
1280
|
+
REFUND_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Refund deleted successfully";
|
|
1281
|
+
REFUND_SUCCESS_MESSAGES["GET_SUCCESS"] = "Refund fetched successfully";
|
|
1282
|
+
REFUND_SUCCESS_MESSAGES["GET_ALL_SUCCESS"] = "Refund fetched successfully";
|
|
1278
1283
|
})(REFUND_SUCCESS_MESSAGES || (exports.REFUND_SUCCESS_MESSAGES = REFUND_SUCCESS_MESSAGES = {}));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PAYMENT_TYPE, REFUND_ENTITY_TYPE, REFUND_STATUS } from '../constants';
|
|
2
2
|
import { IDefaultAttributes } from './commonInterface';
|
|
3
3
|
export interface IRefundCollectionModelAttributes extends IDefaultAttributes {
|
|
4
|
-
id
|
|
5
|
-
academicCalendarId
|
|
6
|
-
instituteId
|
|
7
|
-
status
|
|
4
|
+
id?: string;
|
|
5
|
+
academicCalendarId?: string;
|
|
6
|
+
instituteId?: string;
|
|
7
|
+
status?: REFUND_STATUS;
|
|
8
8
|
refundEntityType: REFUND_ENTITY_TYPE;
|
|
9
|
-
paymentType
|
|
9
|
+
paymentType?: PAYMENT_TYPE;
|
|
10
10
|
refundEntityId: string;
|
|
11
|
-
refundedBy
|
|
12
|
-
refundedAt
|
|
13
|
-
refundAmount
|
|
11
|
+
refundedBy?: string;
|
|
12
|
+
refundedAt?: Date;
|
|
13
|
+
refundAmount?: number;
|
|
14
14
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { Optional } from 'sequelize';
|
|
2
2
|
import { IRefundCollectionModelAttributes } from '../interfaces/refundInterface';
|
|
3
|
+
import { IAcademicCalendarModelAttributes, IInstituteAttributes, IUserAttributes } from '../interfaces';
|
|
3
4
|
export type TRefundCollectionModelAttributes = Optional<IRefundCollectionModelAttributes, 'id'>;
|
|
5
|
+
export type TRefundCollectionModelWithAssociates = IRefundCollectionModelAttributes & {
|
|
6
|
+
createdByUser?: IUserAttributes;
|
|
7
|
+
updatedByUser?: IUserAttributes;
|
|
8
|
+
deletedByUser?: IUserAttributes;
|
|
9
|
+
instituteRefund?: IInstituteAttributes;
|
|
10
|
+
refundAcaCal?: IAcademicCalendarModelAttributes;
|
|
11
|
+
};
|
package/dist/types/refundType.js
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// export type TRefundCollectionModelWithAssociates = IClassRoomCollectionModelAttributes & {
|
|
4
|
-
// createdByUser?: IUserAttributes;
|
|
5
|
-
// updatedByUser?: IUserAttributes;
|
|
6
|
-
// deletedByUser?: IUserAttributes;
|
|
7
|
-
// classRCollectionInst?: IInstituteAttributes;
|
|
8
|
-
// classRColAcaCal?: IAcademicCalendarModelAttributes;
|
|
9
|
-
// collectorClassRCol?: IUserAttributes;
|
|
10
|
-
// ClassRColUser?: IUserAttributes;
|
|
11
|
-
// ClassRColClassEvent?: IClassRoomEventModelAttributes;
|
|
12
|
-
// };
|
package/package.json
CHANGED