app/app/src/main/java/com/admt/inventoryTracker/AddStockRequestParameters.java
/*
Copyright 2022 DigitME2

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

http://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.admt.inventoryTracker;

import java.util.Date;

public class AddStockRequestParameters {
    public String Barcode;
    public String ItemId;
    public String LocationId;
    public Double BulkItemCount; // only applicable for bulk items
    public Double ItemQuantityToAdd; // allows for adding a partial pack to the system
    public String ExpiryDate;
    public String BatchNumber;
    public String SerialNumber;
    public String DateOfManufacture;

    public AddStockRequestParameters(){}

    public AddStockRequestParameters Clone(){
        AddStockRequestParameters newParams = new AddStockRequestParameters();
        newParams.Barcode = this.Barcode;
        newParams.ItemId = this.ItemId;
        newParams.LocationId = this.LocationId;
        newParams.BulkItemCount = this.BulkItemCount;
        newParams.ItemQuantityToAdd = this.ItemQuantityToAdd;
        newParams.ExpiryDate = this.ExpiryDate;
        newParams.BatchNumber = this.BatchNumber;
        newParams.SerialNumber = this.SerialNumber;
        newParams.DateOfManufacture = this.DateOfManufacture;

        return newParams;
    }
}
