package com.zbkj.service.wangshang.api.service;

import com.zbkj.service.wangshang.api.MybankObject;
import com.zbkj.service.wangshang.api.MybankResponse;
import com.zbkj.service.wangshang.api.domain.ResponseHead;
import com.zbkj.service.wangshang.api.domain.model.ProtocolWithholdRefundApplyResponseModel;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Mybank Api: ant.mybank.bkcloudfunds.protocol.withhold.refund.apply
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "document")
public class ProtocolWithholdRefundApplyResponse extends MybankResponse {

    private static final long serialVersionUID = -2096544695403613614L;
    @XmlElementRef
    private ProtocolWithholdRefundApply refundApply;

    public ProtocolWithholdRefundApply getRefundApply() {
        return refundApply;
    }

    public void setRefundApply(ProtocolWithholdRefundApply refundApply) {
        this.refundApply = refundApply;
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlRootElement(name = "response")
    public static class ProtocolWithholdRefundApply extends MybankObject {

        private static final long serialVersionUID = -3143434157338845394L;
        /**
         * 公共应答参数（head）
         */
        @XmlElementRef
        private ResponseHead responseHead;

        /**
         * 业务应答参数（body）
         */
        @XmlElementRef
        private ProtocolWithholdRefundApplyResponseModel model;

        public ResponseHead getResponseHead() {
            return responseHead;
        }

        public void setResponseHead(ResponseHead responseHead) {
            this.responseHead = responseHead;
        }

        public ProtocolWithholdRefundApplyResponseModel getModel() {
            return model;
        }

        public void setModel(ProtocolWithholdRefundApplyResponseModel model) {
            this.model = model;
        }
    }
}
