def to_alipay_dict(self):
    params = dict()
    if self.amount:
        if hasattr(self.amount, 'to_alipay_dict'):
            params['amount'] = self.amount.to_alipay_dict()
        else:
            params['amount'] = self.amount
    if self.biz_no:
        if hasattr(self.biz_no, 'to_alipay_dict'):
            params['biz_no'] = self.biz_no.to_alipay_dict()
        else:
            params['biz_no'] = self.biz_no
    if self.currency_value:
        if hasattr(self.currency_value, 'to_alipay_dict'):
            params['currency_value'] = self.currency_value.to_alipay_dict()
        else:
            params['currency_value'] = self.currency_value
    if self.ext_info:
        if hasattr(self.ext_info, 'to_alipay_dict'):
            params['ext_info'] = self.ext_info.to_alipay_dict()
        else:
            params['ext_info'] = self.ext_info
    if self.order_no:
        if hasattr(self.order_no, 'to_alipay_dict'):
            params['order_no'] = self.order_no.to_alipay_dict()
        else:
            params['order_no'] = self.order_no
    if self.refund_type:
        if hasattr(self.refund_type, 'to_alipay_dict'):
            params['refund_type'] = self.refund_type.to_alipay_dict()
        else:
            params['refund_type'] = self.refund_type
    if self.remark:
        if hasattr(self.remark, 'to_alipay_dict'):
            params['remark'] = self.remark.to_alipay_dict()
        else:
            params['remark'] = self.remark
    if self.request_no:
        if hasattr(self.request_no, 'to_alipay_dict'):
            params['request_no'] = self.request_no.to_alipay_dict()
        else:
            params['request_no'] = self.request_no
    if self.request_time:
        if hasattr(self.request_time, 'to_alipay_dict'):
            params['request_time'] = self.request_time.to_alipay_dict()
        else:
            params['request_time'] = self.request_time
    if self.scene_type:
        if hasattr(self.scene_type, 'to_alipay_dict'):
            params['scene_type'] = self.scene_type.to_alipay_dict()
        else:
            params['scene_type'] = self.scene_type
    return params
def to_alipay_dict(self):
    params = dict()
    if self.amount:
        if hasattr(self.amount, 'to_alipay_dict'):
            params['amount'] = self.amount.to_alipay_dict()
        else:
            params['amount'] = self.amount
    if self.biz_no:
        if hasattr(self.biz_no, 'to_alipay_dict'):
            params['biz_no'] = self.biz_no.to_alipay_dict()
        else:
            params['biz_no'] = self.biz_no
    if self.currency_value:
        if hasattr(self.currency_value, 'to_alipay_dict'):
            params['currency_value'] = self.currency_value.to_alipay_dict()
        else:
            params['currency_value'] = self.currency_value
    if self.ext_info:
        if hasattr(self.ext_info, 'to_alipay_dict'):
            params['ext_info'] = self.ext_info.to_alipay_dict()
        else:
            params['ext_info'] = self.ext_info
    if self.order_no:
        if hasattr(self.order_no, 'to_alipay_dict'):
            params['order_no'] = self.order_no.to_alipay_dict()
        else:
            params['order_no'] = self.order_no
    if self.refund_type:
        if hasattr(self.refund_type, 'to_alipay_dict'):
            params['refund_type'] = self.refund_type.to_alipay_dict()
        else:
            params['refund_type'] = self.refund_type
    if self.remark:
        if hasattr(self.remark, 'to_alipay_dict'):
            params['remark'] = self.remark.to_alipay_dict()
        else:
            params['remark'] = self.remark
    if self.request_no:
        if hasattr(self.request_no, 'to_alipay_dict'):
            params['request_no'] = self.request_no.to_alipay_dict()
        else:
            params['request_no'] = self.request_no
    if self.request_time:
        if hasattr(self.request_time, 'to_alipay_dict'):
            params['request_time'] = self.request_time.to_alipay_dict()
        else:
            params['request_time'] = self.request_time
    if self.scene_type:
        if hasattr(self.scene_type, 'to_alipay_dict'):
            params['scene_type'] = self.scene_type.to_alipay_dict()
        else:
            params['scene_type'] = self.scene_type
    return params