sealine_insurance 1.0.4 → 1.0.5

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: 2bb0630d4e3677b9c72117cb36b1140166de26d1
4
- data.tar.gz: 517c89c7d1c9d5d24edd592dc96f869bce43816a
3
+ metadata.gz: 66dcd6f0bcada26e07f8bdfee902ca1c6715f36e
4
+ data.tar.gz: 9a0979d9eb0252b7c8fd5a4ebfea4d8975f39575
5
5
  SHA512:
6
- metadata.gz: 0161a182be40d90b14d626f029d2925f672b36dfece56d7bcf07afcdb7cefcee8423c30c8f748ea9099605c1554938a9b49ad3746cca9c463a70472a01a1ec52
7
- data.tar.gz: a527065b4a1fb53c8ca2001bca10039855c7319c01aceff7eba29921978cccc5a480b8bc5848771b51af93c3f97f2e042627766e89a08e36a42e423c73c6be2e
6
+ metadata.gz: 5062d40d8a71653396d2b5276e66a46f106e8ac82a84f98f48c0bceb5620989b04eb50484bf40c6a162d968a7b02625b97bca3b71e21c8c7c8d23360eaed88c6
7
+ data.tar.gz: f1b7add21516a7ec42daa4c26d5c25eb1371647cd1f6c9e3965bf0fbdb93d93c0362818a5aa5d35699edd45fae26e12c1390322ee808c8f8479b7a08de6ff35f
@@ -14,9 +14,11 @@ module SealineInsurance
14
14
  departure_datetime:,
15
15
  arrival_datetime:,
16
16
  insured_first_name:,
17
+ insured_middle_name: nil,
17
18
  insured_last_name:,
18
19
  insured_birthday:,
19
20
  insurer_first_name:,
21
+ insurer_middle_name: nil,
20
22
  insurer_last_name:
21
23
  )
22
24
  super(config: config)
@@ -28,9 +30,11 @@ module SealineInsurance
28
30
  @departure_datetime = departure_datetime
29
31
  @arrival_datetime = arrival_datetime
30
32
  @insured_first_name = insured_first_name
33
+ @insured_middle_name = insured_middle_name
31
34
  @insured_last_name = insured_last_name
32
35
  @insured_birthday = insured_birthday
33
36
  @insurer_first_name = insurer_first_name
37
+ @insurer_middle_name = insurer_middle_name
34
38
  @insurer_last_name = insurer_last_name
35
39
  end
36
40
  # rubocop:enable Metrics/ParameterLists
@@ -47,13 +51,15 @@ module SealineInsurance
47
51
  arrival: @arrival_datetime.strftime('%Y-%m-%dT%H:%M'),
48
52
  insured: {
49
53
  first_name: @insured_first_name,
54
+ middle_name: @insured_middle_name,
50
55
  last_name: @insured_last_name,
51
56
  birthday: @insured_birthday.strftime('%Y-%m-%d'),
52
- },
57
+ }.reject { |k, v| v.nil? },
53
58
  insurer: {
54
59
  first_name: @insurer_first_name,
60
+ middle_name: @insurer_middle_name,
55
61
  last_name: @insurer_last_name,
56
- },
62
+ }.reject { |k, v| v.nil? },
57
63
  },
58
64
  )
59
65
  @response = Responses::Order.new(raw_response)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SealineInsurance
4
- VERSION = '1.0.4'
4
+ VERSION = '1.0.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sealine_insurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Khrebtov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2018-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday