mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
init
This commit is contained in:
parent
6a41762904
commit
622dba4f1c
7 changed files with 191 additions and 3 deletions
|
@ -17,12 +17,13 @@ class RegistrantUser < User
|
|||
Country.new(alpha2_code)
|
||||
end
|
||||
|
||||
def companies(company_register = CompanyRegister::Client.new)
|
||||
def companies(company_register = nil)
|
||||
return [] if ident.include?('-')
|
||||
|
||||
company_register.representation_rights(citizen_personal_code: ident,
|
||||
citizen_country_code: country.alpha3)
|
||||
[OpenStruct.new(registration_number: '43344412', company_name: 'TestFirma'),
|
||||
OpenStruct.new(registration_number: '12345678', company_name: 'SuperFirma OU')]
|
||||
end
|
||||
|
||||
|
||||
def contacts(representable: true)
|
||||
Contact.registrant_user_contacts(self, representable: representable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue