can send appointment request

This commit is contained in:
2022-09-07 19:38:29 +02:00
parent 6266083ab8
commit b0d52afc00
5 changed files with 74 additions and 72 deletions
+7 -3
View File
@@ -1,5 +1,8 @@
const PublishType = require("./PublishType");
class ReserveResultPojo {
constructor(id, phoneNumber, passportNumber, mail, lastName, firstName, storeType, url) {
constructor(id, phoneNumber, passportNumber, mail, lastName, firstName, storeType, url, type = PublishType.ERROR) {
this.id = id;
this.phoneNumber = phoneNumber;
this.passportNumber = passportNumber;
@@ -8,6 +11,7 @@ class ReserveResultPojo {
this.storeType = storeType;
this.url = url;
this.mail = mail;
this.type = type;
}
to_mongo_dict() {
@@ -23,8 +27,8 @@ class ReserveResultPojo {
}
}
static create_from_contact(contactPojo, id, url, storeType) {
return new ReserveResultPojo(id, contactPojo.phoneNumber, contactPojo.passportNumber, contactPojo.mail, contactPojo.lastName, contactPojo.firstName, storeType, url);
static create_from_contact(contactPojo, id, url, storeType, type) {
return new ReserveResultPojo(id, contactPojo.phoneNumber, contactPojo.passportNumber, contactPojo.mail, contactPojo.lastName, contactPojo.firstName, storeType, url, type);
}
}