Sha256: 23f6d59b8bfab3055afb2e13701c9d23fd35c3427c9cabadc7e0627c406cbb9a

Contents?: true

Size: 1.53 KB

Versions: 3

Compression:

Stored size: 1.53 KB

Contents

# coding: utf-8

module Reapal
  module Form
    module RefundGuarantPaymentForm

      # 3.16 借款人还代偿款
      #
      # @param flow_id [ String ] 还款订单号
      # @param tender_no [ String ] 代偿还款标的号
      # @param amount [ Bigdecimal ] 金额
      # @param fee_amount [ Bigdecimal ] 预期手续费
      # @param payee_contract [ String ] 标的对应的担保方协议号
      # @param return_url [String] 回调 url
      # @param notify_url [String] 通知 url
      # @param busway [String] 设备通道,默认手机端。00:PC端;01:手机端;02:Pad端;03:其它
      #
      # @return [ Hash ] 结果集
      #   * :form_method
      #     * :method
      #     * :url
      #   * :form_data
      #     * :merchant_id
      #     * :encryptkey
      #     * :data
      #
      def refund_guarant_payment_form(flow_id, tender_no, amount,
                                      fee_amount, payee_contract,
                                      return_url, notify_url, busway='01')
        service = 'reapal.trust.refundGuarantPayment'
        post_path = '/reagw/tender/rest.htm'

        params = {
          orderNo: flow_id,
          tenderNo: tender_no,
          amount: amount,
          feeAmount: fee_amount,
          payeeContract: payee_contract,
          busway: busway,
          returnUrl: return_url,
          notifyUrl: notify_url,
          applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
        }

        get_form_data(service, params, post_path)
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reapal-0.11.0 lib/reapal/form/refund_guarant_payment_form.rb
reapal-0.10.1 lib/reapal/form/refund_guarant_payment_form.rb
reapal-0.10.0 lib/reapal/form/refund_guarant_payment_form.rb