@intelact/driveup 2.2.16 → 2.2.18
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/discount/discount.dto.d.ts +4 -0
- package/lib/discount/discount.dto.js +32 -0
- package/lib/discount/discount.dto.js.map +1 -0
- package/lib/discount/discount.model.d.ts +21 -0
- package/lib/discount/discount.model.js +97 -0
- package/lib/discount/discount.model.js.map +1 -0
- package/lib/driving/category/category.dto.d.ts +6 -1
- package/lib/driving/category/category.dto.js +16 -5
- package/lib/driving/category/category.dto.js.map +1 -1
- package/lib/driving/category/category.model.d.ts +2 -1
- package/lib/driving/category/category.model.js +7 -1
- package/lib/driving/category/category.model.js.map +1 -1
- package/lib/payment/company-payment.model.d.ts +10 -0
- package/lib/payment/company-payment.model.js +50 -0
- package/lib/payment/company-payment.model.js.map +1 -0
- package/lib/payment/payment-method.model.d.ts +20 -0
- package/lib/payment/payment-method.model.js +86 -0
- package/lib/payment/payment-method.model.js.map +1 -0
- package/lib/payment/payment.dto.d.ts +6 -0
- package/lib/payment/payment.dto.js +40 -0
- package/lib/payment/payment.dto.js.map +1 -0
- package/lib/payment/payment.model.d.ts +22 -0
- package/lib/payment/payment.model.js +102 -0
- package/lib/payment/payment.model.js.map +1 -0
- package/lib/refund/refund.dto.d.ts +4 -0
- package/lib/refund/refund.dto.js +32 -0
- package/lib/refund/refund.dto.js.map +1 -0
- package/lib/refund/refund.model.d.ts +22 -0
- package/lib/refund/refund.model.js +103 -0
- package/lib/refund/refund.model.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.model.js","sourceRoot":"","sources":["../../src/payment/payment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwE;AACxE,yDAAiD;AAEjD,+DAAsD;AAEtD,MAAa,OAAO;IAInB,EAAE,CAAS;IAIX,MAAM,CAAS;IAGf,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IjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;8BACX,yBAAQ;yCAAC"}
|
|
@@ -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/refund/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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BankAccount, StatusType, TrainingType } from "@driveup/shared";
|
|
2
|
+
import { Training } from "../training/training.model";
|
|
3
|
+
export declare class Refund {
|
|
4
|
+
id: number;
|
|
5
|
+
bank: BankAccount;
|
|
6
|
+
amount: number;
|
|
7
|
+
description: string;
|
|
8
|
+
status: StatusType;
|
|
9
|
+
trainingType: TrainingType;
|
|
10
|
+
/**
|
|
11
|
+
* If this item is a cancellation item for another item, this field contains the original item's information
|
|
12
|
+
*/
|
|
13
|
+
originalItem: Refund;
|
|
14
|
+
createdBy: any;
|
|
15
|
+
createdOn: Date;
|
|
16
|
+
approvedBy: any;
|
|
17
|
+
approvedOn: Date;
|
|
18
|
+
canceledBy: any;
|
|
19
|
+
canceledOn: Date;
|
|
20
|
+
training: Training;
|
|
21
|
+
constructor(props?: Partial<Refund>);
|
|
22
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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.Refund = void 0;
|
|
13
|
+
const shared_1 = require("@driveup/shared");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const training_model_1 = require("../training/training.model");
|
|
16
|
+
class Refund {
|
|
17
|
+
id;
|
|
18
|
+
bank;
|
|
19
|
+
amount;
|
|
20
|
+
description;
|
|
21
|
+
status;
|
|
22
|
+
trainingType;
|
|
23
|
+
/**
|
|
24
|
+
* If this item is a cancellation item for another item, this field contains the original item's information
|
|
25
|
+
*/
|
|
26
|
+
originalItem;
|
|
27
|
+
createdBy;
|
|
28
|
+
createdOn;
|
|
29
|
+
approvedBy;
|
|
30
|
+
approvedOn;
|
|
31
|
+
canceledBy;
|
|
32
|
+
canceledOn;
|
|
33
|
+
training;
|
|
34
|
+
constructor(props) {
|
|
35
|
+
Object.assign(this, props);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Refund = Refund;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], Refund.prototype, "id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
(0, class_transformer_1.Type)(() => shared_1.BankAccount),
|
|
47
|
+
__metadata("design:type", shared_1.BankAccount)
|
|
48
|
+
], Refund.prototype, "bank", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], Refund.prototype, "amount", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Refund.prototype, "description", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], Refund.prototype, "status", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], Refund.prototype, "trainingType", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
(0, class_transformer_1.Type)(() => Refund),
|
|
69
|
+
__metadata("design:type", Refund)
|
|
70
|
+
], Refund.prototype, "originalItem", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], Refund.prototype, "createdBy", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_transformer_1.Expose)(),
|
|
77
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
78
|
+
__metadata("design:type", Date)
|
|
79
|
+
], Refund.prototype, "createdOn", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], Refund.prototype, "approvedBy", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_transformer_1.Expose)(),
|
|
86
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
87
|
+
__metadata("design:type", Date)
|
|
88
|
+
], Refund.prototype, "approvedOn", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_transformer_1.Expose)(),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], Refund.prototype, "canceledBy", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_transformer_1.Expose)(),
|
|
95
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
96
|
+
__metadata("design:type", Date)
|
|
97
|
+
], Refund.prototype, "canceledOn", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_transformer_1.Expose)(),
|
|
100
|
+
(0, class_transformer_1.Type)(() => training_model_1.Training),
|
|
101
|
+
__metadata("design:type", training_model_1.Training)
|
|
102
|
+
], Refund.prototype, "training", void 0);
|
|
103
|
+
//# sourceMappingURL=refund.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund.model.js","sourceRoot":"","sources":["../../src/refund/refund.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwE;AACxE,yDAAiD;AAEjD,+DAAsD;AAEtD,MAAa,MAAM;IAIlB,EAAE,CAAS;IAIX,IAAI,CAAc;IAIlB,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,MAAM,CAAa;IAGnB,YAAY,CAAe;IAE3B;;OAEG;IAGH,YAAY,CAAS;IAGrB,SAAS,CAAM;IAIf,SAAS,CAAO;IAGhB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAGjB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAIjB,QAAQ,CAAW;IAEnB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1DD,wBA0DC;AAtDA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wB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