text: export class Order {
      constructor(aRecord) {
          this._data = aRecord;
      }
  
      get quantity()  {return this._data.quantity;}
      get itemPrice() {return this._data.itemPrice;}
  
      get price() {
          return this.basePrice -
              this.quantityDiscount +
              this.shipping;
      }
  
      get shipping() {
          return Math.min(this.basePrice * 0.1, 100);
      }
  
      get quantityDiscount() {
          return Math.max(0, this.quantity - 500) * this.itemPrice * 0.05;
      }
  
      get basePrice() {
          return this.quantity * this.itemPrice;
      }
  }