gillbus 0.18.10 → 0.18.11

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: edf0f3b1165bb7dc21dc075e495b6e55b36e258c
4
- data.tar.gz: 9b7db48a310875a95a63eba6571af8df9e0697ff
3
+ metadata.gz: 8da5c8db70d86e4d8c1cbd13f711523042530de1
4
+ data.tar.gz: 3ffc015cf541aee88af01cfb6bb0ffac56c59381
5
5
  SHA512:
6
- metadata.gz: 382b6e505597994c30a27442559cf476b44d68c2c49e79cc568a4af4962002040e06427a148cee3f6d11ef24c627464d072aa865abab41f71a675b2bba7fc479
7
- data.tar.gz: f3a880e2903f05ff53eb6ff3c2cce6f35cd3b6cc912cd74cc7bd61eeb76905fe0a85e5a7285981fe098ad44bf209d3593e0d248a9930178625d87555edbf4a05
6
+ metadata.gz: b275a605ec7828c72f759ee990141f2c86b4ca98a85520d5091585de2c22ca97028401070dba7158aa0c08bafa638cbbe0fd67cd626a22931bfe572bc05aafeb
7
+ data.tar.gz: 8fe535b1b06237a17f0028ca27a6b2e205489c9edb0e1b9f043ccc1c9b6ce3f294f5490b7841b24702865c8c03ec42671f0617392fbe4ed2b25c7efa995a996d
@@ -281,6 +281,8 @@ class Gillbus
281
281
 
282
282
  field :end_at, :datetime_combined, key: 'END'
283
283
 
284
+ field :is_online_refund, :bool
285
+
284
286
  parser do
285
287
  def ticket_status(value)
286
288
  ::Gillbus::Ticket::STATUS_MAPPING[value]
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = '0.18.10'.freeze
2
+ VERSION = '0.18.11'.freeze
3
3
  end
@@ -36,4 +36,8 @@ class FindOrderTest < Minitest::Test
36
36
  def test_comission_currency
37
37
  assert_equal(Money.new(51_55, 'RUB'), find_order2.tickets.last.commissions.last.value)
38
38
  end
39
+
40
+ def test_online_refund
41
+ assert_equal(true, find_order.tickets.first.is_online_refund)
42
+ end
39
43
  end
@@ -113,6 +113,7 @@
113
113
  <APPROXIMATE_AMOUNT>20.46</APPROXIMATE_AMOUNT>
114
114
  <CAUSE>Принудительно. Отмена рейса</CAUSE>
115
115
  </RETURN_CAUSE>
116
+ <IS_ONLINE_REFUND>true</IS_ONLINE_REFUND>
116
117
  <COMMISSION>
117
118
  <TYPE>2</TYPE>
118
119
  <CODE>YS</CODE>
@@ -260,6 +261,7 @@
260
261
  <APPROXIMATE_AMOUNT>20.46</APPROXIMATE_AMOUNT>
261
262
  <CAUSE>Принудительно. Отмена рейса</CAUSE>
262
263
  </RETURN_CAUSE>
264
+ <IS_ONLINE_REFUND>false</IS_ONLINE_REFUND>
263
265
  <COMMISSION>
264
266
  <TYPE>2</TYPE>
265
267
  <CODE>YS</CODE>
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.18.10
4
+ version: 0.18.11
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: 2018-08-27 00:00:00.000000000 Z
12
+ date: 2018-08-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport