class Fadada::Authentication
Public Class Methods
company_deposit(params = {})
click to toggle source
企业实名信息存证
# File lib/fadada/authentication.rb, line 24 def self.company_deposit(params = {}) _basic = %i(amount_or_random_code cert_flag company_name company_principal_type company_principal_verified_msg credit_code customer_bank customer_bank_account customer_branch_bank customer_id document_type legal_idcard legal_name licence organization pay_type preservation_data_provider preservation_desc preservation_name public_bank_account public_branch_bank transaction_id user_back_fill_amount_or_random_code verified_mode verified_time) _normal = %i(credit_code_file licence_file organization_file power_attorney_file idcard_positive_file idcard_negative_file live_detection_file) options = params.slice(*(_basic + _normal)) digest_params = { _params: params.slice(*_basic) } response = Fadada::HttpClient.request(:post, 'company_deposit.api', options, digest_params) response['data'] end
company_url()
click to toggle source
获取企业实名认证地址
# File lib/fadada/authentication.rb, line 38 def self.company_url end
person_deposit(params = {})
click to toggle source
个人实名信息存证
# File lib/fadada/authentication.rb, line 12 def self.person_deposit(params = {}) _basic = %i(bank_essential_factor cert_flag customer_id document_type idcard live_detection mobile mobile_and_bank_essential_factor mobile_essential_factor name preservation_data_provider preservation_desc preservation_name public_security_essential_factor verified_time verified_type) _normal = %i(idcard_positive_file idcard_negative_file live_detection_file) options = params.slice(*(_basic + _normal)) digest_params = { _params: params.slice(*_basic) } response = Fadada::HttpClient.request(:post, 'person_deposit.api', options, digest_params) response['data'] end
person_url()
click to toggle source
获取个人实名认证地址
# File lib/fadada/authentication.rb, line 43 def self.person_url end