Class: Fadada::Authentication
- Inherits:
-
Object
- Object
- Fadada::Authentication
- Defined in:
- lib/fadada/authentication.rb
Class Method Summary collapse
-
.company_deposit(params = {}) ⇒ Object
企业实名信息存证.
-
.company_url ⇒ Object
获取企业实名认证地址.
-
.person_deposit(params = {}) ⇒ Object
个人实名信息存证.
-
.person_url ⇒ Object
获取个人实名认证地址.
Class Method Details
.company_deposit(params = {}) ⇒ Object
企业实名信息存证
24 25 26 27 28 29 30 31 32 33 34 35 |
# 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) = params.slice(*(_basic + _normal)) digest_params = { _params: params.slice(*_basic) } response = Fadada::HttpClient.request(:post, 'company_deposit.api', , digest_params) response['data'] end |
.company_url ⇒ Object
获取企业实名认证地址
38 39 40 |
# File 'lib/fadada/authentication.rb', line 38 def self.company_url end |
.person_deposit(params = {}) ⇒ Object
个人实名信息存证
12 13 14 15 16 17 18 19 20 21 |
# 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) = params.slice(*(_basic + _normal)) digest_params = { _params: params.slice(*_basic) } response = Fadada::HttpClient.request(:post, 'person_deposit.api', , digest_params) response['data'] end |
.person_url ⇒ Object
获取个人实名认证地址
43 44 45 |
# File 'lib/fadada/authentication.rb', line 43 def self.person_url end |