reapal 0.9.13 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/reapal/api/api_helper.rb +1 -1
  3. data/lib/reapal/api/money/deposit_query.rb +1 -1
  4. data/lib/reapal/api/money/member_payment_query.rb +46 -0
  5. data/lib/reapal/api/money/sub_account.rb +5 -5
  6. data/lib/reapal/api/money/sub_account_query.rb +1 -1
  7. data/lib/reapal/api/money/withdraw_query.rb +1 -1
  8. data/lib/reapal/api/order/query_by_single_flow_id.rb +1 -0
  9. data/lib/reapal/api/tender/history_tender_info_modify.rb +63 -0
  10. data/lib/reapal/api/tender/refund_guarant_payment_query.rb +42 -0
  11. data/lib/reapal/api/tender/tender_all_cancel.rb +1 -1
  12. data/lib/reapal/api/tender/tender_apply.rb +12 -4
  13. data/lib/reapal/api/tender/tender_apply_modify.rb +77 -0
  14. data/lib/reapal/api/tender/tender_auth_cancel.rb +3 -5
  15. data/lib/reapal/api/tender/tender_auth_query.rb +12 -9
  16. data/lib/reapal/api/tender/tender_close.rb +44 -0
  17. data/lib/reapal/api/tender/tender_finish.rb +14 -13
  18. data/lib/reapal/api/tender/tender_onekey_invest.rb +3 -3
  19. data/lib/reapal/api/tender/tender_onekey_invest_history.rb +50 -0
  20. data/lib/reapal/api/tender/tender_onekey_refund.rb +24 -17
  21. data/lib/reapal/api/tender/tender_repayment_complete.rb +1 -1
  22. data/lib/reapal/api/tender/tender_repayment_project.rb +1 -1
  23. data/lib/reapal/api/user/balance_query.rb +1 -1
  24. data/lib/reapal/api/user/bind_card_query.rb +5 -6
  25. data/lib/reapal/api/user/contract_query.rb +8 -5
  26. data/lib/reapal/api/user/mobile_query.rb +4 -4
  27. data/lib/reapal/api/user/modify_bind_bank_card.rb +1 -1
  28. data/lib/reapal/api/user/onekey_batch_contract.rb +20 -5
  29. data/lib/reapal/api/user/set_history_user_type.rb +44 -0
  30. data/lib/reapal/api/user/undo_bind_bank_card.rb +1 -1
  31. data/lib/reapal/form/{certificate_form.rb → bind_bank_card_form.rb} +9 -10
  32. data/lib/reapal/form/business_auth_form.rb +12 -9
  33. data/lib/reapal/form/close_account_form.rb +42 -0
  34. data/lib/reapal/form/com_contract_form.rb +64 -0
  35. data/lib/reapal/form/deposit_apply_form.rb +2 -3
  36. data/lib/reapal/form/find_trade_password_form.rb +1 -1
  37. data/lib/reapal/form/member_payment_form.rb +51 -0
  38. data/lib/reapal/form/mobile_modify_form.rb +1 -1
  39. data/lib/reapal/form/refund_guarant_payment_form.rb +50 -0
  40. data/lib/reapal/form/shortcut_recharge_form.rb +43 -0
  41. data/lib/reapal/form/signle_tender_transfer_form.rb +76 -0
  42. data/lib/reapal/form/tender_apply_confirm_form.rb +42 -0
  43. data/lib/reapal/form/tender_invest_form.rb +49 -0
  44. data/lib/reapal/form/tender_refund_form.rb +81 -0
  45. data/lib/reapal/form/user_contract_form.rb +46 -0
  46. data/lib/reapal/form/withdraw_apply_form.rb +1 -1
  47. data/lib/reapal/http/communicate.rb +1 -1
  48. data/lib/reapal/http/error_code/tender.rb +16 -0
  49. data/lib/reapal/http/error_code/user.rb +4 -0
  50. data/lib/reapal/version.rb +1 -1
  51. metadata +20 -12
  52. data/lib/reapal/api/money/deposit_apply_api.rb +0 -77
  53. data/lib/reapal/api/money/deposit_confirm_api.rb +0 -57
  54. data/lib/reapal/api/money/deposit_sms_api.rb +0 -52
  55. data/lib/reapal/api/tender/tender_onekey_single_transfer.rb +0 -80
  56. data/lib/reapal/api/user/bank_card_add_sms.rb +0 -65
  57. data/lib/reapal/api/user/bank_card_add_sms_again.rb +0 -47
  58. data/lib/reapal/api/user/bank_card_add_sms_confirm.rb +0 -46
  59. data/lib/reapal/api/user/onekey_com_contract.rb +0 -81
  60. data/lib/reapal/api/user/onekey_contract.rb +0 -52
@@ -1,52 +0,0 @@
1
- # coding: utf-8
2
-
3
- module Reapal
4
- module Api
5
- module User
6
- module OnekeyContract
7
-
8
- # 1.2 个人一键签约(API)
9
- #
10
- # @param flow_id [ String ] 订单号
11
- # @param true_name [ String ] 真实姓名
12
- # @param identity_id [ String ] 身份证号
13
- # @param phone [ String ] 手机号
14
- # @param bus_way [ String ] 00:PC端;01:手机端;02:Pad端;03:其它
15
- #
16
- # @return [ Hash ] 结果集
17
- # * :result [String] 业务结果:'S/F/P'
18
- # * :request_params [Hash] 请求参数
19
- # * :response [Object] 请求返回对象
20
- # * :error_code [String] 错误代号
21
- # * :error_msg [String] 错误信息
22
- # * :data: 具体业务返回信息
23
- # * :contracts [String] 用户签约协议号
24
- # * :userName [String] 姓名
25
- # * :userIdentity [String] 身份证
26
- # * :userMobile [String] 手机号
27
- #
28
- def onekey_contract(flow_id, true_name, identity_id, phone, bus_way='01')
29
- service = 'reapal.trust.onekeyContract'
30
- post_path = '/reagw/agreement/agree.htm'
31
-
32
- params = {
33
- orderNo: flow_id,
34
- userName: true_name,
35
- userIdentity: identity_id,
36
- userMobile: phone,
37
- busway: bus_way,
38
- remark: '',
39
- applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
40
- }
41
-
42
- res = operate_post(:operate, service, params, post_path, Http::ErrorCode.contract_create, ['0000', '0007'])
43
-
44
- Reapal.logger.info res
45
-
46
- res
47
- end
48
-
49
- end # module
50
- end
51
- end
52
- end