Sha256: 749d5ab8cb7d25440a57aa04dfd3c5c46c1c65f51522a40a778886dbb4830bbf

Contents?: true

Size: 1.3 KB

Versions: 12

Compression:

Stored size: 1.3 KB

Contents

# coding: utf-8

module Reapal
  module Api
    module User
      module UndoBindBankCard

        # 1.13 撤销绑卡 (API)
        #
        # @param flow_id [ String ] 订单号
        # @param contracts [ String ] 用户协议号
        # @param bank_account_no [ String ] 银行卡信息(卡号后四位)
        #
        # @return [ Hash ] 结果集
        #   * :result [String] 业务结果:'S/F/P'
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :error_code [String] 错误代号
        #   * :error_msg [String] 错误信息
        #   * :data: 具体业务返回信息
        #       * :orderNo [String] 订单号
        #       * :resultCode [String] 结果代码 0000:撤销绑卡成功
        #
        def undo_bind_bank_card(flow_id, contracts, bank_account_no)
          service = 'reapal.trust.undoBindBankCard'
          post_path = '/reagw/bankcard/undoBindBankApi.htm'

          params = {
            orderNo: flow_id,
            contracts: contracts,
            bankAccountNo: bank_account_no,
            applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
          }

          operate_post(:operate, service, params, post_path, Http::ErrorCode.bind_card, ['0000'])
        end

      end # module
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reapal-0.9.12 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.11 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.10 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.9 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.7 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.6 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.5 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.3 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.2 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.1 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.9.0 lib/reapal/api/user/undo_bind_bank_card.rb
reapal-0.3.0 lib/reapal/api/user/undo_bind_bank_card.rb