root_insurance 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/root_insurance/api/application.rb +9 -2
- data/lib/root_insurance/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd71b6f5e7fa7bb9053605102f0c6c787640e8fb
|
4
|
+
data.tar.gz: 1a8ee2517adec83a177f205ee1622aa976370d64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae1b1771711520f7a94a15931b94a23cc991ed10b19afa8a980a76916b88ee5fa6ed0f21bcb3151b53a4021434cb1c2ba9bccc249b3a8fbab1f3a9ac7d39b6ba
|
7
|
+
data.tar.gz: 7feef0fa440d5aa9aa86271d9f369a76ef0eeaed525b4a1cdb33d72456dc21e5cbee1e7959af226e4dff11969f1c6dff314d3d17964a9593446fb59cd7e2a1c6
|
data/CHANGELOG.md
CHANGED
@@ -8,9 +8,16 @@ module RootInsurance::Api
|
|
8
8
|
# @param [Integer] monthly_premium The monthly premium (in cents)
|
9
9
|
# @param [String] serial_number The device to insure's serial number. (for the gadgets module)
|
10
10
|
# @param [String] spouse_id SA ID number of the policyholder's spouse. Required if has_spouse is true on the quote.
|
11
|
-
# @param [Array<String>] children_ids SA ID numbers of the policyholder's children. Required if number_of_children is greater than 0 on the quote. All children must be younger than 21.
|
12
|
-
# @param [Array<String>] SA ID number of the policyholder's extended family members. Required if the length of +extended_family_ages+ is greater than 0 on the quote. The ages inferred from the ID numbers must match the ages given in the quote step.
|
11
|
+
# @param [Array<String>] children_ids SA ID numbers of the policyholder's children. Required if +number_of_children+ is greater than 0 on the quote. All children must be younger than 21.
|
12
|
+
# @param [Array<String>] extended_famliy_ids SA ID number of the policyholder's extended family members. Required if the length of +extended_family_ages+ is greater than 0 on the quote. The ages inferred from the ID numbers must match the ages given in the quote step.
|
13
13
|
# @return [Hash]
|
14
|
+
|
15
|
+
# @example
|
16
|
+
# client.create_application(
|
17
|
+
# policyholder_id: "bf1ada91-eecb-4f47-9bfa-1258bb1e0055",
|
18
|
+
# quote_package_id: "f4397823-db4a-4d6a-a06b-08e1a2a3172c",
|
19
|
+
# monthly_premium: 50000,
|
20
|
+
# serial_number: "1234567890")
|
14
21
|
def create_application(policyholder_id:, quote_package_id:, monthly_premium:,
|
15
22
|
serial_number: nil, spouse_id: nil, children_ids: nil, extended_famliy_ids: nil)
|
16
23
|
data = {
|