from paytmpg.pg.request.ExtraParameterMap import ExtraParameterMap
from paytmpg.pg.utils.stringUtil import make_string, equals


class RefundBaseRequest(ExtraParameterMap):

    def __init__(self):
        self.mid = None
        self.orderId = None
        self.refId = None
        super(RefundBaseRequest, self).__init__()

    def get_mid(self):
        return self.mid

    def set_mid(self, mid):
        self.mid = mid

    def get_order_id(self):
        return self.orderId

    def set_order_id(self, order_id):
        self.orderId = order_id

    def get_ref_id(self):
        return self.refId

    def set_ref_id(self, ref_id):
        self.refId = ref_id

    def __str__(self):
        return make_string(self)

    def __eq__(self, other):
        return equals(self, other)
