Module: Reapal::Api::Tender::TenderAllCancel

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

Instance Method Summary collapse

Instance Method Details

#tender_all_cancel(flow_id, tender_no, original_flow_id, busway = "01", remark = '') ⇒ Hash

3.6 撤标

Parameters:

  • flow_id (String)

    撤标订单号

  • tender_no (String)

    商户系统标的号

  • original_flow_id (String)

    原来投标时订单号

  • 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: 具体业务返回信息

      • :orderNo [String] 撤销订单号

      • :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_all_cancel.rb', line 26

def tender_all_cancel(flow_id, tender_no, original_flow_id, busway="01", remark='')
  service = 'reapal.trust.tenderAllCancel'
  post_path = '/tender/rest.htm'

  params = {
    orderNo: flow_id,
    tenderNo: tender_no,
    orgOrderNo: original_flow_id,
    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_cancel, ['0000'])

  Reapal.logger.info res

  res
end