UNPKG

e-commercee

Version:

This package contains a backend of what would be the logic of a e-commercee software, the architecture used is made in 3 layers

28 lines (24 loc) 871 B
import { User } from "./User"; export class Client extends User { private _shippingaddress: string = ""; private _creditcardnumber: string = ""; public get shippingaddress(): string { return this._shippingaddress; } public set shippingaddress(value: string) { this._shippingaddress = value; } public get creditcardnumber(): string { return this._creditcardnumber; } public set creditcardnumber(value: string) { this._creditcardnumber = value; } constructor(psalt,pidentitycard:string,pcompletename:string,ppasword:string,pusername:string,pshippingaddress:string,pcreditcard:string) { super(psalt,pidentitycard,pcompletename,ppasword,pusername); this.shippingaddress=pshippingaddress; this.creditcardnumber=pcreditcard; } }