package com.fdkankan.ucenter.httpClient.param;

import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class PayOrderParam {
    private String serveName = "ucenter";
    private BigDecimal orderMoney;
    private String orderType;
    private String userName;
    private String nickName;
    private List<PayGoods> goodsInfo;
    private Integer autoPay;
    private String autoStartTime;
    /*
        DAY,MONTH,YEAR
     */
    private String autoPayTime;

    public PayOrderParam(BigDecimal orderMoney, String orderType, String userName, String nickName, List<PayGoods> goodsInfo,PayAutoPayVo autoPay) {
        this.orderMoney = orderMoney;
        this.orderType = orderType;
        this.userName = userName;
        this.nickName = nickName;
        this.goodsInfo = goodsInfo;
        if(autoPay != null){
            this.autoPay = autoPay.getAutoPay();
            this.autoPayTime = autoPay.getAutoPayTime();
            this.autoStartTime = autoPay.getAutoStartTime();
        }
    }
}
