gillbus 0.22.7 → 0.22.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec10541c6f01af4749c7ab7f7a03792a3ace7e3311a93ec0e4c8a1e0f8d5830d
4
- data.tar.gz: ef174f531fdf5a98d0b0643f616b67466d25936c15d24386f4691229ef7b64fc
3
+ metadata.gz: b85dbfeb542cb41597bcaff503e35298c94742adcf937f536f41d26849c41f0b
4
+ data.tar.gz: fe22b0ac687bf787630356475e001b40f8ecbeccb1f6a3560816b8663666a75d
5
5
  SHA512:
6
- metadata.gz: 69eac0a96f60a1dc180dedc84cc23559dce13e92924c2fcce9475fc315699a888685ea588f7d860ac1b6dd448718e414af31754802cc779f736bf11424410e97
7
- data.tar.gz: 4000a5038917e7efee353b68289a71a417dbc19d95b5b91c3b52a087c5693ab539183db1728a034857a019bc8c969ef372b77d7b25db3faa4566f0e906a63909
6
+ metadata.gz: 5bdc19f44370f737270f8220415b9c6ef927a7821e08d072bf2f778c6adbfe9b847a212b53a036b7ab226772bc1459cbab5d5be29337fb16bd5de11d89d61cd0
7
+ data.tar.gz: 24b1d2cf5459a9f61bafa62adf9f2cdfd27c18562ca3bdb5f15afcdf306ed60e98f29e19444682f955d26380b5162adfd3b1d4d8e97c8cba11907b5d907952d0
@@ -148,6 +148,15 @@ class Gillbus
148
148
  # => "1100"
149
149
  field :total_cost, :money
150
150
 
151
+ # => "1300"
152
+ field :original_amount, :money
153
+
154
+ # => "200"
155
+ field :discount_value, :money
156
+
157
+ # => "13.57"
158
+ field :discount_percentage
159
+
151
160
  # => "RUB"
152
161
  field :currency
153
162
 
@@ -287,6 +287,15 @@ class Gillbus
287
287
 
288
288
  field :is_luggage, :bool, key: 'IS_BAGGAGE'
289
289
 
290
+ # => '3257025789'
291
+ field :supplier_inn
292
+
293
+ # => '"Клен 2" ООО'
294
+ field :supplier_name
295
+
296
+ # => "+79065002926"
297
+ field :supplier_phone
298
+
290
299
  parser do
291
300
  def ticket_status(value)
292
301
  ::Gillbus::Ticket::STATUS_MAPPING[value]
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = '0.22.7'.freeze
2
+ VERSION = '0.22.9'.freeze
3
3
  end
@@ -40,4 +40,16 @@ class FindOrderTest < Minitest::Test
40
40
  def test_online_refund
41
41
  assert_equal(true, find_order.tickets.first.is_online_refund)
42
42
  end
43
+
44
+ def test_supplier_inn
45
+ assert_equal('3257025789', find_order.tickets.last.supplier_inn)
46
+ end
47
+
48
+ def test_supplier_name
49
+ assert_equal('"Клен 2" ООО', find_order.tickets.last.supplier_name)
50
+ end
51
+
52
+ def test_supplier_phone
53
+ assert_equal('+79065002926', find_order.tickets.last.supplier_phone)
54
+ end
43
55
  end
@@ -147,6 +147,9 @@
147
147
  <VALUE_IN_CURRENCY>0.05</VALUE_IN_CURRENCY>
148
148
  <VAT_IN_CURRENCY>0.01</VAT_IN_CURRENCY>
149
149
  </COMMISSION>
150
+ <SUPPLIER_INN>3257025789</SUPPLIER_INN>
151
+ <SUPPLIER_NAME>"Клен 2" ООО</SUPPLIER_NAME>
152
+ <SUPPLIER_PHONE>+79065002926</SUPPLIER_PHONE>
150
153
  </TICKET>
151
154
  <TICKET>
152
155
  <TICKET_NUMBER>14483</TICKET_NUMBER>
@@ -298,5 +301,8 @@
298
301
  <VALUE_IN_CURRENCY>0.05</VALUE_IN_CURRENCY>
299
302
  <VAT_IN_CURRENCY>0.01</VAT_IN_CURRENCY>
300
303
  </COMMISSION>
304
+ <SUPPLIER_INN>3257025789</SUPPLIER_INN>
305
+ <SUPPLIER_NAME>"Клен 2" ООО</SUPPLIER_NAME>
306
+ <SUPPLIER_PHONE>+79065002926</SUPPLIER_PHONE>
301
307
  </TICKET>
302
308
  </DATA>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gillbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.7
4
+ version: 0.22.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey "codesnik" Trofimenko
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-07-15 00:00:00.000000000 Z
12
+ date: 2022-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport