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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eccd66f92908953d1cf851afe749a99de500931a
4
- data.tar.gz: bcf25aa7a9f780a5568064a69461aa765f0fd934
3
+ metadata.gz: a074850a4e4728b637d6915008604056eb888dac
4
+ data.tar.gz: d0efdad45edbddb795b371a72b06c030082809d2
5
5
  SHA512:
6
- metadata.gz: 3b35b431ecfe2cdd1b752fc9676227916b53711e278e87456082e9db8dfc61be1f2e7823ea315041c033eb388d663bfe4ca944ff8cd33f6e88f8e595cf728559
7
- data.tar.gz: 17b224265494b3789c98dcc797020eabc2e2760e207a7886a156e84715eeca95991493a314ab61b23c3605228ff77ec18adf054c3f8c93feb2cffd461c3b8c66
6
+ metadata.gz: 33a144d4c8e2ca30e79e3410aa4ebda45c2421119009b72fa0e9a914448fa3ecb29fa36e40f71ac06a6285a6e29a413171745fb1a41c0ca47dc3e12a8b4471b0
7
+ data.tar.gz: 3d411444bb4c59fc820c91d199aa3974f4010ee6d4b931138da3ca0b9d3288ebe4c3ee29acf669c8a8832f691a2ffba5808d438a883b6fccd8fd83a5132939d7
@@ -14,7 +14,7 @@ module Reapal
14
14
  #
15
15
  # @return [ Hash ] 结果集(见通用返回)
16
16
  #
17
- def operate_post(request_type, service, params, post_path, fail_codes, success_codes, version=nil)
17
+ def operate_post(request_type, service, params, post_path, fail_codes, success_codes, version='3.0')
18
18
  response = Http.post(service, params, @config, post_path, version)
19
19
 
20
20
  res = Reapal::Utils.api_result(params, response)
@@ -5,7 +5,7 @@ module Reapal
5
5
  module Money
6
6
  module DepositQuery
7
7
 
8
- # 2.6 充值查询(API)
8
+ # 2.3 充值查询(API)
9
9
  #
10
10
  # @param deposit_flow_id [ String ] 充值订单号
11
11
  #
@@ -0,0 +1,46 @@
1
+ # coding: utf-8
2
+
3
+ module Reapal
4
+ module Api
5
+ module Money
6
+ module MemberPaymentQuery
7
+
8
+ # 2.7 会员缴费查询
9
+ #
10
+ # @param member_payment_flow_id [ String ] 缴费订单号
11
+ #
12
+ # @return [ Hash ] 结果集
13
+ # * :result [String] 业务结果:'S/F/P'
14
+ # * :request_params [Hash] 请求参数
15
+ # * :response [Object] 请求返回对象
16
+ # * :error_code [String] 错误代号
17
+ # * :error_msg [String] 错误信息
18
+ # * :data: 具体业务返回信息
19
+ # * :orderNo [String] 缴费订单号
20
+ # * :amount [String] 缴费金额
21
+ # * :resultCode [String] 结果代码 0000:缴费成功 0001:失败
22
+ #
23
+ def member_payment_query(member_payment_flow_id)
24
+ service = 'reapal.trust.memberPaymentQuery'
25
+ post_path = '/reagw/tender/rest.htm'
26
+
27
+ params = {
28
+ orderNo: member_payment_flow_id,
29
+ queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
30
+ }
31
+
32
+ res = operate_post(:query, service, params, post_path, Http::ErrorCode.member_payment_query, ['0000'])
33
+
34
+ if 'P' == res[:result] && '0001' == res[:data][:resultCode]
35
+ res[:result] = 'F'
36
+ end
37
+
38
+ Reapal.logger.info res
39
+
40
+ res
41
+ end
42
+
43
+ end
44
+ end
45
+ end
46
+ end
@@ -5,15 +5,15 @@ module Reapal
5
5
  module Money
6
6
  module SubAccount
7
7
 
8
- # 2.11 企业分账(API)
8
+ # 2.8 企业分账(API)
9
9
  #
10
10
  # @param flow_id [ String ] 完成订单号
11
11
  # @param sub_type [ String ] 分账类型 1:代还款。2:分账。3:其它
12
12
  # @param sub_details [ Array ] 分账明细
13
- # * serial_no [String] 分账流水号
14
- # * payee_contracts [String] 收款方协议号
15
- # * amount [BigDecimal] 金额
16
- # * mark [String] 备注
13
+ # * :serialNo [String] 分账流水号
14
+ # * :payeeContracts [String] 收款方协议号
15
+ # * :amount [BigDecimal] 金额
16
+ # * :remark [String] 备注
17
17
  # @param remark [ String ] 业务备注信息
18
18
  #
19
19
  # @return [ Hash ] 结果集
@@ -5,7 +5,7 @@ module Reapal
5
5
  module Money
6
6
  module SubAccountQuery
7
7
 
8
- # 2.12 企业分账查询(API)
8
+ # 2.9 企业分账查询(API)
9
9
  #
10
10
  # @param sub_account_flow_id [ String ] 分账订单号
11
11
  # @param serial_no [ String ] 分账流水号(传空串表示该订单批量查询)
@@ -5,7 +5,7 @@ module Reapal
5
5
  module Money
6
6
  module WithdrawQuery
7
7
 
8
- # 2.8 提现查询(API)
8
+ # 2.5 提现查询(API)
9
9
  #
10
10
  # @param withdraw_flow_id [ String ] 提现订单号
11
11
  #
@@ -21,6 +21,7 @@ module Reapal
21
21
  # * :data: 具体业务返回信息
22
22
  # * :orderNo [String] 商户订单号
23
23
  # * :realAmount [String] 实际投标金额(只针对投标查询)
24
+ # * :tenderStatus [String] 01:待确认 02:募集中 03:已放款 04:已结清 05:已逾期 99:已关闭(只针对发标查询)
24
25
  # * :resultCode [String] 结果代码
25
26
  #
26
27
  def query_by_single_flow_id(flow_id, service_type)
@@ -0,0 +1,63 @@
1
+ # coding: utf-8
2
+
3
+ module Reapal
4
+ module Api
5
+ module Tender
6
+ module HistoryTenderInfoModify
7
+
8
+ # 3.19 历史标的信息修改
9
+ #
10
+ # @param flow_id [ String ] 订单号
11
+ # @param tender_no [ String ] 商户系统标的号
12
+ # @param fee_amount [ BigDecimal ] 手续费
13
+ # @param refund_term [ String ] 还款期数
14
+ # @param tender_type [String] 标的类别,是否允许自动投标。00:不允许自动投标 01:允许自动投标
15
+ # @param debit_contracts [String] 借款方协议号
16
+ # @param guarant_contract [String] 担保方协议号
17
+ # @param commissioned_contract [String] 受托方协议号
18
+ # @param tender_status [String] 标的状态 02:募集中 03:已放款 04:已结清
19
+ # @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
20
+ # @param remark [String] 备注
21
+ #
22
+ # @return [ Hash ] 结果集
23
+ # * :result [String] 业务结果:'S/F/P'
24
+ # * :request_params [Hash] 请求参数
25
+ # * :response [Object] 请求返回对象
26
+ # * :error_code [String] 错误代号
27
+ # * :error_msg [String] 错误信息
28
+ # * :data: 具体业务返回信息
29
+ # * :orderNo [String] 订单号
30
+ # * :resultCode [String] 结果代码 0000:成功
31
+ #
32
+ def history_tender_info_modify(flow_id, tender_no, fee_amount, refund_term,
33
+ tender_type, debit_contracts, guarant_contract=nil,
34
+ commissioned_contract=nil, tender_status=nil, busway='01', remark='')
35
+ service = 'reapal.trust.historyTenderInfoModify'
36
+ post_path = '/reagw/tender/rest.htm'
37
+
38
+ params = {
39
+ orderNo: flow_id,
40
+ tenderNo: tender_no,
41
+ feeAmount: fee_amount,
42
+ refundTerm: refund_term,
43
+ tenderType: tender_type,
44
+ debitContracts: debit_contracts,
45
+ guarantContract: guarant_contract,
46
+ commissionedContract: commissioned_contract,
47
+ tenderStatus: tender_status,
48
+ busway: busway,
49
+ remark: remark,
50
+ applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
51
+ }
52
+
53
+ res = operate_post(:operate, service, params, post_path, Http::ErrorCode.history_tender_info_modify, ['0000'])
54
+
55
+ Reapal.logger.info res
56
+
57
+ res
58
+ end
59
+
60
+ end # module TenderApply
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,42 @@
1
+ # coding: utf-8
2
+
3
+ module Reapal
4
+ module Api
5
+ module Tender
6
+ module RefundGuarantPaymentQuery
7
+
8
+ # 3.17 借款人还代偿款查询
9
+ #
10
+ # @param refund_flow_id [ String ] 还款订单号
11
+ #
12
+ # @return [ Hash ] 结果集
13
+ # * :result [String] 业务结果:'S/F/P'
14
+ # * :request_params [Hash] 请求参数
15
+ # * :response [Object] 请求返回对象
16
+ # * :error_code [String] 错误代号
17
+ # * :error_msg [String] 错误信息
18
+ # * :data: 具体业务返回信息
19
+ # * :orderNo [String] 订单号
20
+ # * :amount [Number] 金额
21
+ # * :resultCode [String]
22
+ #
23
+ def refund_guarant_payment_query(refund_flow_id)
24
+ service = 'reapal.trust.refundGuarantPaymentQuery'
25
+ post_path = '/reagw/tender/rest.htm'
26
+
27
+ params = {
28
+ orderNo: refund_flow_id,
29
+ queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
30
+ }
31
+
32
+ res = operate_post(:query, service, params, post_path, Http::ErrorCode.refund_guarant_payment_query, ['0000'])
33
+
34
+ Reapal.logger.info res
35
+
36
+ res
37
+ end
38
+
39
+ end # module TenderAuthQuery
40
+ end
41
+ end
42
+ end
@@ -5,7 +5,7 @@ module Reapal
5
5
  module Tender
6
6
  module TenderAllCancel
7
7
 
8
- # 3.7 撤标
8
+ # 3.6 撤标
9
9
  #
10
10
  # @param flow_id [String] 撤标订单号
11
11
  # @param tender_no [String] 商户系统标的号
@@ -12,12 +12,16 @@ module Reapal
12
12
  # @param tender_name [String] 商户系统标的名称
13
13
  # @param money [BigDecimal] 金额
14
14
  # @param rate [BigDecimal] 利率 10.3表示10.3%
15
- # @param debit_term [integer] 标的期限
15
+ # @param fee_amount [BigDecimal] 手续费
16
+ # @param refund_term [String] 还款期数
17
+ # @param debit_term [Integer] 标的期限
16
18
  # @param debit_type [String] 期数类型,年:0,月:1,日:2
17
19
  # @param repay_date [Time] 还款日期
18
20
  # @param expiry_date [Time] 投标截止日期
21
+ # @param tender_type [String] 标的类别,是否允许自动投标。00:不允许自动投标 01:允许自动投标
19
22
  # @param debit_contracts [String] 借款方协议号
20
23
  # @param guarant_contract [String] 担保方协议号
24
+ # @param commissioned_contract [String] 受托方协议号
21
25
  # @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
22
26
  # @param remark [String] 备注
23
27
  #
@@ -31,9 +35,9 @@ module Reapal
31
35
  # * :orderNo [String] 发标订单号
32
36
  # * :resultCode [String] 结果代码
33
37
  #
34
- def tender_apply(flow_id, tender_no, tender_name, money, rate,
35
- debit_term, debit_type, repay_date, expiry_date,
36
- debit_contracts, guarant_contract=nil, busway='01', remark='')
38
+ def tender_apply(flow_id, tender_no, tender_name, money, rate, fee_amount, refund_term,
39
+ debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts,
40
+ guarant_contract=nil, commissioned_contract=nil, busway='01', remark='')
37
41
  service = 'reapal.trust.tenderApply'
38
42
  post_path = '/reagw/tender/rest.htm'
39
43
 
@@ -43,12 +47,16 @@ module Reapal
43
47
  tenderName: tender_name,
44
48
  amount: money,
45
49
  rate: rate,
50
+ feeAmount: fee_amount,
51
+ refundTerm: refund_term,
46
52
  debitTerm: debit_term,
47
53
  debitType: debit_type,
48
54
  repayDate: repay_date.strftime("%Y%m%d"),
49
55
  expiryDate: expiry_date.strftime("%Y%m%d"),
56
+ tenderType: tender_type,
50
57
  debitContracts: debit_contracts,
51
58
  guarantContract: guarant_contract,
59
+ commissionedContract: commissioned_contract,
52
60
  busway: busway,
53
61
  remark: remark,
54
62
  applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
@@ -0,0 +1,77 @@
1
+ # coding: utf-8
2
+
3
+ module Reapal
4
+ module Api
5
+ module Tender
6
+ module TenderApplyModify
7
+
8
+ # 3.3 标的信息修改
9
+ #
10
+ # @param flow_id [String] 订单号
11
+ # @param tender_no [String] 商户系统标的号
12
+ # @param tender_name [String] 商户系统标的名称
13
+ # @param money [BigDecimal] 金额
14
+ # @param rate [BigDecimal] 利率 10.3表示10.3%
15
+ # @param fee_amount [BigDecimal] 手续费
16
+ # @param refund_term [String] 还款期数
17
+ # @param debit_term [Integer] 标的期限
18
+ # @param debit_type [String] 期数类型,年:0,月:1,日:2
19
+ # @param repay_date [Time] 还款日期
20
+ # @param expiry_date [Time] 投标截止日期
21
+ # @param tender_type [String] 标的类别,是否允许自动投标。00:不允许自动投标 01:允许自动投标
22
+ # @param debit_contracts [String] 借款方协议号
23
+ # @param guarant_contract [String] 担保方协议号
24
+ # @param commissioned_contract [String] 受托方协议号
25
+ # @param tender_status [String] 标的状态 如果变更标的信息,则该字段为空,其他信息字段不为空,且标的状态为 01待确认。02:募集中 03:已放款 04:已结清 05:已逾期
26
+ # @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
27
+ # @param remark [String] 备注
28
+ #
29
+ # @return [ Hash ] 结果集
30
+ # * :result [String] 业务结果:'S/F/P'
31
+ # * :request_params [Hash] 请求参数
32
+ # * :response [Object] 请求返回对象
33
+ # * :error_code [String] 错误代号
34
+ # * :error_msg [String] 错误信息
35
+ # * :data: 具体业务返回信息
36
+ # * :orderNo [String] 发标订单号
37
+ # * :resultCode [String] 结果代码
38
+ #
39
+ def tender_apply_modify(flow_id, tender_no, tender_name, money, rate, fee_amount, refund_term,
40
+ debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts,
41
+ guarant_contract=nil, commissioned_contract=nil, tender_status=nil, busway='01', remark='')
42
+ service = 'reapal.trust.tenderApplyModify'
43
+ post_path = '/reagw/tender/rest.htm'
44
+
45
+ params = {
46
+ orderNo: flow_id,
47
+ tenderNo: tender_no,
48
+ tenderName: tender_name,
49
+ amount: money,
50
+ rate: rate,
51
+ feeAmount: fee_amount,
52
+ refundTerm: refund_term,
53
+ debitTerm: debit_term,
54
+ debitType: debit_type,
55
+ repayDate: repay_date.strftime("%Y%m%d"),
56
+ expiryDate: expiry_date.strftime("%Y%m%d"),
57
+ tenderType: tender_type,
58
+ debitContracts: debit_contracts,
59
+ guarantContract: guarant_contract,
60
+ commissionedContract: commissioned_contract,
61
+ tenderStatus: tender_status,
62
+ busway: busway,
63
+ remark: remark,
64
+ applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
65
+ }
66
+
67
+ res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_apply_modify, ['0000'])
68
+
69
+ Reapal.logger.info res
70
+
71
+ res
72
+ end
73
+
74
+ end # module TenderApply
75
+ end
76
+ end
77
+ end
@@ -5,12 +5,11 @@ module Reapal
5
5
  module Tender
6
6
  module TenderAuthCancel
7
7
 
8
- # 3.22 标的授权取消API
8
+ # 3.14 标的授权取消
9
9
  #
10
10
  # @param flow_id [String] 订单号
11
11
  # @param contracts [ String ] 用户协议号
12
- # @param services [String] 授权业务。 02一键投标 03 为一键还款 04 一键债转
13
- # @param tender_no [String] 标的号
12
+ # @param services [String] 授权业务。 02 自动投标 03 自动还款 05 自动担保还款
14
13
  # @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
15
14
  # @param remark [String] 备注
16
15
  #
@@ -24,7 +23,7 @@ module Reapal
24
23
  # * :services [String] 授权业务。 02一键投标 ,03 为一键还款 04 一键债转
25
24
  # * :resultCode [String] 结果代码
26
25
  #
27
- def tender_auth_cancel(flow_id, contracts, services, tender_no='', busway="01", remark='')
26
+ def tender_auth_cancel(flow_id, contracts, services, busway="01", remark='')
28
27
  service = 'reapal.trust.authCancel'
29
28
  post_path = '/reagw/user/restApi.htm'
30
29
 
@@ -33,7 +32,6 @@ module Reapal
33
32
  contracts: contracts,
34
33
  services: services,
35
34
  busway: busway,
36
- tenderNo: tender_no,
37
35
  remark: remark,
38
36
  applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
39
37
  }
@@ -5,10 +5,10 @@ module Reapal
5
5
  module Tender
6
6
  module TenderAuthQuery
7
7
 
8
- # 3.21 标的授权查询
8
+ # 3.13 标的授权查询
9
9
  #
10
- # @param flow_id [String] 操作订单号
11
- # @param contracts [String] 用户协议号
10
+ # @param flow_id [ String ] 操作订单号
11
+ # @param contract [ String ] 用户协议号
12
12
  #
13
13
  # @return [ Hash ] 结果集
14
14
  # * :result [String] 业务结果:'S/F/P'
@@ -17,19 +17,22 @@ module Reapal
17
17
  # * :error_code [String] 错误代号
18
18
  # * :error_msg [String] 错误信息
19
19
  # * :data: 具体业务返回信息
20
+ # * :orderNo [String] 订单号
20
21
  # * :contracts [String] 用户协议号
21
- # * :servicesDetail [JSON] 授权明细
22
- # * :services [String] 授权服务。 02一键投标 ,03 为一键还款 04 一键债转
22
+ # * :servicesDetail [Array] 授权明细
23
+ # * :services [String] 授权服务。 02 自动投标 ,03 自动还款 05 自动担保还款
23
24
  # * :authLimit [String] 授权期限日期 YYYYMMDD
24
- # * :terderNo [String] 标的号
25
-
26
- def tender_auth_query(flow_id, contracts)
25
+ # * :amount [Number] 金额
26
+ # * :usedTotalAmount [Number] 已使用授权金额
27
+ # * :totalAmount [Number] 累计金额
28
+ #
29
+ def tender_auth_query(flow_id, contract)
27
30
  service = 'reapal.trust.authQuery'
28
31
  post_path = '/reagw/user/restApi.htm'
29
32
 
30
33
  params = {
31
34
  orderNo: flow_id,
32
- contracts: contracts,
35
+ contracts: contract,
33
36
  queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
34
37
  }
35
38