/*
**************************************************************************************
* Program Name  : SaveToPurchaseOrderResponse.java
* Author        : Kawade Swapnali
* Date          : Feb 14, 2026
* System Name   : gswbs
* SRF No.       : 
* Purpose       : To send response after saving Purchase Order records
*                 including successfully saved records and duplicate info.
*
* Fields        : savedPurchaseOrders,
*                 duplicateMessages
*
* Notes         : This DTO is used to return bulk save result for
*                 Purchase Order module.
*
* Called From   : PurchaseOrderServiceImpl, PurchaseOrderController
* Beans Accessed: PurchaseOrder (Entity)
**************************************************************************************
*/
package com.coder.purchase.order.model;

import java.util.List;
import lombok.Data;
@Data
public class SaveToPurchaseOrderResponse {

    /**
     * List of PurchaseOrder records which are successfully saved in database.
     *
     * Example:
     * [
     *   { purchaseOrderId: "PO/2026/001", purchaseOrderNo: "PO-101", ... },
     *   { purchaseOrderId: "PO/2026/002", purchaseOrderNo: "PO-102", ... }
     * ]
     */
    private List<PurchaseOrder> savedPurchaseOrders;

    /**
     * List of messages for duplicate PurchaseOrder entries.
     *
     * Example:
     * [
     *   "Purchase Order PO-101 already exists.",
     *   "Purchase Order PO-102 already exists."
     * ]
     *
     * These records are skipped and not saved again.
     */
    private List<String> duplicateMessages;
}
