1 parent
2a465f88c5
commit
ae7c5ff0c3
2 files changed
+5
-4
No files matched your search
@@ -57,9 +57,10 @@ export class Address {
|
||||
country: string;
|
||||
|
||||
/**
|
||||
* Turns this entity into it's response class.
|
||||
* Checks if this is a valid address
|
||||
*/
|
||||
public toResponse() {
|
||||
return new Error("NotImplemented");
|
||||
public get isValidAddress(): Boolean {
|
||||
if (!this.address1 || !this.city || !this.country || !this.postalcode) { return false; }
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user