canPurchase method

bool canPurchase()

Implementation

bool canPurchase() {
  if (inventoryPolicy != null && inventoryPolicy == "continue") {
    return true;
  }
  return inStock();
}