@movalib/movalib-commons 1.68.14 → 1.68.16
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.
|
@@ -31,9 +31,12 @@ export default class Customer extends User {
|
|
|
31
31
|
contactId?: number;
|
|
32
32
|
establishmentId?: number;
|
|
33
33
|
paymentMethods?: string;
|
|
34
|
+
discountRate?: number;
|
|
34
35
|
paymentPeriod?: number;
|
|
36
|
+
billingEmail?: string;
|
|
37
|
+
additionalEmails?: string;
|
|
35
38
|
constructor(id: string, roles: Role[] | undefined, firstname: string | undefined, lastname: string | undefined, avatar: string | undefined, addresses: Address[] | undefined, vehicles: Vehicle[], email: string | undefined, turnover: {
|
|
36
39
|
key: string;
|
|
37
40
|
value: number;
|
|
38
|
-
}[], type: CustomerType, companyName: string, companyPhoneNumber: string, billingAddress: Address | undefined, notes: string, siren?: string, vatId?: string, contactId?: number, establishmentId?: number, paymentMethods?: string, paymentPeriod?: number);
|
|
41
|
+
}[], type: CustomerType, companyName: string, companyPhoneNumber: string, billingAddress: Address | undefined, notes: string, siren?: string, vatId?: string, contactId?: number, establishmentId?: number, paymentMethods?: string, paymentPeriod?: number, discountRate?: number, billingEmail?: string, additionalEmails?: string);
|
|
39
42
|
}
|
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
var User_1 = __importDefault(require("./User"));
|
|
22
22
|
var Customer = /** @class */ (function (_super) {
|
|
23
23
|
__extends(Customer, _super);
|
|
24
|
-
function Customer(id, roles, firstname, lastname, avatar, addresses, vehicles, email, turnover, type, companyName, companyPhoneNumber, billingAddress, notes, siren, vatId, contactId, establishmentId, paymentMethods, paymentPeriod) {
|
|
24
|
+
function Customer(id, roles, firstname, lastname, avatar, addresses, vehicles, email, turnover, type, companyName, companyPhoneNumber, billingAddress, notes, siren, vatId, contactId, establishmentId, paymentMethods, paymentPeriod, discountRate, billingEmail, additionalEmails) {
|
|
25
25
|
if (roles === void 0) { roles = []; }
|
|
26
26
|
if (firstname === void 0) { firstname = ""; }
|
|
27
27
|
if (lastname === void 0) { lastname = ""; }
|
|
@@ -45,6 +45,9 @@ var Customer = /** @class */ (function (_super) {
|
|
|
45
45
|
_this.establishmentId = establishmentId;
|
|
46
46
|
_this.paymentMethods = paymentMethods;
|
|
47
47
|
_this.paymentPeriod = paymentPeriod;
|
|
48
|
+
_this.discountRate = discountRate;
|
|
49
|
+
_this.billingEmail = billingEmail;
|
|
50
|
+
_this.additionalEmails = additionalEmails;
|
|
48
51
|
return _this;
|
|
49
52
|
}
|
|
50
53
|
return Customer;
|
|
@@ -59,7 +59,7 @@ export default class Garage {
|
|
|
59
59
|
mailCustomization?: boolean;
|
|
60
60
|
billingActive?: boolean;
|
|
61
61
|
billingToken?: string;
|
|
62
|
-
|
|
62
|
+
legacyQuoteActive?: boolean;
|
|
63
63
|
demoBillingActive?: boolean;
|
|
64
64
|
appId?: number;
|
|
65
65
|
companyRegistrationNumber?: string;
|
|
@@ -71,7 +71,7 @@ export default class Garage {
|
|
|
71
71
|
newDocumentEditor?: boolean;
|
|
72
72
|
isOnlineAppointment?: boolean;
|
|
73
73
|
isOnlineQuote?: boolean;
|
|
74
|
-
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, prestationCategories: CategoryPrestation[], dayPeriodFastServiceExcluded: boolean, loanerVehicleFastServiceExcluded: boolean, fastServiceThreshold: number, timezone: string, settings: Settings[], vehicles?: VehicleGarage[], contactEmail?: string, logo?: string, suppliers?: Supplier[], documents?: Document[], subscriptions?: Subscription[], loanerVehicleActive?: boolean, loanerVehicleRequestActive?: boolean, customStyle?: string, subscription?: Subscription, partialWorkforce?: number, mailCustomization?: boolean, billingActive?: boolean, billingToken?: string,
|
|
74
|
+
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, prestationCategories: CategoryPrestation[], dayPeriodFastServiceExcluded: boolean, loanerVehicleFastServiceExcluded: boolean, fastServiceThreshold: number, timezone: string, settings: Settings[], vehicles?: VehicleGarage[], contactEmail?: string, logo?: string, suppliers?: Supplier[], documents?: Document[], subscriptions?: Subscription[], loanerVehicleActive?: boolean, loanerVehicleRequestActive?: boolean, customStyle?: string, subscription?: Subscription, partialWorkforce?: number, mailCustomization?: boolean, billingActive?: boolean, billingToken?: string, legacyQuoteActive?: boolean, appId?: number, establishmentRegistrationNumber?: string, companyRegistrationNumber?: string, reopeningDate?: Date, targetMargin?: number, demoBillingActive?: boolean, onlyBilling?: boolean, newDocumentEditor?: boolean, googleReviewUrl?: string, isOnlineAppointment?: boolean, isOnlineQuote?: boolean);
|
|
75
75
|
}
|
|
76
76
|
export declare function isStockActive(g: Garage): boolean;
|
|
77
77
|
export declare function getSetting(settings: Settings[], code: string): string | null;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getSetting = exports.isStockActive = void 0;
|
|
4
4
|
var Settings_1 = require("./Settings");
|
|
5
5
|
var Garage = /** @class */ (function () {
|
|
6
|
-
function Garage(id, adminId, name, address, workforce, prestations, schedules, contactPhone, prestationCategories, dayPeriodFastServiceExcluded, loanerVehicleFastServiceExcluded, fastServiceThreshold, timezone, settings, vehicles, contactEmail, logo, suppliers, documents, subscriptions, loanerVehicleActive, loanerVehicleRequestActive, customStyle, subscription, partialWorkforce, mailCustomization, billingActive, billingToken,
|
|
6
|
+
function Garage(id, adminId, name, address, workforce, prestations, schedules, contactPhone, prestationCategories, dayPeriodFastServiceExcluded, loanerVehicleFastServiceExcluded, fastServiceThreshold, timezone, settings, vehicles, contactEmail, logo, suppliers, documents, subscriptions, loanerVehicleActive, loanerVehicleRequestActive, customStyle, subscription, partialWorkforce, mailCustomization, billingActive, billingToken, legacyQuoteActive, appId, establishmentRegistrationNumber, companyRegistrationNumber, reopeningDate, targetMargin, demoBillingActive, onlyBilling, newDocumentEditor, googleReviewUrl, isOnlineAppointment, isOnlineQuote) {
|
|
7
7
|
if (onlyBilling === void 0) { onlyBilling = false; }
|
|
8
8
|
if (newDocumentEditor === void 0) { newDocumentEditor = false; }
|
|
9
9
|
this.id = id;
|
|
@@ -33,7 +33,7 @@ var Garage = /** @class */ (function () {
|
|
|
33
33
|
this.mailCustomization = mailCustomization;
|
|
34
34
|
this.billingActive = billingActive;
|
|
35
35
|
this.billingToken = billingToken;
|
|
36
|
-
this.
|
|
36
|
+
this.legacyQuoteActive = legacyQuoteActive;
|
|
37
37
|
this.appId = appId;
|
|
38
38
|
this.companyRegistrationNumber = companyRegistrationNumber;
|
|
39
39
|
this.establishmentRegistrationNumber = establishmentRegistrationNumber;
|
package/package.json
CHANGED
package/src/models/Customer.ts
CHANGED
|
@@ -33,7 +33,10 @@ export default class Customer extends User {
|
|
|
33
33
|
contactId?: number;
|
|
34
34
|
establishmentId?: number;
|
|
35
35
|
paymentMethods?: string;
|
|
36
|
-
|
|
36
|
+
discountRate?:number;
|
|
37
|
+
paymentPeriod?:number;
|
|
38
|
+
billingEmail?:string;
|
|
39
|
+
additionalEmails?:string
|
|
37
40
|
constructor(
|
|
38
41
|
id: string,
|
|
39
42
|
roles: Role[] = [],
|
|
@@ -54,7 +57,10 @@ export default class Customer extends User {
|
|
|
54
57
|
contactId?: number,
|
|
55
58
|
establishmentId?: number,
|
|
56
59
|
paymentMethods?:string,
|
|
57
|
-
paymentPeriod?: number
|
|
60
|
+
paymentPeriod?: number,
|
|
61
|
+
discountRate?:number,
|
|
62
|
+
billingEmail?:string,
|
|
63
|
+
additionalEmails?:string
|
|
58
64
|
) {
|
|
59
65
|
super(id, roles, firstname, lastname, avatar, email);
|
|
60
66
|
|
|
@@ -71,5 +77,8 @@ export default class Customer extends User {
|
|
|
71
77
|
this.establishmentId = establishmentId;
|
|
72
78
|
this.paymentMethods = paymentMethods;
|
|
73
79
|
this.paymentPeriod = paymentPeriod;
|
|
80
|
+
this.discountRate = discountRate;
|
|
81
|
+
this.billingEmail = billingEmail;
|
|
82
|
+
this.additionalEmails = additionalEmails;
|
|
74
83
|
}
|
|
75
84
|
}
|
package/src/models/Garage.ts
CHANGED
|
@@ -60,7 +60,7 @@ export default class Garage {
|
|
|
60
60
|
mailCustomization?: boolean;
|
|
61
61
|
billingActive?: boolean;
|
|
62
62
|
billingToken?: string;
|
|
63
|
-
|
|
63
|
+
legacyQuoteActive?: boolean;
|
|
64
64
|
demoBillingActive?: boolean;
|
|
65
65
|
appId?: number;
|
|
66
66
|
companyRegistrationNumber?: string;
|
|
@@ -101,7 +101,7 @@ export default class Garage {
|
|
|
101
101
|
mailCustomization?: boolean,
|
|
102
102
|
billingActive?: boolean,
|
|
103
103
|
billingToken?: string,
|
|
104
|
-
|
|
104
|
+
legacyQuoteActive?: boolean,
|
|
105
105
|
appId?: number,
|
|
106
106
|
establishmentRegistrationNumber?: string,
|
|
107
107
|
companyRegistrationNumber?: string,
|
|
@@ -141,7 +141,7 @@ export default class Garage {
|
|
|
141
141
|
this.mailCustomization = mailCustomization;
|
|
142
142
|
this.billingActive = billingActive;
|
|
143
143
|
this.billingToken = billingToken;
|
|
144
|
-
this.
|
|
144
|
+
this.legacyQuoteActive = legacyQuoteActive;
|
|
145
145
|
this.appId = appId;
|
|
146
146
|
this.companyRegistrationNumber = companyRegistrationNumber;
|
|
147
147
|
this.establishmentRegistrationNumber = establishmentRegistrationNumber;
|