Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

обновил мапперы

  • Loading branch information...
commit 9c5d29377a484a1fe9c207f95e7306a6caf08c8a 1 parent df0a488
@bashmish bashmish authored
View
40 app/mappers/get_act_records_request_mapper.rb
@@ -1,40 +0,0 @@
-# encoding: utf-8
-
-class GetActRecordsRequestMapper
- include XmlSchemaMapper
- schema File.expand_path('../../vendor/ezags-protocols/retro/public/GetResultsService.xsd', File.dirname(__FILE__))
- type 'GetActRecordsRequest'
-
- # Служебный блок атрибутов СМЭВ
- # @return [MessageTypeMapper]
- # minOccurs: 1, maxOccurs: 1
- attr_accessor :message
- # @return [MessageDataMapper]
- # minOccurs: 1, maxOccurs: 1
- attr_accessor :message_data
-
- class MessageData
- include XmlSchemaMapper
- schema File.expand_path('../../vendor/ezags-protocols/retro/public/GetResultsService.xsd', File.dirname(__FILE__))
- annonymus_type 'GetActRecordsRequest::MessageData'
-
- # @return [AppDataMapper]
- # minOccurs: 1, maxOccurs: 1
- attr_accessor :app_data
- # Блок вложений
- # @return [AppDocumentTypeMapper]
- # minOccurs: 0, maxOccurs: 1
- attr_accessor :app_document
- end
-
- class MessageData::AppData
- include XmlSchemaMapper
- schema File.expand_path('../../vendor/ezags-protocols/retro/public/GetResultsService.xsd', File.dirname(__FILE__))
- annonymus_type 'GetActRecordsRequest::MessageData::AppData'
-
- # @return [GetActRecordsRequestObjMapper]
- # minOccurs: 1, maxOccurs: 1
- attr_accessor :get_act_records_request_obj
- end
-
-end
View
5 app/mappers/get_act_records_request_obj_mapper.rb
@@ -2,11 +2,14 @@
class GetActRecordsRequestObjMapper
include XmlSchemaMapper
- schema File.expand_path('../../vendor/ezags-protocols/retro/public/GetResultsService.xsd', File.dirname(__FILE__))
+ schema File.expand_path('../../vendor/ezags-protocols/retro/GetResultsService.xsd', File.dirname(__FILE__))
type 'GetActRecordsRequestObj'
# @return [String]
# minOccurs: 1, maxOccurs: 1
attr_accessor :task_id
+ # @return [SignatureTypeMapper]
+ # minOccurs: 1, maxOccurs: 1
+ attr_accessor :signature
end
View
40 app/mappers/get_act_records_response_mapper.rb
@@ -1,40 +0,0 @@
-# encoding: utf-8
-
-class GetActRecordsResponseMapper
- include XmlSchemaMapper
- schema File.expand_path('../../vendor/ezags-protocols/retro/public/GetResultsService.xsd', File.dirname(__FILE__))
- type 'GetActRecordsResponse'
-
- # Служебный блок атрибутов СМЭВ
- # @return [MessageTypeMapper]
- # minOccurs: 1, maxOccurs: 1
- attr_accessor :message
- # @return [MessageDataMapper]
- # minOccurs: 1, maxOccurs: 1
- attr_accessor :message_data
-
- class MessageData
- include XmlSchemaMapper
- schema File.expand_path('../../vendor/ezags-protocols/retro/public/GetResultsService.xsd', File.dirname(__FILE__))
- annonymus_type 'GetActRecordsResponse::MessageData'
-
- # @return [AppDataMapper]
- # minOccurs: 1, maxOccurs: 1
- attr_accessor :app_data
- # Блок вложений
- # @return [AppDocumentTypeMapper]
- # minOccurs: 0, maxOccurs: 1
- attr_accessor :app_document
- end
-
- class MessageData::AppData
- include XmlSchemaMapper
- schema File.expand_path('../../vendor/ezags-protocols/retro/public/GetResultsService.xsd', File.dirname(__FILE__))
- annonymus_type 'GetActRecordsResponse::MessageData::AppData'
-
- # @return [GetActRecordsResponseObjMapper]
- # minOccurs: 1, maxOccurs: 1
- attr_accessor :get_act_records_response_obj
- end
-
-end
View
9 app/mappers/get_act_records_response_obj_mapper.rb
@@ -2,27 +2,34 @@
class GetActRecordsResponseObjMapper
include XmlSchemaMapper
- schema File.expand_path('../../vendor/ezags-protocols/retro/public/GetResultsService.xsd', File.dirname(__FILE__))
+ schema File.expand_path('../../vendor/ezags-protocols/retro/GetResultsService.xsd', File.dirname(__FILE__))
type 'GetActRecordsResponseObj'
+ # Запись акта о рождении с ЭП
# @return [SignedActRecordBirthMapper]
# minOccurs: 0, maxOccurs: Infinity
attr_accessor :signed_act_record_birth
+ # Запись акта о заключении брака с ЭП
# @return [SignedActRecordMarriageMapper]
# minOccurs: 0, maxOccurs: Infinity
attr_accessor :signed_act_record_marriage
+ # Запись акта о расторжении брака с ЭП
# @return [SignedActRecordDivorceMapper]
# minOccurs: 0, maxOccurs: Infinity
attr_accessor :signed_act_record_divorce
+ # Запись акта об усыновлении (удочерении) с ЭП
# @return [SignedActRecordAdoptionMapper]
# minOccurs: 0, maxOccurs: Infinity
attr_accessor :signed_act_record_adoption
+ # Запись акта об устанновлении отцовства с ЭП
# @return [SignedActRecordFiliationMapper]
# minOccurs: 0, maxOccurs: Infinity
attr_accessor :signed_act_record_filiation
+ # Запись акта о перемене имени с ЭП
# @return [SignedActRecordNameChangeMapper]
# minOccurs: 0, maxOccurs: Infinity
attr_accessor :signed_act_record_name_change
+ # Запись акта о смерти с ЭП
# @return [SignedActRecordDeathMapper]
# minOccurs: 0, maxOccurs: Infinity
attr_accessor :signed_act_record_death
View
2  bin/ezags-xsd
@@ -33,7 +33,7 @@ class CLI < Thor
end
def update_retro
- @script.generate(xsd_path 'retro/public/GetResultsService.xsd')
+ @script.generate(xsd_path 'retro/GetResultsService.xsd')
end
def update_upload
View
18 spec/mappers/get_act_records_request_mapper_spec.rb
@@ -1,18 +0,0 @@
-require 'spec_helper'
-require "xml_schema_mapper/test_builder"
-
- # @attr Message [MessageType]
- # @attr MessageData []
-
-
-describe GetActRecordsRequestMapper do
-
- include XmlSchemaMapper::TestBuilder::Helper
-
- subject { build_described_mapper }
-
- it "should be self-compatible xml <-> object" do
- described_class.parse(subject.to_xml).to_xml.should eql subject.to_xml
- end
-
-end
View
1  spec/mappers/get_act_records_request_obj_mapper_spec.rb
@@ -2,6 +2,7 @@
require "xml_schema_mapper/test_builder"
# @attr taskId [string]
+ # @attr Signature [SignatureType]
describe GetActRecordsRequestObjMapper do
View
18 spec/mappers/get_act_records_response_mapper_spec.rb
@@ -1,18 +0,0 @@
-require 'spec_helper'
-require "xml_schema_mapper/test_builder"
-
- # @attr Message [MessageType]
- # @attr MessageData []
-
-
-describe GetActRecordsResponseMapper do
-
- include XmlSchemaMapper::TestBuilder::Helper
-
- subject { build_described_mapper }
-
- it "should be self-compatible xml <-> object" do
- described_class.parse(subject.to_xml).to_xml.should eql subject.to_xml
- end
-
-end
Please sign in to comment.
Something went wrong with that request. Please try again.