Class: B2bCenterApi::WebService::Types::TenderLotResult

Inherits:
BaseType
  • Object
show all
Defined in:
lib/b2b_center_api/web_service/types/tender_lot_result.rb

Overview

результаты обработки конкурсных заявок

Constant Summary

Constants inherited from BaseType

BaseType::NO_INSPECT_ATTRS

Instance Attribute Summary collapse

Attributes inherited from BaseType

#date_fields, #soap_client

Class Method Summary collapse

Methods inherited from BaseType

#inspect, #to_h

Methods included from B2bCenterApi::WebService::TypeCast

included

Instance Attribute Details

#alternate_numObject

@return Номер альтернативного предложения.

0 — для основной конкурсной заявки



10
11
12
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 10

def alternate_num
  @alternate_num
end

#essentialObject

@return Существенные условия конкурсной заявки



28
29
30
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 28

def essential
  @essential
end

#final_priceObject

@return Итоговая цена с НДС. Формат значения DECIMAL(15,2)



34
35
36
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 34

def final_price
  @final_price
end

#final_price_notaxObject

@return Итоговая цена без НДС. Формат значения DECIMAL(15,2)



36
37
38
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 36

def final_price_notax
  @final_price_notax
end

#firm_idObject

@return ID организации



7
8
9
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 7

def firm_id
  @firm_id
end

#haggling_priceObject

@return Цена после переторжки с НДС. Формат значения DECIMAL(15,2)



30
31
32
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 30

def haggling_price
  @haggling_price
end

#haggling_price_notaxObject

@return Цена после переторжки без НДС. Формат значения DECIMAL(15,2)



32
33
34
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 32

def haggling_price_notax
  @haggling_price_notax
end

#lot_idObject

@return Номер лота



38
39
40
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 38

def lot_id
  @lot_id
end

#priceObject

@return Цена с НДС. Формат значения DECIMAL(15,2)



22
23
24
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 22

def price
  @price
end

#price_notaxObject

@return Цена без НДС. Формат значения DECIMAL(15,2)



24
25
26
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 24

def price_notax
  @price_notax
end

#rankObject

@return Номер, полученный при ранжировке



20
21
22
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 20

def rank
  @rank
end

#reasonObject

@return Причина отклонения заявки по лоту



18
19
20
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 18

def reason
  @reason
end

#resultObject

@return Конкурсная заявка по лоту: “” — не обработана “none” — не поступила “received” — поступила “reject” — отклонена. Формат значения VARCHAR(10)



16
17
18
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 16

def result
  @result
end

#subjectObject

@return Предмет конкурсной заявки



26
27
28
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 26

def subject
  @subject
end

Class Method Details

.from_part_response(response, lot_id) ⇒ TenderLotResult[]

Returns:



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/b2b_center_api/web_service/types/tender_lot_result.rb', line 41

def self.from_part_response(response, lot_id)
  return if response.nil?
  results = to_array(response[:tender_lot_result]).map do |tlr|
    t = TenderLotResult.new
    t.firm_id = convert(tlr[:firm_id], :integer)
    t.lot_id = lot_id
    t.alternate_num = convert(tlr[:alternate_num], :integer)
    t.result = convert(tlr[:result], :string)
    t.reason = convert(tlr[:reason], :string)
    t.rank = convert(tlr[:rank], :integer)
    t.price = convert(tlr[:price], :float)
    t.price_notax = convert(tlr[:price_notax], :float)
    t.subject = convert(tlr[:subject], :string)
    t.essential = convert(tlr[:essential], :string)
    t.haggling_price = convert(tlr[:haggling_price], :float)
    t.haggling_price_notax = convert(tlr[:haggling_price_notax], :float)
    t.final_price = convert(tlr[:final_price], :float)
    t.final_price_notax = convert(tlr[:final_price_notax], :float)
    t
  end
  results
end