All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.redkalex.pay.PayRefundResponse Maven / Gradle / Ivy

There is a newer version: 2.7.7
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.redkalex.pay;

import java.util.Map;
import org.redkale.convert.ConvertDisabled;

/**
 * 详情见: https://redkale.org
 *
 * @author zhangjx
 */
public class PayRefundResponse extends PayResponse {

    protected long refundedMoney; //  已退款金额。 单位:分

    @Override
    public PayRefundResponse retcode(int retcode) {
        this.retcode = retcode;
        this.retinfo = PayRetCodes.retInfo(retcode);
        return this;
    }

    @Override
    public PayRefundResponse retinfo(String retinfo) {
        if (retinfo != null) this.retinfo = retinfo;
        return this;
    }

    @Override
    public PayRefundResponse result(Map result) {
        this.setResult(result);
        return this;
    }

    public long getRefundedMoney() {
        return refundedMoney;
    }

    public void setRefundedMoney(long refundedMoney) {
        this.refundedMoney = refundedMoney;
    }

    @Deprecated
    @ConvertDisabled
    public long getRefundedmoney() {
        return refundedMoney;
    }

    @Deprecated
    @ConvertDisabled
    public void setRefundedmoney(long refundedMoney) {
        this.refundedMoney = refundedMoney;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy