package com.yami.shop.delivery.comment.api.paotui.model.request;

import com.yami.shop.delivery.comment.api.paotui.model.Base;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class StoreAddRequest extends Base {

    // 必传字段
    private Long origin_id; // 门店ID
    private String name; // 门店名称
    private Long city; // 城市编码
    private Long district; // 区域编码
    private String phone; // 手机号码
    private String address; // 门店地址
    private String longitude; // 门店经度
    private String latitude; // 门店纬度
    private String category; // 物品类别
    private final Integer map_type = 1; // 坐标类型，默认1

    // 非必传字段
    private String logistics; // 配送平台
    private Config config; // 门店配送设置

    // 配置项内部类
    public static class Config {
        private String dispatchOther = "0"; // 指派时优先配送员
        private Integer delayDelivery = 0; // 延迟配送(分钟)
        private Integer autoTips = 0; // 自动小费


    }

}
