@intelact/driveup 2.2.13 → 2.2.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intelact/driveup",
3
- "version": "2.2.13",
3
+ "version": "2.2.14",
4
4
  "description": "Driveup Common",
5
5
  "author": "Intelact Solutions Ltd.",
6
6
  "main": "lib/index.js",
@@ -1,4 +0,0 @@
1
- export declare class SubmitDiscountDto {
2
- amount: number;
3
- description: string;
4
- }
@@ -1,32 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../src/discount/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,21 +0,0 @@
1
- import { StatusType, TrainingType } from "@driveup/shared";
2
- import { Training } from "../training/training.model";
3
- export declare class Discount {
4
- id: number;
5
- amount: number;
6
- description: string;
7
- status: StatusType;
8
- /**
9
- * If this item is a cancellation item for another item, this field contains the original item's information
10
- */
11
- originalItem: Discount;
12
- trainingType: TrainingType;
13
- createdBy: any;
14
- createdOn: Date;
15
- approvedBy: any;
16
- approvedOn: Date;
17
- canceledBy: any;
18
- canceledOn: Date;
19
- training: Training;
20
- constructor(props?: Partial<Discount>);
21
- }
@@ -1,97 +0,0 @@
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.Discount = 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 Discount {
17
- id;
18
- amount;
19
- description;
20
- status;
21
- /**
22
- * If this item is a cancellation item for another item, this field contains the original item's information
23
- */
24
- originalItem;
25
- trainingType;
26
- createdBy;
27
- createdOn;
28
- approvedBy;
29
- approvedOn;
30
- canceledBy;
31
- canceledOn;
32
- training;
33
- constructor(props) {
34
- Object.assign(this, props);
35
- }
36
- }
37
- exports.Discount = Discount;
38
- __decorate([
39
- (0, class_transformer_1.Expose)(),
40
- (0, class_transformer_1.Type)(() => Number),
41
- __metadata("design:type", Number)
42
- ], Discount.prototype, "id", void 0);
43
- __decorate([
44
- (0, class_transformer_1.Expose)(),
45
- (0, class_transformer_1.Type)(() => Number),
46
- __metadata("design:type", Number)
47
- ], Discount.prototype, "amount", void 0);
48
- __decorate([
49
- (0, class_transformer_1.Expose)(),
50
- __metadata("design:type", String)
51
- ], Discount.prototype, "description", void 0);
52
- __decorate([
53
- (0, class_transformer_1.Expose)(),
54
- __metadata("design:type", String)
55
- ], Discount.prototype, "status", void 0);
56
- __decorate([
57
- (0, class_transformer_1.Expose)(),
58
- (0, class_transformer_1.Type)(() => Discount),
59
- __metadata("design:type", Discount)
60
- ], Discount.prototype, "originalItem", void 0);
61
- __decorate([
62
- (0, class_transformer_1.Expose)(),
63
- __metadata("design:type", String)
64
- ], Discount.prototype, "trainingType", void 0);
65
- __decorate([
66
- (0, class_transformer_1.Expose)(),
67
- __metadata("design:type", Object)
68
- ], Discount.prototype, "createdBy", void 0);
69
- __decorate([
70
- (0, class_transformer_1.Expose)(),
71
- (0, class_transformer_1.Type)(() => Date),
72
- __metadata("design:type", Date)
73
- ], Discount.prototype, "createdOn", void 0);
74
- __decorate([
75
- (0, class_transformer_1.Expose)(),
76
- __metadata("design:type", Object)
77
- ], Discount.prototype, "approvedBy", void 0);
78
- __decorate([
79
- (0, class_transformer_1.Expose)(),
80
- (0, class_transformer_1.Type)(() => Date),
81
- __metadata("design:type", Date)
82
- ], Discount.prototype, "approvedOn", void 0);
83
- __decorate([
84
- (0, class_transformer_1.Expose)(),
85
- __metadata("design:type", Object)
86
- ], Discount.prototype, "canceledBy", void 0);
87
- __decorate([
88
- (0, class_transformer_1.Expose)(),
89
- (0, class_transformer_1.Type)(() => Date),
90
- __metadata("design:type", Date)
91
- ], Discount.prototype, "canceledOn", void 0);
92
- __decorate([
93
- (0, class_transformer_1.Expose)(),
94
- (0, class_transformer_1.Type)(() => training_model_1.Training),
95
- __metadata("design:type", training_model_1.Training)
96
- ], Discount.prototype, "training", void 0);
97
- //# sourceMappingURL=discount.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discount.model.js","sourceRoot":"","sources":["../../src/discount/discount.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA2D;AAC3D,yDAAiD;AAEjD,+DAAsD;AAEtD,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAIX,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,MAAM,CAAa;IAEnB;;OAEG;IAGH,YAAY,CAAW;IAGvB,YAAY,CAAe;IAG3B,SAAS,CAAM;IAIf,SAAS,CAAO;IAGhB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAGjB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAIjB,QAAQ,CAAW;IAEnB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAtDD,4BAsDC;AAlDA;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,MAAM,CAAC;;wCACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;6CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;wCACU;AAOnB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,QAAQ,CAAC;8BACP,QAAQ;8CAAC;AAGvB;IADC,IAAA,0BAAM,GAAE;;8CACkB;AAG3B;IADC,IAAA,0BAAM,GAAE;;2CACM;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;2CAAC;AAGhB;IADC,IAAA,0BAAM,GAAE;;4CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;4CAAC;AAGjB;IADC,IAAA,0BAAM,GAAE;;4CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;4CAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;8BACX,yBAAQ;0CAAC"}
@@ -1,10 +0,0 @@
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
- }
@@ -1,50 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"company-payment.model.js","sourceRoot":"","sources":["../../src/payment/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"}
@@ -1,20 +0,0 @@
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
- }
@@ -1,86 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"payment-method.model.js","sourceRoot":"","sources":["../../src/payment/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"}
@@ -1,6 +0,0 @@
1
- import { PaymentType } from "@driveup/shared";
2
- export declare class SubmitPaymentDto {
3
- amount: number;
4
- description: string;
5
- type: PaymentType;
6
- }
@@ -1,40 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../src/payment/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"}
@@ -1,22 +0,0 @@
1
- import { PaymentType, StatusType, TrainingType } from "@driveup/shared";
2
- import { Training } from "../training/training.model";
3
- export declare class Payment {
4
- id: number;
5
- amount: number;
6
- type: PaymentType;
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: Payment;
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<Payment>);
22
- }
@@ -1,102 +0,0 @@
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.Payment = 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 Payment {
17
- id;
18
- amount;
19
- type;
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.Payment = Payment;
39
- __decorate([
40
- (0, class_transformer_1.Expose)(),
41
- (0, class_transformer_1.Type)(() => Number),
42
- __metadata("design:type", Number)
43
- ], Payment.prototype, "id", void 0);
44
- __decorate([
45
- (0, class_transformer_1.Expose)(),
46
- (0, class_transformer_1.Type)(() => Number),
47
- __metadata("design:type", Number)
48
- ], Payment.prototype, "amount", void 0);
49
- __decorate([
50
- (0, class_transformer_1.Expose)(),
51
- __metadata("design:type", String)
52
- ], Payment.prototype, "type", void 0);
53
- __decorate([
54
- (0, class_transformer_1.Expose)(),
55
- __metadata("design:type", String)
56
- ], Payment.prototype, "description", void 0);
57
- __decorate([
58
- (0, class_transformer_1.Expose)(),
59
- __metadata("design:type", String)
60
- ], Payment.prototype, "status", void 0);
61
- __decorate([
62
- (0, class_transformer_1.Expose)(),
63
- __metadata("design:type", String)
64
- ], Payment.prototype, "trainingType", void 0);
65
- __decorate([
66
- (0, class_transformer_1.Expose)(),
67
- (0, class_transformer_1.Type)(() => Payment),
68
- __metadata("design:type", Payment)
69
- ], Payment.prototype, "originalItem", void 0);
70
- __decorate([
71
- (0, class_transformer_1.Expose)(),
72
- __metadata("design:type", Object)
73
- ], Payment.prototype, "createdBy", void 0);
74
- __decorate([
75
- (0, class_transformer_1.Expose)(),
76
- (0, class_transformer_1.Type)(() => Date),
77
- __metadata("design:type", Date)
78
- ], Payment.prototype, "createdOn", void 0);
79
- __decorate([
80
- (0, class_transformer_1.Expose)(),
81
- __metadata("design:type", Object)
82
- ], Payment.prototype, "approvedBy", void 0);
83
- __decorate([
84
- (0, class_transformer_1.Expose)(),
85
- (0, class_transformer_1.Type)(() => Date),
86
- __metadata("design:type", Date)
87
- ], Payment.prototype, "approvedOn", void 0);
88
- __decorate([
89
- (0, class_transformer_1.Expose)(),
90
- __metadata("design:type", Object)
91
- ], Payment.prototype, "canceledBy", void 0);
92
- __decorate([
93
- (0, class_transformer_1.Expose)(),
94
- (0, class_transformer_1.Type)(() => Date),
95
- __metadata("design:type", Date)
96
- ], Payment.prototype, "canceledOn", void 0);
97
- __decorate([
98
- (0, class_transformer_1.Expose)(),
99
- (0, class_transformer_1.Type)(() => training_model_1.Training),
100
- __metadata("design:type", training_model_1.Training)
101
- ], Payment.prototype, "training", void 0);
102
- //# sourceMappingURL=payment.model.js.map
@@ -1 +0,0 @@
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,IAAI,CAAc;IAGlB,WAAW,CAAS;IAGpB,MAAM,CAAa;IAGnB,YAAY,CAAe;IAE3B;;OAEG;IAGH,YAAY,CAAU;IAGtB,SAAS,CAAM;IAIf,SAAS,CAAO;IAGhB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAGjB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAIjB,QAAQ,CAAW;IAEnB,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAzDD,0BAyDC;AArDA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;qCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;4CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;uCACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;6CACkB;AAO3B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;8BACN,OAAO;6CAAC;AAGtB;IADC,IAAA,0BAAM,GAAE;;0CACM;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;0CAAC;AAGhB;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"}
@@ -1,4 +0,0 @@
1
- export declare class SubmitRefundDto {
2
- amount: number;
3
- description: string;
4
- }
@@ -1,32 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,22 +0,0 @@
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
- }
@@ -1,103 +0,0 @@
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
@@ -1 +0,0 @@
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,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAW,CAAC;8BAClB,oBAAW;oCAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;2CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;sCACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;4CACkB;AAO3B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;8BACL,MAAM;4CAAC;AAGrB;IADC,IAAA,0BAAM,GAAE;;yCACM;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC;AAGhB;IADC,IAAA,0BAAM,GAAE;;0CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;0CAAC;AAGjB;IADC,IAAA,0BAAM,GAAE;;0CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;0CAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;8BACX,yBAAQ;wCAAC"}