@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.
Files changed (32) hide show
  1. package/lib/discount/discount.dto.d.ts +4 -0
  2. package/lib/discount/discount.dto.js +32 -0
  3. package/lib/discount/discount.dto.js.map +1 -0
  4. package/lib/discount/discount.model.d.ts +21 -0
  5. package/lib/discount/discount.model.js +97 -0
  6. package/lib/discount/discount.model.js.map +1 -0
  7. package/lib/driving/category/category.dto.d.ts +6 -1
  8. package/lib/driving/category/category.dto.js +16 -5
  9. package/lib/driving/category/category.dto.js.map +1 -1
  10. package/lib/driving/category/category.model.d.ts +2 -1
  11. package/lib/driving/category/category.model.js +7 -1
  12. package/lib/driving/category/category.model.js.map +1 -1
  13. package/lib/payment/company-payment.model.d.ts +10 -0
  14. package/lib/payment/company-payment.model.js +50 -0
  15. package/lib/payment/company-payment.model.js.map +1 -0
  16. package/lib/payment/payment-method.model.d.ts +20 -0
  17. package/lib/payment/payment-method.model.js +86 -0
  18. package/lib/payment/payment-method.model.js.map +1 -0
  19. package/lib/payment/payment.dto.d.ts +6 -0
  20. package/lib/payment/payment.dto.js +40 -0
  21. package/lib/payment/payment.dto.js.map +1 -0
  22. package/lib/payment/payment.model.d.ts +22 -0
  23. package/lib/payment/payment.model.js +102 -0
  24. package/lib/payment/payment.model.js.map +1 -0
  25. package/lib/refund/refund.dto.d.ts +4 -0
  26. package/lib/refund/refund.dto.js +32 -0
  27. package/lib/refund/refund.dto.js.map +1 -0
  28. package/lib/refund/refund.model.d.ts +22 -0
  29. package/lib/refund/refund.model.js +103 -0
  30. package/lib/refund/refund.model.js.map +1 -0
  31. package/lib/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ export declare class SubmitDiscountDto {
2
+ amount: number;
3
+ description: string;
4
+ }
@@ -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/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"}
@@ -0,0 +1,21 @@
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
+ }
@@ -0,0 +1,97 @@
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
@@ -0,0 +1 @@
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"}
@@ -4,9 +4,14 @@ export declare class CompanySubmitCategoryDto {
4
4
  price: number;
5
5
  administrationFee: number;
6
6
  affectCurrentTrainings: boolean;
7
+ active: boolean;
8
+ seedTopics: boolean;
7
9
  }
10
+ /**
11
+ * @deprecated
12
+ * Use CompanySubmitCategoryDto instead
13
+ */
8
14
  export declare class CompanyActivateCategoryDto extends CompanySubmitCategoryDto {
9
- seedTopics: boolean;
10
15
  }
11
16
  export declare class CompanyCategoryPriceDto {
12
17
  price: number;
@@ -18,6 +18,8 @@ class CompanySubmitCategoryDto {
18
18
  price;
19
19
  administrationFee;
20
20
  affectCurrentTrainings;
21
+ active;
22
+ seedTopics;
21
23
  }
22
24
  exports.CompanySubmitCategoryDto = CompanySubmitCategoryDto;
23
25
  __decorate([
@@ -47,16 +49,25 @@ __decorate([
47
49
  (0, class_validator_1.IsBoolean)(),
48
50
  __metadata("design:type", Boolean)
49
51
  ], CompanySubmitCategoryDto.prototype, "affectCurrentTrainings", void 0);
50
- class CompanyActivateCategoryDto extends CompanySubmitCategoryDto {
51
- seedTopics;
52
- }
53
- exports.CompanyActivateCategoryDto = CompanyActivateCategoryDto;
54
52
  __decorate([
55
53
  (0, class_validator_1.IsNotEmpty)(),
56
54
  (0, transformers_helper_1.ToBoolean)(),
57
55
  (0, class_validator_1.IsBoolean)(),
58
56
  __metadata("design:type", Boolean)
59
- ], CompanyActivateCategoryDto.prototype, "seedTopics", void 0);
57
+ ], CompanySubmitCategoryDto.prototype, "active", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, transformers_helper_1.ToBoolean)(),
61
+ (0, class_validator_1.IsBoolean)(),
62
+ __metadata("design:type", Boolean)
63
+ ], CompanySubmitCategoryDto.prototype, "seedTopics", void 0);
64
+ /**
65
+ * @deprecated
66
+ * Use CompanySubmitCategoryDto instead
67
+ */
68
+ class CompanyActivateCategoryDto extends CompanySubmitCategoryDto {
69
+ }
70
+ exports.CompanyActivateCategoryDto = CompanyActivateCategoryDto;
60
71
  class CompanyCategoryPriceDto {
61
72
  price;
62
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"category.dto.js","sourceRoot":"","sources":["../../../src/driving/category/category.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA2C;AAC3C,qDAA0G;AAE1G,yEAAkE;AAClE,MAAa,wBAAwB;IAMpC,QAAQ,CAAS;IAMjB,KAAK,CAAS;IAMd,iBAAiB,CAAS;IAK1B,sBAAsB,CAAU;CAChC;AAxBD,4DAwBC;AAlBA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;;0DACQ;AAMjB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,KAAK,CAAC;;uDACG;AAMd;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;I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IACV,IAAA,qBAAG,EAAC,EAAE,CAAC;IACP,IAAA,qBAAG,EAAC,EAAE,CAAC;;8DACO;AAGhB,MAAa,8BAA8B;IAK1C,MAAM,CAAS;CACf;AAND,wEAMC;AADA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,EAAE,CAAC;IACP,IAAA,qBAAG,EAAC,EAAE,CAAC;;8DACO;AAGhB,MAAa,yCAAyC;IAErD,QAAQ,CAAW;IAKnB,KAAK,CAAS;IAKd,WAAW,CAAS;CACpB;AAbD,8FAaC;AAXA;IADC,IAAA,wBAAM,EAAC,iBAAQ,CAAC;;2EACE;AAKnB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;;wEACO;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;;8EACa"}
@@ -1,5 +1,5 @@
1
- import { Country } from "../../country/country.model";
2
1
  import { ColorContext, Language } from "@driveup/shared";
2
+ import { Country } from "../../country/country.model";
3
3
  export declare class DrivingCategory {
4
4
  id: number;
5
5
  groupName: string;
@@ -15,6 +15,7 @@ export declare class DrivingCategory {
15
15
  sessionPrice: number;
16
16
  sessionDuration: number;
17
17
  administrationFee: number;
18
+ administrationFeeStatus: boolean;
18
19
  /************************* translations *************************/
19
20
  translations: {
20
21
  language: Language;
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DrivingCategory = void 0;
13
+ const shared_1 = require("@driveup/shared");
13
14
  const class_transformer_1 = require("class-transformer");
14
15
  const country_model_1 = require("../../country/country.model");
15
- const shared_1 = require("@driveup/shared");
16
16
  class DrivingCategory {
17
17
  id;
18
18
  groupName;
@@ -28,6 +28,7 @@ class DrivingCategory {
28
28
  sessionPrice;
29
29
  sessionDuration;
30
30
  administrationFee;
31
+ administrationFeeStatus;
31
32
  /************************* translations *************************/
32
33
  translations;
33
34
  /************************* topics and skills *************************/
@@ -102,6 +103,11 @@ __decorate([
102
103
  (0, class_transformer_1.Type)(() => Number),
103
104
  __metadata("design:type", Number)
104
105
  ], DrivingCategory.prototype, "administrationFee", void 0);
106
+ __decorate([
107
+ (0, class_transformer_1.Expose)(),
108
+ (0, class_transformer_1.Type)(() => Boolean),
109
+ __metadata("design:type", Boolean)
110
+ ], DrivingCategory.prototype, "administrationFeeStatus", void 0);
105
111
  __decorate([
106
112
  (0, class_transformer_1.Expose)(),
107
113
  __metadata("design:type", Array)
@@ -1 +1 @@
1
- {"version":3,"file":"category.model.js","sourceRoot":"","sources":["../../../src/driving/category/category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,+DAAsD;AACtD,4CAAyD;AAGzD,MAAa,eAAe;IAI3B,EAAE,CAAS;IAGX,SAAS,CAAS;IAGlB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAIpB,MAAM,CAAU;IAGhB,IAAI,CAAS;IAIb,MAAM,CAAS;IAGf,OAAO,CAAU;IAGjB,OAAO,CAAe;IAEtB,mDAAmD;IAInD,YAAY,CAAS;IAIrB,eAAe,CAAS;IAIxB,iBAAiB,CAAS;IAE1B,kEAAkE;IAGlE,YAAY,CAIR;IAEJ,uEAAuE;IAEvE;;OAEG;IAGH,MAAM,CAAS;IAEf;;OAEG;IAGH,MAAM,CAAS;IAEf,YAAY,KAAgC;QAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA7ED,0CA6EC;AAzEA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACR;AAGX;IADC,IAAA,0BAAM,GAAE;;kDACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;6CACI;AAGb;IADC,IAAA,0BAAM,GAAE;;8CACK;AAGd;IADC,IAAA,0BAAM,GAAE;;oDACW;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;+CACJ;AAGhB;IADC,IAAA,0BAAM,GAAE;;6CACI;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACJ;AAGf;IADC,IAAA,0BAAM,GAAE;8BACA,uBAAO;gDAAC;AAGjB;IADC,IAAA,0BAAM,GAAE;;gDACa;AAMtB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACE;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wDACK;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACO;AAK1B;IADC,IAAA,0BAAM,GAAE;;qDAKL;AASJ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACJ;AAOf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACJ"}
1
+ {"version":3,"file":"category.model.js","sourceRoot":"","sources":["../../../src/driving/category/category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAyD;AACzD,yDAAiD;AAEjD,+DAAsD;AAGtD,MAAa,eAAe;IAI3B,EAAE,CAAS;IAGX,SAAS,CAAS;IAGlB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAIpB,MAAM,CAAU;IAGhB,IAAI,CAAS;IAIb,MAAM,CAAS;IAGf,OAAO,CAAU;IAGjB,OAAO,CAA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EAAE,CAAC,OAAO,CAAC;;gEACa;AAKjC;IADC,IAAA,0BAAM,GAAE;;qDAKL;AASJ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACJ;AAOf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACJ"}
@@ -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/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"}
@@ -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/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"}
@@ -0,0 +1,6 @@
1
+ import { PaymentType } from "@driveup/shared";
2
+ export declare class SubmitPaymentDto {
3
+ amount: number;
4
+ description: string;
5
+ type: PaymentType;
6
+ }
@@ -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/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"}
@@ -0,0 +1,22 @@
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
+ }
@@ -0,0 +1,102 @@
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