// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.sps.data;

import com.google.appengine.api.blobstore.BlobKey;
import com.google.common.collect.ImmutableSet;

/** Class to represent a receipt and its properties. */
public class Receipt {
  private final long id;
  private final long userId;
  private final long timestamp;
  private final BlobKey blobKey;
  private final String imageUrl;
  private final double price;
  private final String store;
  private final String label;
  private final ImmutableSet<String> categories;
  private final String rawText;

  public Receipt(long id, long userId, long timestamp, BlobKey blobKey, String imageUrl,
      double price, String store, String label, ImmutableSet<String> categories, String rawText) {
    this.id = id;
    this.userId = userId;
    this.timestamp = timestamp;
    this.blobKey = blobKey;
    this.imageUrl = imageUrl;
    this.price = price;
    this.store = store;
    this.label = label;
    this.categories = ImmutableSet.copyOf(categories); // creates a deep copy
    this.rawText = rawText;
  }
}
@@ -1006,38 +1006,8 @@
 re;%0A
-  private final String label;%0A
   pr
@@ -1051,16 +1051,16 @@
 gories;%0A
+
   privat
@@ -1210,22 +1210,8 @@
 ore,
- String label,
  Imm
@@ -1416,16 +1416,16 @@
  price;%0A
+
     this
@@ -1444,32 +1444,8 @@
 re;%0A
-    this.label = label;%0A
     

Refactor label in Receipt