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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66dcd6f0bcada26e07f8bdfee902ca1c6715f36e
|
4
|
+
data.tar.gz: 9a0979d9eb0252b7c8fd5a4ebfea4d8975f39575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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
|
+
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-
|
11
|
+
date: 2018-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|