Module: Reapal::Api::Tender::TenderAuthCancel

Defined in:
lib/reapal/api/tender/tender_auth_cancel.rb

Instance Method Summary collapse

Instance Method Details

#tender_auth_cancel(flow_id, contracts, services, busway = "01", remark = '') ⇒ Hash

3.14 标的授权取消

Parameters:

  • flow_id (String)

    订单号

  • contracts (String)

    用户协议号

  • services (String)

    授权业务。 02 自动投标 03 自动还款 05 自动担保还款

  • busway (String) (defaults to: "01")

    设备通道, ‘00’:PC端;‘01’:手机端(默认);‘02’:Pad端;‘03’:其它

  • remark (String) (defaults to: '')

    备注

Returns:

  • (Hash)

    结果集

    • :result [String] 业务结果:‘S/F/P’

    • :request_params [Hash] 请求参数

    • :response [Object] 请求返回对象

    • :error_code [String] 错误代号

    • :error_msg [String] 错误信息

    • :data: 具体业务返回信息

      • :services [String] 授权业务。 02一键投标 ,03 为一键还款 04 一键债转

      • :resultCode [String] 结果代码



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/reapal/api/tender/tender_auth_cancel.rb', line 26

def tender_auth_cancel(flow_id, contracts, services, busway="01", remark='')
  service = 'reapal.trust.authCancel'
  post_path = '/user/restApi.htm'

  params = {
    cancleOrderNo: flow_id,
    contracts: contracts,
    services: services,
    busway: busway,
    remark: remark,
    applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
  }

  res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_auth_cancel, ['0000'])

  Reapal.logger.info res

  res
end