#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
#   Author  :   RobertDing
#   E-mail  :   robertdingx@gmail.com
#   Date    :   16/07/06 16:11:50
#   Desc    :   分期设置
#

# 以`XY`开头指 小赢

XYBASE_URL = 'https://www.xiaoying.com/api/{subject}/{endpoint}'

REPAY_TYPE = 3              # 等额本息
LOAN_RATE = 1950            # 年化，19.5% 乘于10000得出, 数值经商务确认
SEND_PASSWORD = 0           # 0:不发送; 1:发送,该字段仅针对新注册用户
ID_TYPE = 1                 # 1：身份证 7：企业组织代码
UNDERLYING = 121            # 标的类型，定义一个产品的固定值，这个产品的标的类型是121
PERIOD_TYPE = 31
IMAGE_FAILURE_SECONDS = 30*60           # 图片失效时间 30分钟

XYMD5KEY = bytearray('74ba4d7ad1d5bc705e6c96bbf599c3f1', encoding='utf8')
XYPARTNER = 'WEI_ZHENG_FEN_QI'
XYCHANNEL = 'WEI_ZHENG_FEN_QI'
YINGTZ_KEY_TEST = 'yingtz_key_test.pem'
YINGTZ_KEY_PROD = 'yingtz_key_prod.pem'
GMEI_PRIVATE_KEY_PKCS8 = 'gmei_private_key_pkcs8.pem'
YINGTZ_KEY = YINGTZ_KEY_TEST

XIAOYING_EXCEPTION_STATUS_EMAIL_LIST = [
    'chanpin@wanmeizhensuo.com',
    'dingyingcai@gmei.com'
]
