Sha256: 9b3f7a3691f764a4586e3b6c05c82d7f5905e9ad62a86e562c6cef09dc52276d

Contents?: true

Size: 1.97 KB

Versions: 14

Compression:

Stored size: 1.97 KB

Contents

# coding: utf-8
module RockFintech
  module Api
    module Batch
      module BatchEndCreditB

        # 批量结束债权
        #
        # @param notify_url 回调地址
        # @param items [ Array ] 还款信息(此参数传入时必须用 to_json 转化)
        #          * :out_card_no
        #          * :in_card_no
        #          * :assets_no
        #          * :auth_code
        #          * :serial_no
        #          * :third_reserved
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :code [String] 结果代码
        #   * :msg [String] 结果信息
        #   * :data: 具体业务返回信息
        #       * :batch_no [String] 批次号
        #       * :batch_count [String] 数量
        #       * :batch_date [String] 日期
        #       * :items [Array]
        #         * :result [String] 处理相应码('00': 成功, 其他为失败)
        #         * :message [String] 应答描述
        #         * :out_card_no [String] 扣款电子账号
        #         * :in_card_no [String] 转入电子账号
        #         * :assets_no [String] 标的编号
        #         * :serial_no [String] 投标申请流水号
        #         * :third_reserved [String] 第三方流水号
        #
        def batch_end_credit_b(batch_count, batch_no, batch_type,
                               batch_date, notify_url, items, remark='')


          service = 'batch_end_credit_b'

          params = {
            batch_count: batch_count,
            batch_no: batch_no,
            batch_type: batch_type,
            batch_date: batch_date,
            notify_url: notify_url,
            items: items,
            custom: remark,
          }

          res = operate_post(:operate, service, params, Http::ErrorCode.batch_end_credit_b, ['RD000000'])

          res
        end

      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rock_fintech-0.19.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.18.4 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.18.1 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.17.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.16.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.15.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.14.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.13.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.12.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.11.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.10.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.9.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.8.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb
rock_fintech-0.7.0 lib/rock_fintech/api/batch/batch_end_credit_b.rb