|
|
@ -5,10 +5,12 @@ import com.qniao.dam.domain.aggregate.paymentchannelorder.entity.PaymentChannelO |
|
|
import com.qniao.dam.domian.aggregate.paymentorder.constant.PaymentMethodEnum; |
|
|
import com.qniao.dam.domian.aggregate.paymentorder.constant.PaymentMethodEnum; |
|
|
import com.qniao.dam.infrastructure.persistent.dao.domain.PaymentOrderDao; |
|
|
import com.qniao.dam.infrastructure.persistent.dao.domain.PaymentOrderDao; |
|
|
import com.qniao.domain.Trans2DomainAssembler; |
|
|
import com.qniao.domain.Trans2DomainAssembler; |
|
|
|
|
|
import io.swagger.annotations.ApiModel; |
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
import lombok.Data; |
|
|
import lombok.Data; |
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotNull; |
|
|
import javax.validation.constraints.NotNull; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
@Data |
|
|
@Data |
|
|
public class PrePayThirdPartyDto implements Trans2DomainAssembler<PaymentChannelOrder> { |
|
|
public class PrePayThirdPartyDto implements Trans2DomainAssembler<PaymentChannelOrder> { |
|
|
@ -23,6 +25,18 @@ public class PrePayThirdPartyDto implements Trans2DomainAssembler<PaymentChannel |
|
|
@NotNull(message = "付款方式不能为空") |
|
|
@NotNull(message = "付款方式不能为空") |
|
|
private PaymentMethodEnum paymentMethod; |
|
|
private PaymentMethodEnum paymentMethod; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("第三方字段") |
|
|
|
|
|
private List<ThirdPartyFieldDto> authFields; |
|
|
|
|
|
|
|
|
|
|
|
@Data |
|
|
|
|
|
@ApiModel |
|
|
|
|
|
public static class ThirdPartyFieldDto { |
|
|
|
|
|
@NotNull(message = "关键字不能为空") |
|
|
|
|
|
private String key; |
|
|
|
|
|
|
|
|
|
|
|
private String value; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public PaymentChannelOrder trans2Domain() { |
|
|
public PaymentChannelOrder trans2Domain() { |
|
|
PaymentChannelOrder paymentChannelOrder = new PaymentChannelOrder(); |
|
|
PaymentChannelOrder paymentChannelOrder = new PaymentChannelOrder(); |
|
|
|