1234567891011121314151617181920212223242526272829303132333435363738 |
- # -*- coding: utf-8 -*-
- # !/usr/bin/env python
- from enum import unique, IntEnum
- @unique
- class JDOpenErrorCode(IntEnum):
- # TODO 需要确定错误 code吗
- MY_ERROR_SIGNATURE = -101
- MY_VALID_ERROR = -102
- MY_INVALID_PARAMETER = -103
- class BankType(object):
- WX = 'WX'
- ALIPAY = 'ALIPAY'
- JDPAY = 'JDPAY'
- class SettleWay(object):
- MANUAL = 'MANUAL'
- AUTOMATIC = 'AUTOMATIC'
- @classmethod
- def choices(cls):
- return [cls.MANUAL, cls.AUTOMATIC]
- class WithdrawMode(object):
- D0 = 'D0'
- D1 = 'D1'
- @classmethod
- def choices(cls):
- return [cls.D0, cls.D1]
|