b2b_center_api 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cbbaada6a472a496a5b69bbb69766ec066f910d2
|
|
4
|
+
data.tar.gz: 59e53c151ece271fbae835edb3b9c90f80175f2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eaafb1d33f2dfbe6f772f4d6a7d693b2de6483c976a0ed5c68c2d8de1a3ad68f533d721f29878e243c324f5141bfaa83e731a7409f5f106ee3f7322491828b5a
|
|
7
|
+
data.tar.gz: 11fc37df574bed803a88ced09763997059c53999cd78c49d5fad16c979362e2fdcc251d679fcae916828754e5de64bd16a4e3683b2cde9d4e1aa1eca25a33ee4
|
|
@@ -34,13 +34,16 @@ module B2bCenterApi
|
|
|
34
34
|
attr_accessor :final_price
|
|
35
35
|
# @return[Float] Итоговая цена без НДС. Формат значения DECIMAL(15,2)
|
|
36
36
|
attr_accessor :final_price_notax
|
|
37
|
+
# @return[Integer] Номер лота
|
|
38
|
+
attr_accessor :lot_id
|
|
37
39
|
|
|
38
40
|
# @return [TenderLotResult[]]
|
|
39
|
-
def self.from_part_response(response)
|
|
41
|
+
def self.from_part_response(response, lot_id)
|
|
40
42
|
return if response.nil?
|
|
41
43
|
results = to_array(response[:tender_lot_result]).map do |tlr|
|
|
42
44
|
t = TenderLotResult.new
|
|
43
45
|
t.firm_id = convert(tlr[:firm_id], :integer)
|
|
46
|
+
t.lot_id = lot_id
|
|
44
47
|
t.alternate_num = convert(tlr[:alternate_num], :integer)
|
|
45
48
|
t.result = convert(tlr[:result], :string)
|
|
46
49
|
t.reason = convert(tlr[:reason], :string)
|
|
@@ -32,7 +32,7 @@ module B2bCenterApi
|
|
|
32
32
|
t.tender_id = tender_id
|
|
33
33
|
t.lot_id = lot_id
|
|
34
34
|
|
|
35
|
-
t.results = TenderLotResult.from_part_response(r[:results])
|
|
35
|
+
t.results = TenderLotResult.from_part_response(r[:results], lot_id)
|
|
36
36
|
t.result_status = convert(r[:result_status], :string)
|
|
37
37
|
t.reason = convert(r[:reason], :string)
|
|
38
38
|
t
|
|
@@ -11,6 +11,10 @@ module B2bCenterApi
|
|
|
11
11
|
attr_accessor :lots
|
|
12
12
|
# @return[String] Файл, загруженный для переторжки
|
|
13
13
|
attr_accessor :haggling_file_name
|
|
14
|
+
# @return[Integer] id Фирмы
|
|
15
|
+
attr_accessor :firm_id
|
|
16
|
+
# @return[Integer] Номер оферты
|
|
17
|
+
attr_accessor :offer_num
|
|
14
18
|
|
|
15
19
|
# @return [TenderOffer]
|
|
16
20
|
def self.from_response(response, client, tender_id, firm_id, offer_num)
|
|
@@ -20,6 +24,8 @@ module B2bCenterApi
|
|
|
20
24
|
t = TenderOffer.new
|
|
21
25
|
t.soap_client = client
|
|
22
26
|
t.tender_id = tender_id
|
|
27
|
+
t.firm_id = firm_id
|
|
28
|
+
t.offer_num = offer_num
|
|
23
29
|
t.files = B2bFile.from_part_response(r[:offer])
|
|
24
30
|
t.lots = r[:lots].map(&:to_i) unless r[:lots].nil?
|
|
25
31
|
t.haggling_file_name = convert(r[:haggling_file_name], :string)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: b2b_center_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Archakov Aleksandr
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|