package com.fdkankan.ucenter.vo.request;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class DownNumParam {
    private Integer abroad;
    private Integer count;
    private Integer payType;
    private String sceneName;
    private String sceneNum;
    private String skuSn;
    private String userName;

    private Integer monthQy; //国际服参数

    private Long  incrementId;

    private Integer incrementType ;

    private Integer incrementTypeId ;


    private Integer timeZoneOff;

    private Integer autoPay ;

    private String agentKey;

    public Integer getIncrementType() {
        if(incrementType == null && StringUtils.isNotBlank(skuSn) && StringUtils.isNumeric(skuSn)){
            return  Integer.valueOf(skuSn);
        }
        return 1;
    }
}
