def get_params(self):
    params = dict()
    params[P_METHOD] = 'alipay.open.mini.innerversion.online.publish'
    params[P_VERSION] = self.version
    if self.biz_model:
        params[P_BIZ_CONTENT] = json.dumps(obj=self.biz_model.to_alipay_dict(), use_decimal=True, ensure_ascii=False, sort_keys=True, separators=(',', ':'))
    if self.biz_content:
        if hasattr(self.biz_content, 'to_alipay_dict'):
            params['biz_content'] = json.dumps(obj=self.biz_content.to_alipay_dict(), use_decimal=True, ensure_ascii=False, sort_keys=True, separators=(',', ':'))
        else:
            params['biz_content'] = self.biz_content
    if self.terminal_type:
        params['terminal_type'] = self.terminal_type
    if self.terminal_info:
        params['terminal_info'] = self.terminal_info
    if self.prod_code:
        params['prod_code'] = self.prod_code
    if self.notify_url:
        params['notify_url'] = self.notify_url
    if self.return_url:
        params['return_url'] = self.return_url
    if self.udf_params:
        params.update(self.udf_params)
    return params
def get_params(self):
    params = dict()
    params[P_METHOD] = 'alipay.open.mini.innerversion.online.publish'
    params[P_VERSION] = self.version
    if self.biz_model:
        params[P_BIZ_CONTENT] = json.dumps(obj=self.biz_model.to_alipay_dict(), use_decimal=True, ensure_ascii=False, sort_keys=True, separators=(',', ':'))
    if self.biz_content:
        if hasattr(self.biz_content, 'to_alipay_dict'):
            params['biz_content'] = json.dumps(obj=self.biz_content.to_alipay_dict(), use_decimal=True, ensure_ascii=False, sort_keys=True, separators=(',', ':'))
        else:
            params['biz_content'] = self.biz_content
    if self.terminal_type:
        params['terminal_type'] = self.terminal_type
    if self.terminal_info:
        params['terminal_info'] = self.terminal_info
    if self.prod_code:
        params['prod_code'] = self.prod_code
    if self.notify_url:
        params['notify_url'] = self.notify_url
    if self.return_url:
        params['return_url'] = self.return_url
    if self.udf_params:
        params.update(self.udf_params)
    return params