can send appointment request
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user