Class: B2bCenterApi::WebService::Types::FirmData
- Defined in:
- lib/b2b_center_api/web_service/types/firm_data.rb
Overview
Информация об организации
Constant Summary
Constants inherited from BaseType
Instance Attribute Summary collapse
-
#bank_kpp ⇒ String
КПП.
-
#id ⇒ Integer
ID организации.
-
#inn ⇒ String
ИНН.
-
#ogrn ⇒ String
ОГРН организации.
-
#okpo ⇒ String
Код ОКПО.
-
#org_name ⇒ String
Полное наименование организации.
-
#org_name_short ⇒ String
Краткое наименование организации.
Attributes inherited from BaseType
Class Method Summary collapse
Methods inherited from BaseType
Methods included from B2bCenterApi::WebService::TypeCast
Instance Attribute Details
#bank_kpp ⇒ String
Returns КПП.
19 20 21 |
# File 'lib/b2b_center_api/web_service/types/firm_data.rb', line 19 def bank_kpp @bank_kpp end |
#id ⇒ Integer
Returns ID организации.
7 8 9 |
# File 'lib/b2b_center_api/web_service/types/firm_data.rb', line 7 def id @id end |
#inn ⇒ String
Returns ИНН.
15 16 17 |
# File 'lib/b2b_center_api/web_service/types/firm_data.rb', line 15 def inn @inn end |
#ogrn ⇒ String
Returns ОГРН организации.
13 14 15 |
# File 'lib/b2b_center_api/web_service/types/firm_data.rb', line 13 def ogrn @ogrn end |
#okpo ⇒ String
Returns Код ОКПО.
17 18 19 |
# File 'lib/b2b_center_api/web_service/types/firm_data.rb', line 17 def okpo @okpo end |
#org_name ⇒ String
Returns Полное наименование организации.
11 12 13 |
# File 'lib/b2b_center_api/web_service/types/firm_data.rb', line 11 def org_name @org_name end |
#org_name_short ⇒ String
Returns Краткое наименование организации.
9 10 11 |
# File 'lib/b2b_center_api/web_service/types/firm_data.rb', line 9 def org_name_short @org_name_short end |
Class Method Details
.from_response(response, client) ⇒ FirmData
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/b2b_center_api/web_service/types/firm_data.rb', line 22 def self.from_response(response, client) r = response.result[:firm_data] return if r.nil? fd = FirmData.new fd.soap_client = client fd.id = r[:id] fd.org_name = convert(r[:org_name], :string) fd.org_name_short = convert(r[:org_name_short], :string) fd.okpo = convert(r[:okpo], :string) fd.inn = convert(r[:inn], :string) fd.ogrn = convert(r[:ogrn], :string) fd.bank_kpp = convert(r[:bank_kpp], :string) fd end |