Module: Reapal::Api::Tender::TenderOneKeyRefund
- Defined in:
- lib/reapal/api/tender/tender_onekey_refund.rb
Instance Method Summary collapse
Instance Method Details
#tender_onekey_refund(flow_id, tender_no, periods, debit_contracts, debit_details, fee_details = [], defray_details = [], busway = '01', remark = '') ⇒ Hash
3.8 一键还款
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/reapal/api/tender/tender_onekey_refund.rb', line 47 def tender_onekey_refund(flow_id, tender_no, periods, debit_contracts, debit_details, fee_details=[], defray_details=[], busway='01', remark='') service = 'reapal.trust.onekeyRefund' post_path = '/tender/rest.htm' params = { orderNo: flow_id, tenderNo: tender_no, debitContracts: debit_contracts, debitDetails: debit_details, feeDetails: fee_details, defrayDetails: defray_details, periods: periods, 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_onekey_refund, ['0000']) if 'S' == res[:result] && '0001' == res[:data][:resultCode] res[:result] = 'F' end Reapal.logger.info res res end |