Module: Reapal::Api::Money::SubAccountQuery
- Defined in:
- lib/reapal/api/money/sub_account_query.rb
Instance Method Summary collapse
-
#sub_account_query(sub_account_flow_id, serial_no = '') ⇒ Hash
2.9 企业分账查询(API).
Instance Method Details
#sub_account_query(sub_account_flow_id, serial_no = '') ⇒ Hash
2.9 企业分账查询(API)
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/reapal/api/money/sub_account_query.rb', line 29 def sub_account_query(sub_account_flow_id, serial_no='') service = 'reapal.trust.subAccountQuery' post_path = '/service/depwit.htm' params = { orderNo: sub_account_flow_id, serialNo: serial_no, applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } res = operate_post(:query, service, params, post_path, Http::ErrorCode.sub_account_query, ['0000']) if 'P' == res[:result] && '0001' == res[:data][:resultCode] res[:result] = 'F' end Reapal.logger.info res res end |