Module: Reapal::Http::ErrorCode

Defined in:
lib/reapal/http/error_code/user.rb,
lib/reapal/http/error_code/money.rb,
lib/reapal/http/error_code/order.rb,
lib/reapal/http/error_code/common.rb,
lib/reapal/http/error_code/tender.rb

Class Method Summary collapse

Class Method Details

.bind_cardObject



31
32
33
34
35
36
# File 'lib/reapal/http/error_code/user.rb', line 31

def self.bind_card
  @_bind_card ||= %w(9060 9064 9065 9083 9084 9085 0017 0302 0303 0328
                     0329 0330 0332 0333 0335 0339 0340 0341 0342 0343
                     0345 0346 0347 0348 0350 0351 0352 0358 0359 0360
                     0362 0363) | contract_common
end

.com_contract_createObject



19
20
21
# File 'lib/reapal/http/error_code/user.rb', line 19

def self.com_contract_create
  @_com_contract_common ||= ['9015', '0525'] | contract_common
end

.commonObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/reapal/http/error_code/common.rb', line 7

def self.common
  @_common ||= %w(0002 0003 0004 0005 0006 0007 0008 0009 0010 0011
                  0012 0014 0015 0016 0017 9001 9002 9003
                  9005 9006 9007 9008 9009 9011 9012 9013 9014 9015
                  9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026
                  9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037
                  9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048
                  9049 9050 9051 9052 9053 9054 9055 9056 9056 9057 
                  9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069)
end

.contract_commonObject



7
8
9
10
11
12
13
# File 'lib/reapal/http/error_code/user.rb', line 7

def self.contract_common
  @_contract_common ||= %w(0101 0102 0103 0104 0105 0106 0107 0108 0109 0110
                           0111 0112 0113 0114 0115 0116 0117 0118 0119 0120
                           0121 0122 0123 0124 0125 0126 0127 0128 0129 0130
                           0131 0132 0150 0151 0152 0153 0154 0155 0156 0157
                           0158 0159 0160 0161 0162 0163 0164 0165 0166 0167) | common
end

.contract_createObject



15
16
17
# File 'lib/reapal/http/error_code/user.rb', line 15

def self.contract_create
  @_contract_create ||= ['0332'] | contract_common
end

.contract_queryObject



23
24
25
# File 'lib/reapal/http/error_code/user.rb', line 23

def self.contract_query
  @_contract_query ||= contract_common
end

.deposit_apply_apiObject



28
29
30
31
# File 'lib/reapal/http/error_code/money.rb', line 28

def self.deposit_apply_api
  @_deposit_apply_api ||= %w(1701 1702 1703 1704 1705 1706 1707 1708 1709
                             1710 1711 1712 1713 1714 0001) | deposit_common
end

.deposit_commonObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/reapal/http/error_code/money.rb', line 7

def self.deposit_common
  @_deposit_common ||= %w(0201 0202 0203 0204 0205 0206 0207 0208 0209 1701 1702
                          1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713
                          1714 1801 1802 1803 1804 1805 1901 1002 1004 1005 1006
                          1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017
                          1018 1019 1020 1021 1023 1024 1025 1026 1027 1028 1029
                          1030 1031 1032 1033 1034 1036 1037 1038 1039 1040 1041
                          1042 1043 1047 1048 1051 1088 1115 1806 2001 2002 2003
                          2004 2005 2006 2007 2008 2009 2011 2012 2013 2014 2015
                          2017 2018 2020 2021 2022 2023 2024 2025 2027 2028 2029
                          2030 2031 2032 2033 3001 3002 3003 3004 3005 3006 3007
                          3008 3009 3010 3011 3012 3013 3014 3015 3016 3018 3019
                          3020 3021 3022 3023 3024 3025 3026 3027 3028 3030 3031
                          3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3051
                          3052 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066
                          3068 3069 3074 3075 3077 3078 3079 3080 3084 3086 3088
                          3094 3095 3096 3097 3098 3099 3100 3135 3136 4002 4003
                          4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014
                          4015 4016 4018 4019 6001 6002) | common
end

.deposit_confirm_apiObject



33
34
35
# File 'lib/reapal/http/error_code/money.rb', line 33

def self.deposit_confirm_api
  @_deposit_confirm_api ||= %w(1901) | deposit_common
end

.deposit_queryObject



41
42
43
# File 'lib/reapal/http/error_code/money.rb', line 41

def self.deposit_query
  @_deposit_query ||= deposit_common
end

.deposit_sms_apiObject



37
38
39
# File 'lib/reapal/http/error_code/money.rb', line 37

def self.deposit_sms_api
  @_deposit_sms_api ||= %w(1801 1802 1803 1804 1805) | deposit_common
end

.history_tender_info_modifyObject



82
83
84
# File 'lib/reapal/http/error_code/tender.rb', line 82

def self.history_tender_info_modify
  @_history_tender_info_modify ||= [] | tender_common
end

.member_payment_queryObject



38
39
40
# File 'lib/reapal/http/error_code/user.rb', line 38

def self.member_payment_query
  @_member_payment_query ||= contract_common
end

.mobileObject



27
28
29
# File 'lib/reapal/http/error_code/user.rb', line 27

def self.mobile
  @_mobile ||= ['1108'] | contract_common
end

.query_by_flow_idObject



11
12
13
# File 'lib/reapal/http/error_code/order.rb', line 11

def self.query_by_flow_id
  @_query_by_flow_id ||= %w(1103 1104 1105 1106 1107 1108 1109 0001) | tender_common
end

.query_by_single_flow_idObject



7
8
9
# File 'lib/reapal/http/error_code/order.rb', line 7

def self.query_by_single_flow_id
  @_query_by_single_flow_id ||= %w(1103 1104 1105 1106 1107 1108 1109 0001 0519) | tender_common
end

.refund_guarant_payment_queryObject



74
75
76
# File 'lib/reapal/http/error_code/tender.rb', line 74

def self.refund_guarant_payment_query
  @_refund_guarant_payment_query ||= [] | tender_common
end

.sub_accountObject



52
53
54
# File 'lib/reapal/http/error_code/money.rb', line 52

def self.
  @_sub_account ||= %w(0001 1601 1602 1603 1604 1605 1606 1607) | common
end

.sub_account_queryObject



56
57
58
# File 'lib/reapal/http/error_code/money.rb', line 56

def self.
  @_sub_account_query ||= %w(1609 1611) | common
end

.tender_applyObject



24
25
26
27
28
29
30
# File 'lib/reapal/http/error_code/tender.rb', line 24

def self.tender_apply
  @_tender_apply ||= %w(0500 0501 0502 0503 0504 0505 0506 0507 0508
                        0509 0510 0511 0512 0513 0514 0515 0516 0517
                        0518 0519 0520 0521 0522 0523 0524 0525 0526
                        0527 0528 0529 0530 0531 0532 0533 0534 0535
                        0536) | tender_common
end

.tender_apply_modifyObject



70
71
72
# File 'lib/reapal/http/error_code/tender.rb', line 70

def self.tender_apply_modify
  @_tender_apply_modify ||= [] | tender_common
end

.tender_auth_cancelObject



44
45
46
47
48
# File 'lib/reapal/http/error_code/tender.rb', line 44

def self.tender_auth_cancel
  @_tender_auth_cancel ||= %w(1301 1302 1303 1304 1305 1306 1307 1308 1309
                              1310 1311 1312 1313 1314 1315 1316 1317 1318
                              1319 1320 1321 1322 1323 1324 1325) | tender_common
end

.tender_auth_queryObject



40
41
42
# File 'lib/reapal/http/error_code/tender.rb', line 40

def self.tender_auth_query
  @_tender_auth_query ||= %w(1100 1101 1102 1103 1104 1105 1106 1107 1108 1109) | tender_common
end

.tender_cancelObject



16
17
18
19
20
21
# File 'lib/reapal/http/error_code/tender.rb', line 16

def self.tender_cancel
  @_tender_cancel ||= %w(0700 0701 0702 0703 0704 0705 0706 0707 0708
                         0709 0710 0711 0712 0713 0714 0715 0716 0717
                         0718 0719 1501 1502 1503 1504 1505 1506 1507
                         1508) | tender_common
end

.tender_closeObject



78
79
80
# File 'lib/reapal/http/error_code/tender.rb', line 78

def self.tender_close
  @_tender_close ||= [] | tender_common
end

.tender_commonObject



7
8
9
10
11
12
13
14
# File 'lib/reapal/http/error_code/tender.rb', line 7

def self.tender_common
  @_tender_common ||= %w(0400 0401 0402 0405 0406 0407 0408 0409 0410
                         0411 0412 0413 0414 0415 0416 0417 0418 0419
                         0420 0421 0422 0423 0424 0425 0426 0427 0428
                         0429 0430 0431 0432 0433 0434 0435 0436 0437
                         0438 0439 0440 0441 0442 0443 0444 0445 0446
                         0447 0448 0449 0450) | common
end

.tender_finishObject



50
51
52
# File 'lib/reapal/http/error_code/tender.rb', line 50

def self.tender_finish
  @_tender_finish ||= %w(0801 0803 0804 0805 0806 0807) | tender_common
end

.tender_onekey_investObject



54
55
56
57
# File 'lib/reapal/http/error_code/tender.rb', line 54

def self.tender_onekey_invest
  @_tender_onekey_invest ||= %w(0519 0522 0536 0600 0601 0602 0603 0606 0607
                                0608 0609 1343 0640) | tender_common
end

.tender_onekey_refundObject



59
60
61
62
63
# File 'lib/reapal/http/error_code/tender.rb', line 59

def self.tender_onekey_refund
  @_tender_onekey_refund ||= %w(0901 0902 0903 0904 0905 0906 0907 0908 0909 0910
                                0911 0912 0913 0914 0915 0916 0917 0918 0919 0920 0921
                                0922 0923 0001 0942) | tender_common
end

.tender_onekey_single_transferObject



65
66
67
68
# File 'lib/reapal/http/error_code/tender.rb', line 65

def self.tender_onekey_single_transfer
  @_tender_onekey_single_transfer ||= %w(1000 1001 1002 1003 1004 1005 1006
                                         1009 1010 1011 1012 1013 0001) | tender_common
end

.tender_repayment_completeObject



36
37
38
# File 'lib/reapal/http/error_code/tender.rb', line 36

def self.tender_repayment_complete
  @_tender_repayment_complete ||= [] | tender_common
end

.tender_repayment_projectObject



32
33
34
# File 'lib/reapal/http/error_code/tender.rb', line 32

def self.tender_repayment_project
  @_tender_repayment_project ||= [] | tender_common
end

.withdraw_queryObject



45
46
47
48
49
50
# File 'lib/reapal/http/error_code/money.rb', line 45

def self.withdraw_query
  @_withdraw_query ||= %w(0301 0302 0303 0304 0305 0306 0307 0308 0309 0310
                          0311 0312 0313 0314 0315 0316 0317 0318 0319 0320
                          0321 0322 0333 0324 0326 0327 0328 0329 0330 0331
                          0332 0333 0334 0335 0336 0337 0338 0339 0340) | common
end