Class: B2bCenterApi::WebService::Types::AuctionOffer
- Defined in:
- lib/b2b_center_api/web_service/types/auction_offer.rb
Overview
Предложение
Constant Summary
Constants inherited from BaseType
Instance Attribute Summary collapse
-
#auction_id ⇒ Integer
Номер аукциона/объявления.
-
#bets ⇒ Integer
Количество ставок.
-
#files ⇒ B2bCenterApi::WebService::Types::B2bFile[]
Файлы предложения.
-
#final_bet_date ⇒ Time
Дата последней ставки.
-
#final_price ⇒ Float
Последняя ставка.
-
#final_price_notax ⇒ Float
Последняя ставка без НДС.
-
#final_price_unit ⇒ Float
Формат значения DECIMAL(15,2).
-
#final_price_unit_notax ⇒ Float
Формат значения DECIMAL(15,2).
-
#final_tax ⇒ Float
НДС последней ставки.
-
#firm_id ⇒ Integer
ID организации (участник торговой процедуры).
-
#haggling_files ⇒ HagglingFiles
Файлы на переторжку (в случае, если конверты на данный этап переторжки были вскрыты).
-
#offer_fields ⇒ AuctionOfferField
Массив дополнительных полей предложения.
-
#offer_num ⇒ Integer
0 — основное предложение = целое_число — альтернативное предложение №.
-
#positions_offers ⇒ AuctionPositionOffer
Массив предложений участника по позициям.
-
#user_email ⇒ String
E-mail пользователя, отправившего заявку.
-
#user_fullname ⇒ String
ФИО пользователя, отправившего заявку.
-
#user_phone ⇒ String
Номер телефона пользователя, отправившего заявку.
-
#winner ⇒ Boolean
1 — победитель, 0 — не победитель.
Attributes inherited from BaseType
Class Method Summary collapse
Methods inherited from BaseType
Methods included from B2bCenterApi::WebService::TypeCast
Instance Attribute Details
#auction_id ⇒ Integer
Returns Номер аукциона/объявления.
7 8 9 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 7 def auction_id @auction_id end |
#bets ⇒ Integer
Returns Количество ставок.
29 30 31 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 29 def bets @bets end |
#files ⇒ B2bCenterApi::WebService::Types::B2bFile[]
Файлы предложения. Поле содержит список записей типа file, в случае если у текущего пользователя нет доступа к файлу, то поле file.name — не заполняется.
33 34 35 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 33 def files @files end |
#final_bet_date ⇒ Time
Returns Дата последней ставки.
25 26 27 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 25 def final_bet_date @final_bet_date end |
#final_price ⇒ Float
Returns Последняя ставка. Формат значения DECIMAL(15,2).
13 14 15 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 13 def final_price @final_price end |
#final_price_notax ⇒ Float
Returns Последняя ставка без НДС. Формат значения DECIMAL(15,2).
15 16 17 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 15 def final_price_notax @final_price_notax end |
#final_price_unit ⇒ Float
Формат значения DECIMAL(15,2)
18 19 20 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 18 def final_price_unit @final_price_unit end |
#final_price_unit_notax ⇒ Float
Формат значения DECIMAL(15,2)
21 22 23 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 21 def final_price_unit_notax @final_price_unit_notax end |
#final_tax ⇒ Float
Returns НДС последней ставки. Заполняется для непопозиционных процедур.
23 24 25 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 23 def final_tax @final_tax end |
#firm_id ⇒ Integer
Returns ID организации (участник торговой процедуры).
9 10 11 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 9 def firm_id @firm_id end |
#haggling_files ⇒ HagglingFiles
Returns Файлы на переторжку (в случае, если конверты на данный этап переторжки были вскрыты).
35 36 37 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 35 def haggling_files @haggling_files end |
#offer_fields ⇒ AuctionOfferField
Returns Массив дополнительных полей предложения.
37 38 39 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 37 def offer_fields @offer_fields end |
#offer_num ⇒ Integer
Returns = 0 — основное предложение = целое_число — альтернативное предложение №.
11 12 13 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 11 def offer_num @offer_num end |
#positions_offers ⇒ AuctionPositionOffer
Returns Массив предложений участника по позициям.
39 40 41 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 39 def positions_offers @positions_offers end |
#user_email ⇒ String
Returns E-mail пользователя, отправившего заявку.
43 44 45 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 43 def user_email @user_email end |
#user_fullname ⇒ String
Returns ФИО пользователя, отправившего заявку.
41 42 43 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 41 def user_fullname @user_fullname end |
#user_phone ⇒ String
Returns Номер телефона пользователя, отправившего заявку.
45 46 47 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 45 def user_phone @user_phone end |
#winner ⇒ Boolean
Returns 1 — победитель, 0 — не победитель. Формат значения INT(1).
27 28 29 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 27 def winner @winner end |
Class Method Details
.from_response(response, client, auction_id, firm_id, offer_num) ⇒ AuctionOffer
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/b2b_center_api/web_service/types/auction_offer.rb', line 48 def self.from_response(response, client, auction_id, firm_id, offer_num) r = response.result[:auction_offer] return if r.nil? t = AuctionOffer.new t.soap_client = client t.auction_id = auction_id t.firm_id = firm_id t.offer_num = offer_num t.final_price = convert(r[:final_price], :float) t.final_price_notax = convert(r[:final_price_notax], :float) t.final_price_unit = convert(r[:final_price_unit], :float) t.final_price_unit_notax = convert(r[:final_price_unit_notax], :float) t.final_tax = convert(r[:final_tax], :float) t.final_bet_date = convert(r[:final_bet_date], :time) t.winner = convert(r[:winner], :boolean) t.bets = convert(r[:bets], :integer) t.files = B2bFile.from_part_response(r[:files]) t.haggling_files = r[:haggling_files] t.offer_fields = r[:offer_fields] t.positions_offers = r[:positions_offers] t.user_fullname = convert(r[:user_fullname], :string) t.user_email = convert(r[:user_email], :string) t.user_phone = convert(r[:user_phone], :string) t end |