Module: Reapal::Api::User::BindCardQuery
- Defined in:
- lib/reapal/api/user/bind_card_query.rb
Instance Method Summary collapse
-
#bind_card_query(contracts) ⇒ Hash
1.10 绑卡查询(API).
Instance Method Details
#bind_card_query(contracts) ⇒ Hash
1.10 绑卡查询(API)
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/reapal/api/user/bind_card_query.rb', line 32 def bind_card_query(contracts) service = 'reapal.trust.bindQuery' post_path = '/user/restApi.htm' params = { contracts: contracts, type: 'W', # 业务类型:默认提现 A: 充值和提现; D: 充值; W: 提现 (现只支持提现绑卡查询) queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S') } res = operate_post(:query, service, params, post_path, Http::ErrorCode.bind_card, ['0000']) if 'S' == res[:result] || ('P' == res[:result] && res[:data][:resultCode].nil?) res[:result] = 'S' res[:data][:bankCards] = parse_cards_info(res[:data][:bankCards]) end Reapal.logger.info res res end |