first commit

This commit is contained in:
2022-09-07 15:12:11 +02:00
parent 1689094851
commit 6266083ab8
13 changed files with 760 additions and 32 deletions
+32
View File
@@ -0,0 +1,32 @@
class ReserveResultPojo {
constructor(id, phoneNumber, passportNumber, mail, lastName, firstName, storeType, url) {
this.id = id;
this.phoneNumber = phoneNumber;
this.passportNumber = passportNumber;
this.firstName = firstName;
this.lastName = lastName;
this.storeType = storeType;
this.url = url;
this.mail = mail;
}
to_mongo_dict() {
return {
id: this.id,
phone: this.phoneNumber,
firstName: this.firstName,
lastName: this.lastName,
email: this.mail,
passport: this.passportNumber,
url: this.url,
store_type: this.storeType
}
}
static create_from_contact(contactPojo, id, url, storeType) {
return new ReserveResultPojo(id, contactPojo.phoneNumber, contactPojo.passportNumber, contactPojo.mail, contactPojo.lastName, contactPojo.firstName, storeType, url);
}
}
module.exports = ReserveResultPojo