gillbus 0.15.5 → 0.15.6

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
  SHA1:
3
- metadata.gz: 5528736c9cbe5cf92d9db5555fe6b6cc0cd5ac43
4
- data.tar.gz: dde674e0ea9a09c613464b33d298ee8f4c1a327e
3
+ metadata.gz: f8248d6b3eb42e3af2d09664b17ab58998b79250
4
+ data.tar.gz: bc4641a7b1f6f2e9a678035e89c8a1e7a9ff675e
5
5
  SHA512:
6
- metadata.gz: 01636a3922d344ac121c5bc6231f0e1c019f124ed8c3a3e214aa5cfd8ae9635fe712fff4a11b46f6fe9fb7f0126fe7dd11db50600bb759ebe2d131085cb69dba
7
- data.tar.gz: 8dc69e58c28ed8686412cd4cca858d0d9e8d94aaaa280c7f790522748e651abd0476fb36d63e6e66f3b60e22f0a15249338649cbb5ae14457e00ebb52c28328e
6
+ metadata.gz: 7213e64c6373f9c60325cb0e79e673fcb9da937741f187408ff82905902d5d4f2ccbd3e32482b363f8fb48b1e5e1a46312bbf1308dc06fad3cf600cf0497d9d2
7
+ data.tar.gz: b649268f25492d305e0269f3dfc948a54964e51af2037023895fed3b868c8a759dadba5b7c8523d6f410d9ab31bc1cab4adaf4018b442a6ae410ad92e35e6d47
@@ -17,6 +17,9 @@ class Gillbus
17
17
  # Value of collecting in sale currency
18
18
  field :value, :money
19
19
 
20
+ # VAT rate
21
+ field :vat_value
22
+
20
23
  # Value of collecting VAT in sale currency
21
24
  field :vat, :money
22
25
 
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = "0.15.5"
2
+ VERSION = "0.15.6"
3
3
  end
@@ -21,4 +21,8 @@ class FindOrderTest < Minitest::Test
21
21
  def test_return_causes
22
22
  assert_equal(Money.new(20_38, 'UAH'), find_order.tickets.first.return_causes.first.approximate_amount)
23
23
  end
24
+
25
+ def test_comission_vat_value
26
+ assert_equal("18", find_order.tickets.last.commissions.first.vat_value)
27
+ end
24
28
  end
@@ -265,6 +265,7 @@
265
265
  <DESCRIPTION>Страховой сбор</DESCRIPTION>
266
266
  <VALUE>0.06</VALUE>
267
267
  <VAT>0.01</VAT>
268
+ <VAT_VALUE>18</VAT_VALUE>
268
269
  <CURRENCY>UAH</CURRENCY>
269
270
  <RATE>0</RATE>
270
271
  <VALUE_IN_CURRENCY>0.05</VALUE_IN_CURRENCY>
@@ -276,6 +277,7 @@
276
277
  <DESCRIPTION>Сервисный сбор</DESCRIPTION>
277
278
  <VALUE>20</VALUE>
278
279
  <VAT>3.33</VAT>
280
+ <VAT_VALUE>0</VAT_VALUE>
279
281
  <CURRENCY>UAH</CURRENCY>
280
282
  <RATE>0</RATE>
281
283
  <VALUE_IN_CURRENCY>16.67</VALUE_IN_CURRENCY>
@@ -287,6 +289,7 @@
287
289
  <DESCRIPTION>Сумма других сборов</DESCRIPTION>
288
290
  <VALUE>0.06</VALUE>
289
291
  <VAT>0.01</VAT>
292
+ <VAT_VALUE>0</VAT_VALUE>
290
293
  <CURRENCY>UAH</CURRENCY>
291
294
  <RATE>0</RATE>
292
295
  <VALUE_IN_CURRENCY>0.05</VALUE_IN_CURRENCY>
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.15.5
4
+ version: 0.15.6
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: 2017-10-03 00:00:00.000000000 Z
12
+ date: 2017-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_xml
@@ -312,4 +312,3 @@ test_files:
312
312
  - test/session_login_test.rb
313
313
  - test/test_helper.rb
314
314
  - test/tickets_booking_test.rb
315
- has_rdoc: