package com.jwipc.order.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import com.jwipc.api.dto.SapBaseParamDTO;
import lombok.Data;

import java.util.List;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Data
public class CreateDeliveryToSapDTO extends SapBaseParamDTO {

    @Data
    public static class IS_HEAD {
        @JSONField(name = "ZORDER_CODE")
        public String ZORDER_CODE;
        @JSONField(name = "ZTYPE")
        public String ZTYPE;
    }

    @Data
    public static class ItItem {
        @JSONField(name = "item")
        public List<Item> item;
    }

    @Data
    public static class Item {
        //送货单行号
        @JSONField(name = "ZORDER_ROW")
        public String ZORDER_ROW;
        //采购订单
        @JSONField(name = "EBELN")
        public String EBELN;
        //采购订单行
        @JSONField(name = "EBELP")
        public String EBELP;
        //送货数量
        @JSONField(name = "MENGE")
        public String MENGE;
    }
    @JSONField(name = "IS_HEAD")
    private IS_HEAD IS_HEAD;
    @JSONField(name = "IT_ITEM")
    private ItItem IT_ITEM;

}
