@intelact/driveup 2.2.1 → 2.2.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/lib/company/company.model.d.ts +1 -1
- package/lib/company/company.model.js +1 -1
- package/lib/company/company.model.js.map +1 -1
- package/lib/finance/company-payment.model.d.ts +10 -0
- package/lib/finance/company-payment.model.js +50 -0
- package/lib/finance/company-payment.model.js.map +1 -0
- package/lib/finance/discount.dto.d.ts +4 -0
- package/lib/finance/discount.dto.js +32 -0
- package/lib/finance/discount.dto.js.map +1 -0
- package/lib/finance/finance.model.d.ts +7 -11
- package/lib/finance/finance.model.js +30 -29
- package/lib/finance/finance.model.js.map +1 -1
- package/lib/finance/payment-method.model.d.ts +20 -0
- package/lib/finance/payment-method.model.js +86 -0
- package/lib/finance/payment-method.model.js.map +1 -0
- package/lib/finance/payment.dto.d.ts +6 -0
- package/lib/finance/payment.dto.js +40 -0
- package/lib/finance/payment.dto.js.map +1 -0
- package/lib/finance/refund.dto.d.ts +4 -0
- package/lib/finance/refund.dto.js +32 -0
- package/lib/finance/refund.dto.js.map +1 -0
- package/lib/handover/handover.model.d.ts +3 -3
- package/lib/handover/handover.model.js +3 -3
- package/lib/handover/handover.model.js.map +1 -1
- package/lib/index.d.ts +5 -8
- package/lib/index.js +8 -14
- package/lib/index.js.map +1 -1
- package/lib/invoice/invoice.model.d.ts +2 -2
- package/lib/invoice/invoice.model.js +3 -3
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2,11 +2,11 @@ import { Address, Coordinate, Holiday, Language, Link, StatusType } from "@drive
|
|
|
2
2
|
import { WorkdayDefinition } from "../calendar/working";
|
|
3
3
|
import { Country } from "../country/country.model";
|
|
4
4
|
import { DrivingCategory } from "../driving/category/category.model";
|
|
5
|
+
import { CompanyPaymentMethod } from "../finance/payment-method.model";
|
|
5
6
|
import { FreeBenefit } from "../free-benefit/free-benefit.model";
|
|
6
7
|
import { PickupLocation } from "../geo/pickup.model";
|
|
7
8
|
import { Instructor } from "../instructor/instructor.model";
|
|
8
9
|
import { Metric } from "../metric/metric.model";
|
|
9
|
-
import { CompanyPaymentMethod } from "../payment/payment-method.model";
|
|
10
10
|
import { PricePlan } from "../priceplan/plan.model";
|
|
11
11
|
import { User } from "../user/user.model";
|
|
12
12
|
export declare class Company {
|
|
@@ -15,11 +15,11 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const working_1 = require("../calendar/working");
|
|
16
16
|
const country_model_1 = require("../country/country.model");
|
|
17
17
|
const category_model_1 = require("../driving/category/category.model");
|
|
18
|
+
const payment_method_model_1 = require("../finance/payment-method.model");
|
|
18
19
|
const free_benefit_model_1 = require("../free-benefit/free-benefit.model");
|
|
19
20
|
const pickup_model_1 = require("../geo/pickup.model");
|
|
20
21
|
const instructor_model_1 = require("../instructor/instructor.model");
|
|
21
22
|
const metric_model_1 = require("../metric/metric.model");
|
|
22
|
-
const payment_method_model_1 = require("../payment/payment-method.model");
|
|
23
23
|
const plan_model_1 = require("../priceplan/plan.model");
|
|
24
24
|
const user_model_1 = require("../user/user.model");
|
|
25
25
|
class Company {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company.model.js","sourceRoot":"","sources":["../../src/company/company.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA2F;AAC3F,yDAAiD;
|
|
1
|
+
{"version":3,"file":"company.model.js","sourceRoot":"","sources":["../../src/company/company.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA2F;AAC3F,yDAAiD;AAEjD,iDAAwD;AACxD,4DAAmD;AACnD,uEAAqE;AACrE,0EAAuE;AACvE,2EAAiE;AACjE,sDAAqD;AACrD,qEAA4D;AAC5D,yDAAgD;AAChD,wDAAoD;AACpD,mDAA0C;AAC1C,MAAa,OAAO;IAGnB,EAAE,CAAS;IAGX,GAAG,CAAS;IAGZ,IAAI,CAAS;IAIb,SAAS,CAAO;IAGhB,WAA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GAAG,EAAE,CAAC,gCAAW,CAAC;;6CACI;AAI5B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;oDACS;AAO7B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;+CACI;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;sDACW;AAI/B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;qDACU;AAI9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAM,CAAC;;wCACD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PaymentProvider, StatusType } from "@driveup/shared";
|
|
2
|
+
export declare class CompanyPayment {
|
|
3
|
+
id: number;
|
|
4
|
+
amount: number;
|
|
5
|
+
provider: PaymentProvider;
|
|
6
|
+
status: StatusType;
|
|
7
|
+
date: Date;
|
|
8
|
+
/************************* methods *************************/
|
|
9
|
+
constructor(props?: Partial<CompanyPayment>);
|
|
10
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CompanyPayment = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const shared_1 = require("@driveup/shared");
|
|
15
|
+
class CompanyPayment {
|
|
16
|
+
id;
|
|
17
|
+
amount;
|
|
18
|
+
provider;
|
|
19
|
+
status;
|
|
20
|
+
date;
|
|
21
|
+
/************************* methods *************************/
|
|
22
|
+
constructor(props) {
|
|
23
|
+
Object.assign(this, props);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.CompanyPayment = CompanyPayment;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], CompanyPayment.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], CompanyPayment.prototype, "amount", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CompanyPayment.prototype, "provider", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], CompanyPayment.prototype, "status", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
48
|
+
__metadata("design:type", Date)
|
|
49
|
+
], CompanyPayment.prototype, "date", void 0);
|
|
50
|
+
//# sourceMappingURL=company-payment.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-payment.model.js","sourceRoot":"","sources":["../../src/finance/company-payment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4CAA8D;AAE9D,MAAa,cAAc;IAG1B,EAAE,CAAS;IAIX,MAAM,CAAS;IAGf,QAAQ,CAAkB;IAG1B,MAAM,CAAa;IAInB,IAAI,CAAO;IAEX,6DAA6D;IAE7D,YAAY,KAA+B;QAC1C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxBD,wCAwBC;AArBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;gDACiB;AAG1B;IADC,IAAA,0BAAM,GAAE;;8CACU;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACX,IAAI;4CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SubmitDiscountDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
|
+
class SubmitDiscountDto {
|
|
16
|
+
amount;
|
|
17
|
+
description;
|
|
18
|
+
}
|
|
19
|
+
exports.SubmitDiscountDto = SubmitDiscountDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
(0, class_validator_1.Min)(1),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], SubmitDiscountDto.prototype, "amount", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, transformers_helper_1.Trim)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SubmitDiscountDto.prototype, "description", void 0);
|
|
32
|
+
//# sourceMappingURL=discount.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../src/finance/discount.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,sEAAoD;AACpD,MAAa,iBAAiB;IAI7B,MAAM,CAAS;IAKf,WAAW,CAAS;CACpB;AAVD,8CAUC;AANA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;iDACQ;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;sDACS"}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import { PaymentType, StatusType, TrainingType, TransactionType } from "@driveup/shared";
|
|
1
|
+
import { BankAccount, PaymentType, StatusType, TrainingType, TransactionType } from "@driveup/shared";
|
|
2
2
|
import { ExpenseCategory } from "../expense/category.model";
|
|
3
3
|
import { Student } from "../student/student.model";
|
|
4
4
|
import { Training } from "../training/training.model";
|
|
5
5
|
export declare class Finance {
|
|
6
6
|
id: number;
|
|
7
7
|
type: TransactionType;
|
|
8
|
+
paymentType: PaymentType;
|
|
9
|
+
trainingType: TrainingType;
|
|
8
10
|
amount: number;
|
|
9
11
|
description: string;
|
|
10
12
|
status: StatusType;
|
|
11
|
-
/**
|
|
12
|
-
* If this item is a cancellation item for another item, this field contains the original item's information
|
|
13
|
-
*/
|
|
14
|
-
originalItem: Finance;
|
|
15
|
-
student: Student;
|
|
16
|
-
expenseCategory: ExpenseCategory;
|
|
17
13
|
receiptUrl: string;
|
|
18
14
|
createdBy: any;
|
|
19
15
|
createdOn: Date;
|
|
@@ -24,9 +20,9 @@ export declare class Finance {
|
|
|
24
20
|
rejectedBy: any;
|
|
25
21
|
rejectedOn: Date;
|
|
26
22
|
training: Training;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
originalItem: Finance;
|
|
24
|
+
student: Student;
|
|
25
|
+
expenseCategory: ExpenseCategory;
|
|
26
|
+
bank: BankAccount;
|
|
31
27
|
constructor(props?: Partial<Finance>);
|
|
32
28
|
}
|
|
@@ -18,15 +18,11 @@ const training_model_1 = require("../training/training.model");
|
|
|
18
18
|
class Finance {
|
|
19
19
|
id;
|
|
20
20
|
type;
|
|
21
|
+
paymentType;
|
|
22
|
+
trainingType;
|
|
21
23
|
amount;
|
|
22
24
|
description;
|
|
23
25
|
status;
|
|
24
|
-
/**
|
|
25
|
-
* If this item is a cancellation item for another item, this field contains the original item's information
|
|
26
|
-
*/
|
|
27
|
-
originalItem;
|
|
28
|
-
student;
|
|
29
|
-
expenseCategory;
|
|
30
26
|
receiptUrl;
|
|
31
27
|
createdBy;
|
|
32
28
|
createdOn;
|
|
@@ -37,10 +33,10 @@ class Finance {
|
|
|
37
33
|
rejectedBy;
|
|
38
34
|
rejectedOn;
|
|
39
35
|
training;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
originalItem;
|
|
37
|
+
student;
|
|
38
|
+
expenseCategory;
|
|
39
|
+
bank;
|
|
44
40
|
constructor(props) {
|
|
45
41
|
Object.assign(this, props);
|
|
46
42
|
}
|
|
@@ -55,6 +51,14 @@ __decorate([
|
|
|
55
51
|
(0, class_transformer_1.Expose)(),
|
|
56
52
|
__metadata("design:type", String)
|
|
57
53
|
], Finance.prototype, "type", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Finance.prototype, "paymentType", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], Finance.prototype, "trainingType", void 0);
|
|
58
62
|
__decorate([
|
|
59
63
|
(0, class_transformer_1.Expose)(),
|
|
60
64
|
(0, class_transformer_1.Type)(() => Number),
|
|
@@ -68,21 +72,6 @@ __decorate([
|
|
|
68
72
|
(0, class_transformer_1.Expose)(),
|
|
69
73
|
__metadata("design:type", String)
|
|
70
74
|
], Finance.prototype, "status", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, class_transformer_1.Expose)(),
|
|
73
|
-
(0, class_transformer_1.Type)(() => Finance),
|
|
74
|
-
__metadata("design:type", Finance)
|
|
75
|
-
], Finance.prototype, "originalItem", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, class_transformer_1.Expose)(),
|
|
78
|
-
(0, class_transformer_1.Type)(() => student_model_1.Student),
|
|
79
|
-
__metadata("design:type", student_model_1.Student)
|
|
80
|
-
], Finance.prototype, "student", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, class_transformer_1.Expose)(),
|
|
83
|
-
(0, class_transformer_1.Type)(() => category_model_1.ExpenseCategory),
|
|
84
|
-
__metadata("design:type", category_model_1.ExpenseCategory)
|
|
85
|
-
], Finance.prototype, "expenseCategory", void 0);
|
|
86
75
|
__decorate([
|
|
87
76
|
(0, class_transformer_1.Expose)(),
|
|
88
77
|
__metadata("design:type", String)
|
|
@@ -130,10 +119,22 @@ __decorate([
|
|
|
130
119
|
], Finance.prototype, "training", void 0);
|
|
131
120
|
__decorate([
|
|
132
121
|
(0, class_transformer_1.Expose)(),
|
|
133
|
-
|
|
134
|
-
|
|
122
|
+
(0, class_transformer_1.Type)(() => Finance),
|
|
123
|
+
__metadata("design:type", Finance)
|
|
124
|
+
], Finance.prototype, "originalItem", void 0);
|
|
135
125
|
__decorate([
|
|
136
126
|
(0, class_transformer_1.Expose)(),
|
|
137
|
-
|
|
138
|
-
|
|
127
|
+
(0, class_transformer_1.Type)(() => student_model_1.Student),
|
|
128
|
+
__metadata("design:type", student_model_1.Student)
|
|
129
|
+
], Finance.prototype, "student", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, class_transformer_1.Expose)(),
|
|
132
|
+
(0, class_transformer_1.Type)(() => category_model_1.ExpenseCategory),
|
|
133
|
+
__metadata("design:type", category_model_1.ExpenseCategory)
|
|
134
|
+
], Finance.prototype, "expenseCategory", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, class_transformer_1.Expose)(),
|
|
137
|
+
(0, class_transformer_1.Type)(() => shared_1.BankAccount),
|
|
138
|
+
__metadata("design:type", shared_1.BankAccount)
|
|
139
|
+
], Finance.prototype, "bank", void 0);
|
|
139
140
|
//# sourceMappingURL=finance.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance.model.js","sourceRoot":"","sources":["../../src/finance/finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"finance.model.js","sourceRoot":"","sources":["../../src/finance/finance.model.ts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;2CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;2CAAC;AAGjB;IADC,IAAA,0BAAM,GAAE;;2CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;2CAAC;AAGjB;IADC,IAAA,0BAAM,GAAE;;2CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;2CAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;8BACX,yBAAQ;yCAAC;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;8BACN,OAAO;6CAAC;AAItB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAO,CAAC;8BACX,uBAAO;wCAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAe,CAAC;8BACX,gCAAe;gDAAC;AAIjC;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAW,CAAC;8BAClB,oBAAW;qCAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CompanyPayment } from "./company-payment.model";
|
|
2
|
+
import { Item } from "../item/item.model";
|
|
3
|
+
export declare class CompanyPaymentMethod {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
active: boolean;
|
|
8
|
+
pending: boolean;
|
|
9
|
+
details: Item[];
|
|
10
|
+
warnings: string[];
|
|
11
|
+
failedPayments: CompanyPayment[];
|
|
12
|
+
/**
|
|
13
|
+
* A description summarizing the failed payments associated with this payment method
|
|
14
|
+
*/
|
|
15
|
+
failedPaymentsDescription: string;
|
|
16
|
+
providerPaymentMethodId: string;
|
|
17
|
+
providerCustomerId: string;
|
|
18
|
+
/************************* methods *************************/
|
|
19
|
+
constructor(props?: Partial<CompanyPaymentMethod>);
|
|
20
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CompanyPaymentMethod = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const company_payment_model_1 = require("./company-payment.model");
|
|
15
|
+
const item_model_1 = require("../item/item.model");
|
|
16
|
+
class CompanyPaymentMethod {
|
|
17
|
+
id;
|
|
18
|
+
name;
|
|
19
|
+
icon;
|
|
20
|
+
active;
|
|
21
|
+
pending;
|
|
22
|
+
details;
|
|
23
|
+
warnings;
|
|
24
|
+
failedPayments;
|
|
25
|
+
/**
|
|
26
|
+
* A description summarizing the failed payments associated with this payment method
|
|
27
|
+
*/
|
|
28
|
+
failedPaymentsDescription;
|
|
29
|
+
providerPaymentMethodId;
|
|
30
|
+
providerCustomerId;
|
|
31
|
+
/************************* methods *************************/
|
|
32
|
+
constructor(props) {
|
|
33
|
+
Object.assign(this, props);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CompanyPaymentMethod = CompanyPaymentMethod;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], CompanyPaymentMethod.prototype, "id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CompanyPaymentMethod.prototype, "name", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CompanyPaymentMethod.prototype, "icon", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], CompanyPaymentMethod.prototype, "active", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], CompanyPaymentMethod.prototype, "pending", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
(0, class_transformer_1.Type)(() => item_model_1.Item),
|
|
63
|
+
__metadata("design:type", Array)
|
|
64
|
+
], CompanyPaymentMethod.prototype, "details", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", Array)
|
|
68
|
+
], CompanyPaymentMethod.prototype, "warnings", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
(0, class_transformer_1.Type)(() => company_payment_model_1.CompanyPayment),
|
|
72
|
+
__metadata("design:type", Array)
|
|
73
|
+
], CompanyPaymentMethod.prototype, "failedPayments", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_transformer_1.Expose)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CompanyPaymentMethod.prototype, "failedPaymentsDescription", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], CompanyPaymentMethod.prototype, "providerPaymentMethodId", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], CompanyPaymentMethod.prototype, "providerCustomerId", void 0);
|
|
86
|
+
//# sourceMappingURL=payment-method.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method.model.js","sourceRoot":"","sources":["../../src/finance/payment-method.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mEAAyD;AACzD,mDAA0C;AAE1C,MAAa,oBAAoB;IAGhC,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,IAAI,CAAS;IAIb,MAAM,CAAU;IAIhB,OAAO,CAAU;IAIjB,OAAO,CAAS;IAGhB,QAAQ,CAAW;IAInB,cAAc,CAAmB;IAEjC;;OAEG;IAEH,yBAAyB,CAAS;IAGlC,uBAAuB,CAAS;IAGhC,kBAAkB,CAAS;IAE3B,6DAA6D;IAE7D,YAAY,KAAqC;QAChD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/CD,oDA+CC;AA5CA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACR;AAGX;IADC,IAAA,0BAAM,GAAE;;kDACI;AAGb;IADC,IAAA,0BAAM,GAAE;;kDACI;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;oDACJ;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;qDACH;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;;qDACD;AAGhB;IADC,IAAA,0BAAM,GAAE;;sDACU;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAc,CAAC;;4DACM;AAMjC;IADC,IAAA,0BAAM,GAAE;;uEACyB;AAGlC;IADC,IAAA,0BAAM,GAAE;;qEACuB;AAGhC;IADC,IAAA,0BAAM,GAAE;;gEACkB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SubmitPaymentDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const shared_1 = require("@driveup/shared");
|
|
15
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
16
|
+
class SubmitPaymentDto {
|
|
17
|
+
amount;
|
|
18
|
+
description;
|
|
19
|
+
type;
|
|
20
|
+
}
|
|
21
|
+
exports.SubmitPaymentDto = SubmitPaymentDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
(0, class_validator_1.Min)(1),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], SubmitPaymentDto.prototype, "amount", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, transformers_helper_1.Trim)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SubmitPaymentDto.prototype, "description", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
(0, class_validator_1.IsEnum)(shared_1.PaymentType),
|
|
37
|
+
(0, class_validator_1.IsIn)([shared_1.PaymentType.Cash, shared_1.PaymentType.Online]),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], SubmitPaymentDto.prototype, "type", void 0);
|
|
40
|
+
//# sourceMappingURL=payment.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../src/finance/payment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgG;AAChG,4CAA8C;AAC9C,sEAAoD;AACpD,MAAa,gBAAgB;IAI5B,MAAM,CAAS;IAKf,WAAW,CAAS;IAKpB,IAAI,CAAc;CAClB;AAfD,4CAeC;AAXA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;gDACQ;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;qDACS;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAW,CAAC;IACnB,IAAA,sBAAI,EAAC,CAAC,oBAAW,CAAC,IAAI,EAAE,oBAAW,CAAC,MAAM,CAAC,CAAC;;8CAC3B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SubmitRefundDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
|
+
class SubmitRefundDto {
|
|
16
|
+
amount;
|
|
17
|
+
description;
|
|
18
|
+
}
|
|
19
|
+
exports.SubmitRefundDto = SubmitRefundDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
(0, class_validator_1.Min)(1),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], SubmitRefundDto.prototype, "amount", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, transformers_helper_1.Trim)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SubmitRefundDto.prototype, "description", void 0);
|
|
32
|
+
//# sourceMappingURL=refund.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund.dto.js","sourceRoot":"","sources":["../../src/finance/refund.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,sEAAoD;AACpD,MAAa,eAAe;IAI3B,MAAM,CAAS;IAKf,WAAW,CAAS;CACpB;AAVD,0CAUC;AANA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;+CACQ;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;oDACS"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Instructor } from "../instructor/instructor.model";
|
|
2
|
-
import { Payment } from "../payment/payment.model";
|
|
3
1
|
import { Expense } from "../expense/expense.model";
|
|
2
|
+
import { Finance } from "../finance/finance.model";
|
|
3
|
+
import { Instructor } from "../instructor/instructor.model";
|
|
4
4
|
export declare class Handover {
|
|
5
5
|
id: number;
|
|
6
6
|
createdOn: Date;
|
|
7
7
|
handoverInstructor: Instructor;
|
|
8
8
|
handoverManager: Instructor;
|
|
9
|
-
approvedPayments:
|
|
9
|
+
approvedPayments: Finance[];
|
|
10
10
|
approvedExpenses: Expense[];
|
|
11
11
|
rejectedExpenses: Expense[];
|
|
12
12
|
/************************* functions *************************/
|
|
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Handover = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const instructor_model_1 = require("../instructor/instructor.model");
|
|
15
|
-
const payment_model_1 = require("../payment/payment.model");
|
|
16
14
|
const expense_model_1 = require("../expense/expense.model");
|
|
15
|
+
const finance_model_1 = require("../finance/finance.model");
|
|
16
|
+
const instructor_model_1 = require("../instructor/instructor.model");
|
|
17
17
|
class Handover {
|
|
18
18
|
id;
|
|
19
19
|
createdOn;
|
|
@@ -50,7 +50,7 @@ __decorate([
|
|
|
50
50
|
], Handover.prototype, "handoverManager", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
(0, class_transformer_1.Expose)(),
|
|
53
|
-
(0, class_transformer_1.Type)(() =>
|
|
53
|
+
(0, class_transformer_1.Type)(() => finance_model_1.Finance),
|
|
54
54
|
__metadata("design:type", Array)
|
|
55
55
|
], Handover.prototype, "approvedPayments", void 0);
|
|
56
56
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handover.model.js","sourceRoot":"","sources":["../../src/handover/handover.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;
|
|
1
|
+
{"version":3,"file":"handover.model.js","sourceRoot":"","sources":["../../src/handover/handover.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,4DAAmD;AACnD,4DAAmD;AACnD,qEAA4D;AAE5D,MAAa,QAAQ;IAGpB,EAAE,CAAS;IAIX,SAAS,CAAO;IAIhB,kBAAkB,CAAa;IAI/B,eAAe,CAAa;IAI5B,gBAAgB,CAAY;IAI5B,gBAAgB,CAAY;IAI5B,gBAAgB,CAAY;IAE5B,+DAA+D;IAE/D,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAlCD,4BAkCC;AA/BA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAAU,CAAC;8BACH,6BAAU;oDAAC;AAI/B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAAU,CAAC;8BACN,6BAAU;iDAAC;AAI5B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAO,CAAC;;kDACQ;AAI5B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAO,CAAC;;kDACQ;AAI5B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAO,CAAC;;kDACQ"}
|
package/lib/index.d.ts
CHANGED
|
@@ -41,8 +41,7 @@ export { Currency } from "./currency/currency.model";
|
|
|
41
41
|
export { IDeviceAgent } from "./device/device.agent";
|
|
42
42
|
export { Device } from "./device/device.model";
|
|
43
43
|
export { DeviceSignatureDto } from "./device/device.signature";
|
|
44
|
-
export { SubmitDiscountDto } from "./
|
|
45
|
-
export { Discount } from "./discount/discount.model";
|
|
44
|
+
export { SubmitDiscountDto } from "./finance/discount.dto";
|
|
46
45
|
export { CompanyActivateCategoryDto, CompanyCategoryAdministrationFeeDto, CompanyCategoryDurationDto, CompanyCategoryPriceDto, CompanySubmitCategoryDto, SystemDrivingCategoryCreateDto, SystemDrivingCategoryMinAgeDto, SystemDrivingCategoryTranslationCreateDto } from "./driving/category/category.dto";
|
|
47
46
|
export { DrivingCategory } from "./driving/category/category.model";
|
|
48
47
|
export { ExamFeedbackDto, ExamStatusDto } from "./driving/exam/exam.dto";
|
|
@@ -80,18 +79,16 @@ export { Metric } from "./metric/metric.model";
|
|
|
80
79
|
export { Notification } from "./notification/notification.model";
|
|
81
80
|
export { NotificationPreferenceDto } from "./notification/preference.dto";
|
|
82
81
|
export { NotificationPreference } from "./notification/preference.model";
|
|
83
|
-
export { CompanyPayment } from "./
|
|
84
|
-
export { CompanyPaymentMethod } from "./
|
|
85
|
-
export { SubmitPaymentDto } from "./
|
|
86
|
-
export { Payment } from "./payment/payment.model";
|
|
82
|
+
export { CompanyPayment } from "./finance/company-payment.model";
|
|
83
|
+
export { CompanyPaymentMethod } from "./finance/payment-method.model";
|
|
84
|
+
export { SubmitPaymentDto } from "./finance/payment.dto";
|
|
87
85
|
export { AgentPayout } from "./payout/payout.model";
|
|
88
86
|
export { PricePlanFilterDto, SystemPricePlanSubmitDto } from "./priceplan/plan.dto";
|
|
89
87
|
export { PricePlan } from "./priceplan/plan.model";
|
|
90
88
|
export { ContactUsRequestDto } from "./public/contac-us.dto";
|
|
91
89
|
export { ContactSalesRequestDto } from "./public/contact-sales.dto";
|
|
92
90
|
export { CountrySupportRequestDto } from "./public/country-support.dto";
|
|
93
|
-
export { SubmitRefundDto } from "./
|
|
94
|
-
export { Refund } from "./refund/refund.model";
|
|
91
|
+
export { SubmitRefundDto } from "./finance/refund.dto";
|
|
95
92
|
export { RoleDto } from "./security/role.dto";
|
|
96
93
|
export { IToken } from "./security/token";
|
|
97
94
|
export { InstructorDrivingAppointmentCreateDto, InstructorDrivingAppointmentUpdateDto } from "./session/driving/session.dto";
|