org.yes.tools.pay.module.request.BTOCRefundRequest Maven / Gradle / Ivy
package org.yes.tools.pay.module.request;
import lombok.Data;
import lombok.experimental.Accessors;
import org.yes.tools.pay.config.PayConfig;
@Data
@Accessors(chain = true)
public class BTOCRefundRequest {
//商户号
private String merchantCode;
//终端号
private String terminalCode;
//商户订单号
private String merchantOrderId;
//银商订单号
private String originalOrderId;
//退款请求标识 标识一次退款请求,同一笔订单多次退款需要保证唯一,长度不超过50位
private String refundRequestId;
//交易金额 退货金额,单位:分
private Integer transactionAmount;
//交易币种 必须与原支付交易一致
private String transactionCurrencyCode;
public void checkAndSign(PayConfig payConfig) {
this.merchantOrderId = payConfig.getSourceSn() + this.merchantOrderId;
//人民币
this.transactionCurrencyCode = "156";
}
}