OnlineRefundConverter.java
845 Bytes
package com.diligrp.cashier.boss.util;
import com.diligrp.cashier.shared.codec.IConverter;
import com.diligrp.cashier.shared.spi.domain.CashierRefundBO;
import com.diligrp.cashier.trade.domain.OnlineRefundDTO;
public class OnlineRefundConverter implements IConverter<CashierRefundBO, OnlineRefundDTO> {
public static IConverter<CashierRefundBO, OnlineRefundDTO> INSTANCE = new OnlineRefundConverter();
@Override
public OnlineRefundDTO convert(CashierRefundBO cashierRefund) {
OnlineRefundDTO onlineRefund = new OnlineRefundDTO();
onlineRefund.setTradeId(cashierRefund.getTradeId());
onlineRefund.setAmount(cashierRefund.getAmount());
onlineRefund.setNotifyUrl(cashierRefund.getNotifyUrl());
onlineRefund.setDescription(cashierRefund.getDescription());
return onlineRefund;
}
}