petstore-test-18052023 1.0.1.pre.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +193 -0
- data/lib/merged_api/api_helper.rb +10 -0
- data/lib/merged_api/client.rb +97 -0
- data/lib/merged_api/configuration.rb +127 -0
- data/lib/merged_api/controllers/authentication_controller.rb +36 -0
- data/lib/merged_api/controllers/base_controller.rb +65 -0
- data/lib/merged_api/controllers/insured_risk_controller.rb +47 -0
- data/lib/merged_api/controllers/o_auth_authorization_controller.rb +42 -0
- data/lib/merged_api/controllers/policy_controller.rb +66 -0
- data/lib/merged_api/controllers/quoting_controller.rb +41 -0
- data/lib/merged_api/controllers/simple_calculator_controller.rb +33 -0
- data/lib/merged_api/exceptions/api_exception.rb +10 -0
- data/lib/merged_api/exceptions/auth_oauth2_token400_error1_exception.rb +32 -0
- data/lib/merged_api/exceptions/insured_risks400_error1_exception.rb +41 -0
- data/lib/merged_api/exceptions/insured_risks401_error1_exception.rb +32 -0
- data/lib/merged_api/exceptions/insured_risks403_error1_exception.rb +41 -0
- data/lib/merged_api/exceptions/insured_risks415_error1_exception.rb +41 -0
- data/lib/merged_api/exceptions/insured_risks500_error1_exception.rb +41 -0
- data/lib/merged_api/exceptions/o_auth_provider_exception.rb +48 -0
- data/lib/merged_api/exceptions/policies400_error1_exception.rb +41 -0
- data/lib/merged_api/exceptions/policies401_error1_exception.rb +32 -0
- data/lib/merged_api/exceptions/policies403_error1_exception.rb +41 -0
- data/lib/merged_api/exceptions/policies500_error1_exception.rb +41 -0
- data/lib/merged_api/exceptions/quotes400_error1_exception.rb +41 -0
- data/lib/merged_api/exceptions/quotes401_error1_exception.rb +32 -0
- data/lib/merged_api/exceptions/quotes500_error1_exception.rb +41 -0
- data/lib/merged_api/http/auth/o_auth2.rb +63 -0
- data/lib/merged_api/http/http_call_back.rb +10 -0
- data/lib/merged_api/http/http_method_enum.rb +10 -0
- data/lib/merged_api/http/http_request.rb +10 -0
- data/lib/merged_api/http/http_response.rb +10 -0
- data/lib/merged_api/models/accept_enum.rb +14 -0
- data/lib/merged_api/models/additional_insured.rb +68 -0
- data/lib/merged_api/models/additional_interests.rb +68 -0
- data/lib/merged_api/models/agent.rb +48 -0
- data/lib/merged_api/models/agent3.rb +48 -0
- data/lib/merged_api/models/agent6.rb +48 -0
- data/lib/merged_api/models/attributes.rb +87 -0
- data/lib/merged_api/models/attributes1.rb +80 -0
- data/lib/merged_api/models/attributes10.rb +86 -0
- data/lib/merged_api/models/attributes11.rb +137 -0
- data/lib/merged_api/models/attributes12.rb +48 -0
- data/lib/merged_api/models/attributes2.rb +80 -0
- data/lib/merged_api/models/attributes3.rb +412 -0
- data/lib/merged_api/models/attributes4.rb +126 -0
- data/lib/merged_api/models/attributes5.rb +80 -0
- data/lib/merged_api/models/attributes6.rb +422 -0
- data/lib/merged_api/models/attributes9.rb +284 -0
- data/lib/merged_api/models/auth_oauth2_token_response.rb +70 -0
- data/lib/merged_api/models/base_model.rb +58 -0
- data/lib/merged_api/models/billing_address.rb +86 -0
- data/lib/merged_api/models/content_type1_enum.rb +14 -0
- data/lib/merged_api/models/content_type_enum.rb +14 -0
- data/lib/merged_api/models/coverage.rb +48 -0
- data/lib/merged_api/models/coverages.rb +68 -0
- data/lib/merged_api/models/coverages2.rb +57 -0
- data/lib/merged_api/models/coverages3.rb +57 -0
- data/lib/merged_api/models/customer.rb +48 -0
- data/lib/merged_api/models/customer2.rb +48 -0
- data/lib/merged_api/models/customer3.rb +48 -0
- data/lib/merged_api/models/data.rb +77 -0
- data/lib/merged_api/models/data1.rb +57 -0
- data/lib/merged_api/models/data11.rb +57 -0
- data/lib/merged_api/models/data12.rb +57 -0
- data/lib/merged_api/models/data18.rb +57 -0
- data/lib/merged_api/models/data19.rb +57 -0
- data/lib/merged_api/models/data2.rb +57 -0
- data/lib/merged_api/models/data20.rb +57 -0
- data/lib/merged_api/models/data21.rb +57 -0
- data/lib/merged_api/models/data24.rb +87 -0
- data/lib/merged_api/models/data3.rb +75 -0
- data/lib/merged_api/models/data39.rb +66 -0
- data/lib/merged_api/models/data40.rb +58 -0
- data/lib/merged_api/models/data41.rb +58 -0
- data/lib/merged_api/models/data42.rb +58 -0
- data/lib/merged_api/models/data43.rb +57 -0
- data/lib/merged_api/models/data44.rb +57 -0
- data/lib/merged_api/models/data45.rb +76 -0
- data/lib/merged_api/models/data46.rb +57 -0
- data/lib/merged_api/models/data47.rb +57 -0
- data/lib/merged_api/models/data6.rb +66 -0
- data/lib/merged_api/models/data7.rb +57 -0
- data/lib/merged_api/models/data8.rb +57 -0
- data/lib/merged_api/models/data9.rb +76 -0
- data/lib/merged_api/models/endorsement.rb +48 -0
- data/lib/merged_api/models/entity_type_enum.rb +17 -0
- data/lib/merged_api/models/errors.rb +61 -0
- data/lib/merged_api/models/errors1.rb +60 -0
- data/lib/merged_api/models/expires_in_enum.rb +14 -0
- data/lib/merged_api/models/grant_type_enum.rb +14 -0
- data/lib/merged_api/models/included.rb +75 -0
- data/lib/merged_api/models/included1.rb +75 -0
- data/lib/merged_api/models/included3.rb +76 -0
- data/lib/merged_api/models/included31.rb +67 -0
- data/lib/merged_api/models/included32.rb +67 -0
- data/lib/merged_api/models/included4.rb +85 -0
- data/lib/merged_api/models/included41.rb +85 -0
- data/lib/merged_api/models/included42.rb +85 -0
- data/lib/merged_api/models/installment_plan.rb +49 -0
- data/lib/merged_api/models/installment_plan2.rb +85 -0
- data/lib/merged_api/models/insured_risk.rb +48 -0
- data/lib/merged_api/models/insured_risk2.rb +48 -0
- data/lib/merged_api/models/insured_risk3.rb +48 -0
- data/lib/merged_api/models/insured_risks_request.rb +48 -0
- data/lib/merged_api/models/insured_risks_response.rb +48 -0
- data/lib/merged_api/models/mailing_address.rb +86 -0
- data/lib/merged_api/models/meta.rb +50 -0
- data/lib/merged_api/models/o_auth_provider_error_enum.rb +39 -0
- data/lib/merged_api/models/o_auth_token.rb +100 -0
- data/lib/merged_api/models/operation_type_enum.rb +23 -0
- data/lib/merged_api/models/parent.rb +48 -0
- data/lib/merged_api/models/policies_request.rb +48 -0
- data/lib/merged_api/models/policies_response.rb +59 -0
- data/lib/merged_api/models/policies_response1.rb +57 -0
- data/lib/merged_api/models/policy.rb +48 -0
- data/lib/merged_api/models/policy_state2_enum.rb +164 -0
- data/lib/merged_api/models/policy_state_enum.rb +165 -0
- data/lib/merged_api/models/product.rb +49 -0
- data/lib/merged_api/models/product2.rb +49 -0
- data/lib/merged_api/models/product3.rb +48 -0
- data/lib/merged_api/models/product6.rb +50 -0
- data/lib/merged_api/models/product_coverage.rb +48 -0
- data/lib/merged_api/models/quotes_request.rb +57 -0
- data/lib/merged_api/models/quotes_response.rb +57 -0
- data/lib/merged_api/models/relationships.rb +61 -0
- data/lib/merged_api/models/relationships1.rb +59 -0
- data/lib/merged_api/models/relationships10.rb +49 -0
- data/lib/merged_api/models/relationships11.rb +90 -0
- data/lib/merged_api/models/relationships13.rb +48 -0
- data/lib/merged_api/models/relationships14.rb +60 -0
- data/lib/merged_api/models/relationships2.rb +61 -0
- data/lib/merged_api/models/relationships3.rb +127 -0
- data/lib/merged_api/models/relationships4.rb +66 -0
- data/lib/merged_api/models/relationships5.rb +57 -0
- data/lib/merged_api/models/relationships9.rb +81 -0
- data/lib/merged_api/models/state_enum.rb +164 -0
- data/lib/merged_api/models/status2_enum.rb +26 -0
- data/lib/merged_api/models/status_enum.rb +32 -0
- data/lib/merged_api/models/token_type_enum.rb +14 -0
- data/lib/merged_api/utilities/date_time_helper.rb +11 -0
- data/lib/merged_api/utilities/file_wrapper.rb +16 -0
- data/lib/merged_api.rb +165 -0
- data/test/controllers/controller_test_base.rb +33 -0
- data/test/controllers/test_policy_controller.rb +36 -0
- data/test/controllers/test_simple_calculator_controller.rb +34 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +267 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Data representing a quote.
|
8
|
+
class QuotesResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# All values for this quote are in this top-level object.
|
13
|
+
# @return [Data45]
|
14
|
+
attr_accessor :data
|
15
|
+
|
16
|
+
# Array of included objects.
|
17
|
+
# @return [List of Object]
|
18
|
+
attr_accessor :included
|
19
|
+
|
20
|
+
# A mapping from model property names to API property names.
|
21
|
+
def self.names
|
22
|
+
@_hash = {} if @_hash.nil?
|
23
|
+
@_hash['data'] = 'data'
|
24
|
+
@_hash['included'] = 'included'
|
25
|
+
@_hash
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for optional fields
|
29
|
+
def self.optionals
|
30
|
+
[]
|
31
|
+
end
|
32
|
+
|
33
|
+
# An array for nullable fields
|
34
|
+
def self.nullables
|
35
|
+
[]
|
36
|
+
end
|
37
|
+
|
38
|
+
def initialize(data = nil,
|
39
|
+
included = nil)
|
40
|
+
@data = data
|
41
|
+
@included = included
|
42
|
+
end
|
43
|
+
|
44
|
+
# Creates an instance of the object from a hash.
|
45
|
+
def self.from_hash(hash)
|
46
|
+
return nil unless hash
|
47
|
+
|
48
|
+
# Extract variables from the hash.
|
49
|
+
data = Data45.from_hash(hash['data']) if hash['data']
|
50
|
+
included = hash.key?('included') ? hash['included'] : nil
|
51
|
+
|
52
|
+
# Create object from extracted values.
|
53
|
+
QuotesResponse.new(data,
|
54
|
+
included)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Related objects.
|
8
|
+
class Relationships < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# UUID of the agent.
|
13
|
+
# @return [Agent]
|
14
|
+
attr_accessor :agent
|
15
|
+
|
16
|
+
# Boost supplied value representing the specific product type. The product's
|
17
|
+
# configuration
|
18
|
+
# Determines allowable values, such as limits and deductibles.
|
19
|
+
# @return [Product]
|
20
|
+
attr_accessor :product
|
21
|
+
|
22
|
+
# A mapping from model property names to API property names.
|
23
|
+
def self.names
|
24
|
+
@_hash = {} if @_hash.nil?
|
25
|
+
@_hash['agent'] = 'agent'
|
26
|
+
@_hash['product'] = 'product'
|
27
|
+
@_hash
|
28
|
+
end
|
29
|
+
|
30
|
+
# An array for optional fields
|
31
|
+
def self.optionals
|
32
|
+
%w[
|
33
|
+
agent
|
34
|
+
]
|
35
|
+
end
|
36
|
+
|
37
|
+
# An array for nullable fields
|
38
|
+
def self.nullables
|
39
|
+
[]
|
40
|
+
end
|
41
|
+
|
42
|
+
def initialize(product = nil,
|
43
|
+
agent = SKIP)
|
44
|
+
@agent = agent unless agent == SKIP
|
45
|
+
@product = product
|
46
|
+
end
|
47
|
+
|
48
|
+
# Creates an instance of the object from a hash.
|
49
|
+
def self.from_hash(hash)
|
50
|
+
return nil unless hash
|
51
|
+
|
52
|
+
# Extract variables from the hash.
|
53
|
+
product = Product.from_hash(hash['product']) if hash['product']
|
54
|
+
agent = Agent.from_hash(hash['agent']) if hash['agent']
|
55
|
+
|
56
|
+
# Create object from extracted values.
|
57
|
+
Relationships.new(product,
|
58
|
+
agent)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Related objects.
|
8
|
+
class Relationships1 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# UUID of the agent.
|
13
|
+
# @return [Agent]
|
14
|
+
attr_accessor :agent
|
15
|
+
|
16
|
+
# Boost supplied value representing the specific product type. The product's
|
17
|
+
# configuration
|
18
|
+
# Determines allowable values, such as limits and deductibles.
|
19
|
+
# @return [Product]
|
20
|
+
attr_accessor :product
|
21
|
+
|
22
|
+
# A mapping from model property names to API property names.
|
23
|
+
def self.names
|
24
|
+
@_hash = {} if @_hash.nil?
|
25
|
+
@_hash['agent'] = 'agent'
|
26
|
+
@_hash['product'] = 'product'
|
27
|
+
@_hash
|
28
|
+
end
|
29
|
+
|
30
|
+
# An array for optional fields
|
31
|
+
def self.optionals
|
32
|
+
[]
|
33
|
+
end
|
34
|
+
|
35
|
+
# An array for nullable fields
|
36
|
+
def self.nullables
|
37
|
+
[]
|
38
|
+
end
|
39
|
+
|
40
|
+
def initialize(agent = nil,
|
41
|
+
product = nil)
|
42
|
+
@agent = agent
|
43
|
+
@product = product
|
44
|
+
end
|
45
|
+
|
46
|
+
# Creates an instance of the object from a hash.
|
47
|
+
def self.from_hash(hash)
|
48
|
+
return nil unless hash
|
49
|
+
|
50
|
+
# Extract variables from the hash.
|
51
|
+
agent = Agent.from_hash(hash['agent']) if hash['agent']
|
52
|
+
product = Product.from_hash(hash['product']) if hash['product']
|
53
|
+
|
54
|
+
# Create object from extracted values.
|
55
|
+
Relationships1.new(agent,
|
56
|
+
product)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Related items.
|
8
|
+
class Relationships10 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Product coverage that applies to this policy.
|
13
|
+
# @return [ProductCoverage]
|
14
|
+
attr_accessor :product_coverage
|
15
|
+
|
16
|
+
# A mapping from model property names to API property names.
|
17
|
+
def self.names
|
18
|
+
@_hash = {} if @_hash.nil?
|
19
|
+
@_hash['product_coverage'] = 'product_coverage'
|
20
|
+
@_hash
|
21
|
+
end
|
22
|
+
|
23
|
+
# An array for optional fields
|
24
|
+
def self.optionals
|
25
|
+
[]
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for nullable fields
|
29
|
+
def self.nullables
|
30
|
+
[]
|
31
|
+
end
|
32
|
+
|
33
|
+
def initialize(product_coverage = nil)
|
34
|
+
@product_coverage = product_coverage
|
35
|
+
end
|
36
|
+
|
37
|
+
# Creates an instance of the object from a hash.
|
38
|
+
def self.from_hash(hash)
|
39
|
+
return nil unless hash
|
40
|
+
|
41
|
+
# Extract variables from the hash.
|
42
|
+
product_coverage = ProductCoverage.from_hash(hash['product_coverage']) if
|
43
|
+
hash['product_coverage']
|
44
|
+
|
45
|
+
# Create object from extracted values.
|
46
|
+
Relationships10.new(product_coverage)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Related items.
|
8
|
+
class Relationships11 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# List of coverages that were created.
|
13
|
+
# @return [Coverages3]
|
14
|
+
attr_accessor :coverages
|
15
|
+
|
16
|
+
# Customer that was created.
|
17
|
+
# @return [Customer3]
|
18
|
+
attr_accessor :customer
|
19
|
+
|
20
|
+
# Insured risk attached to the quote.
|
21
|
+
# @return [InsuredRisk3]
|
22
|
+
attr_accessor :insured_risk
|
23
|
+
|
24
|
+
# Boost supplied value representing the specific product type. The product's
|
25
|
+
# configuration
|
26
|
+
# will determine allowable values for the Policy, such as limit and
|
27
|
+
# deductible.
|
28
|
+
# @return [Product6]
|
29
|
+
attr_accessor :product
|
30
|
+
|
31
|
+
# The Boost UUID of the agent.
|
32
|
+
# @return [Agent6]
|
33
|
+
attr_accessor :agent
|
34
|
+
|
35
|
+
# A mapping from model property names to API property names.
|
36
|
+
def self.names
|
37
|
+
@_hash = {} if @_hash.nil?
|
38
|
+
@_hash['coverages'] = 'coverages'
|
39
|
+
@_hash['customer'] = 'customer'
|
40
|
+
@_hash['insured_risk'] = 'insured_risk'
|
41
|
+
@_hash['product'] = 'product'
|
42
|
+
@_hash['agent'] = 'agent'
|
43
|
+
@_hash
|
44
|
+
end
|
45
|
+
|
46
|
+
# An array for optional fields
|
47
|
+
def self.optionals
|
48
|
+
%w[
|
49
|
+
coverages
|
50
|
+
agent
|
51
|
+
]
|
52
|
+
end
|
53
|
+
|
54
|
+
# An array for nullable fields
|
55
|
+
def self.nullables
|
56
|
+
[]
|
57
|
+
end
|
58
|
+
|
59
|
+
def initialize(customer = nil,
|
60
|
+
insured_risk = nil,
|
61
|
+
product = nil,
|
62
|
+
coverages = SKIP,
|
63
|
+
agent = SKIP)
|
64
|
+
@coverages = coverages unless coverages == SKIP
|
65
|
+
@customer = customer
|
66
|
+
@insured_risk = insured_risk
|
67
|
+
@product = product
|
68
|
+
@agent = agent unless agent == SKIP
|
69
|
+
end
|
70
|
+
|
71
|
+
# Creates an instance of the object from a hash.
|
72
|
+
def self.from_hash(hash)
|
73
|
+
return nil unless hash
|
74
|
+
|
75
|
+
# Extract variables from the hash.
|
76
|
+
customer = Customer3.from_hash(hash['customer']) if hash['customer']
|
77
|
+
insured_risk = InsuredRisk3.from_hash(hash['insured_risk']) if hash['insured_risk']
|
78
|
+
product = Product6.from_hash(hash['product']) if hash['product']
|
79
|
+
coverages = Coverages3.from_hash(hash['coverages']) if hash['coverages']
|
80
|
+
agent = Agent6.from_hash(hash['agent']) if hash['agent']
|
81
|
+
|
82
|
+
# Create object from extracted values.
|
83
|
+
Relationships11.new(customer,
|
84
|
+
insured_risk,
|
85
|
+
product,
|
86
|
+
coverages,
|
87
|
+
agent)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Related items.
|
8
|
+
class Relationships13 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# The Boost UUID of the agent.
|
13
|
+
# @return [Agent6]
|
14
|
+
attr_accessor :agent
|
15
|
+
|
16
|
+
# A mapping from model property names to API property names.
|
17
|
+
def self.names
|
18
|
+
@_hash = {} if @_hash.nil?
|
19
|
+
@_hash['agent'] = 'agent'
|
20
|
+
@_hash
|
21
|
+
end
|
22
|
+
|
23
|
+
# An array for optional fields
|
24
|
+
def self.optionals
|
25
|
+
[]
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for nullable fields
|
29
|
+
def self.nullables
|
30
|
+
[]
|
31
|
+
end
|
32
|
+
|
33
|
+
def initialize(agent = nil)
|
34
|
+
@agent = agent
|
35
|
+
end
|
36
|
+
|
37
|
+
# Creates an instance of the object from a hash.
|
38
|
+
def self.from_hash(hash)
|
39
|
+
return nil unless hash
|
40
|
+
|
41
|
+
# Extract variables from the hash.
|
42
|
+
agent = Agent6.from_hash(hash['agent']) if hash['agent']
|
43
|
+
|
44
|
+
# Create object from extracted values.
|
45
|
+
Relationships13.new(agent)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Related items.
|
8
|
+
class Relationships14 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Boost supplied value representing the specific product type. The product's
|
13
|
+
# configuration
|
14
|
+
# will determine allowable values for the Policy, such as limit and
|
15
|
+
# deductible.
|
16
|
+
# @return [Product6]
|
17
|
+
attr_accessor :product
|
18
|
+
|
19
|
+
# The Boost UUID of the agent.
|
20
|
+
# @return [Agent6]
|
21
|
+
attr_accessor :agent
|
22
|
+
|
23
|
+
# A mapping from model property names to API property names.
|
24
|
+
def self.names
|
25
|
+
@_hash = {} if @_hash.nil?
|
26
|
+
@_hash['product'] = 'product'
|
27
|
+
@_hash['agent'] = 'agent'
|
28
|
+
@_hash
|
29
|
+
end
|
30
|
+
|
31
|
+
# An array for optional fields
|
32
|
+
def self.optionals
|
33
|
+
[]
|
34
|
+
end
|
35
|
+
|
36
|
+
# An array for nullable fields
|
37
|
+
def self.nullables
|
38
|
+
[]
|
39
|
+
end
|
40
|
+
|
41
|
+
def initialize(product = nil,
|
42
|
+
agent = nil)
|
43
|
+
@product = product
|
44
|
+
@agent = agent
|
45
|
+
end
|
46
|
+
|
47
|
+
# Creates an instance of the object from a hash.
|
48
|
+
def self.from_hash(hash)
|
49
|
+
return nil unless hash
|
50
|
+
|
51
|
+
# Extract variables from the hash.
|
52
|
+
product = Product6.from_hash(hash['product']) if hash['product']
|
53
|
+
agent = Agent6.from_hash(hash['agent']) if hash['agent']
|
54
|
+
|
55
|
+
# Create object from extracted values.
|
56
|
+
Relationships14.new(product,
|
57
|
+
agent)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Related items.
|
8
|
+
class Relationships2 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# List of additional interests for this policy.
|
13
|
+
# @return [AdditionalInterests]
|
14
|
+
attr_accessor :additional_interests
|
15
|
+
|
16
|
+
# ID of parent policy. Product must also be a parent product.
|
17
|
+
# @return [Parent]
|
18
|
+
attr_accessor :parent
|
19
|
+
|
20
|
+
# A mapping from model property names to API property names.
|
21
|
+
def self.names
|
22
|
+
@_hash = {} if @_hash.nil?
|
23
|
+
@_hash['additional_interests'] = 'additional_interests'
|
24
|
+
@_hash['parent'] = 'parent'
|
25
|
+
@_hash
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for optional fields
|
29
|
+
def self.optionals
|
30
|
+
%w[
|
31
|
+
additional_interests
|
32
|
+
parent
|
33
|
+
]
|
34
|
+
end
|
35
|
+
|
36
|
+
# An array for nullable fields
|
37
|
+
def self.nullables
|
38
|
+
[]
|
39
|
+
end
|
40
|
+
|
41
|
+
def initialize(additional_interests = SKIP,
|
42
|
+
parent = SKIP)
|
43
|
+
@additional_interests = additional_interests unless additional_interests == SKIP
|
44
|
+
@parent = parent unless parent == SKIP
|
45
|
+
end
|
46
|
+
|
47
|
+
# Creates an instance of the object from a hash.
|
48
|
+
def self.from_hash(hash)
|
49
|
+
return nil unless hash
|
50
|
+
|
51
|
+
# Extract variables from the hash.
|
52
|
+
additional_interests = AdditionalInterests.from_hash(hash['additional_interests']) if
|
53
|
+
hash['additional_interests']
|
54
|
+
parent = Parent.from_hash(hash['parent']) if hash['parent']
|
55
|
+
|
56
|
+
# Create object from extracted values.
|
57
|
+
Relationships2.new(additional_interests,
|
58
|
+
parent)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Items related to this policy.
|
8
|
+
class Relationships3 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# List of coverages that apply to this policy.
|
13
|
+
# @return [Coverages]
|
14
|
+
attr_accessor :coverages
|
15
|
+
|
16
|
+
# The risk insured by the policy.
|
17
|
+
# @return [InsuredRisk]
|
18
|
+
attr_accessor :insured_risk
|
19
|
+
|
20
|
+
# Relationship containing the id that identifies the customer for this
|
21
|
+
# policy.
|
22
|
+
# @return [Customer]
|
23
|
+
attr_accessor :customer
|
24
|
+
|
25
|
+
# Boost supplied value representing the specific product type. The product's
|
26
|
+
# configuration
|
27
|
+
# Determines allowable values, such as limit and deductible.
|
28
|
+
# @return [Product2]
|
29
|
+
attr_accessor :product
|
30
|
+
|
31
|
+
# ID of parent policy. Product must also be a parent product.
|
32
|
+
# @return [Parent]
|
33
|
+
attr_accessor :parent
|
34
|
+
|
35
|
+
# List of additional interests for this policy.
|
36
|
+
# @return [AdditionalInterests]
|
37
|
+
attr_accessor :additional_interests
|
38
|
+
|
39
|
+
# List of additional insured for this policy.
|
40
|
+
# @return [AdditionalInsured]
|
41
|
+
attr_accessor :additional_insured
|
42
|
+
|
43
|
+
# UUID of the agent.
|
44
|
+
# @return [Agent]
|
45
|
+
attr_accessor :agent
|
46
|
+
|
47
|
+
# The Boost UUID for the `installment_plan` based on the chosen installment
|
48
|
+
# plan.
|
49
|
+
# @return [InstallmentPlan]
|
50
|
+
attr_accessor :installment_plan
|
51
|
+
|
52
|
+
# A mapping from model property names to API property names.
|
53
|
+
def self.names
|
54
|
+
@_hash = {} if @_hash.nil?
|
55
|
+
@_hash['coverages'] = 'coverages'
|
56
|
+
@_hash['insured_risk'] = 'insured_risk'
|
57
|
+
@_hash['customer'] = 'customer'
|
58
|
+
@_hash['product'] = 'product'
|
59
|
+
@_hash['parent'] = 'parent'
|
60
|
+
@_hash['additional_interests'] = 'additional_interests'
|
61
|
+
@_hash['additional_insured'] = 'additional_insured'
|
62
|
+
@_hash['agent'] = 'agent'
|
63
|
+
@_hash['installment_plan'] = 'installment_plan'
|
64
|
+
@_hash
|
65
|
+
end
|
66
|
+
|
67
|
+
# An array for optional fields
|
68
|
+
def self.optionals
|
69
|
+
[]
|
70
|
+
end
|
71
|
+
|
72
|
+
# An array for nullable fields
|
73
|
+
def self.nullables
|
74
|
+
[]
|
75
|
+
end
|
76
|
+
|
77
|
+
def initialize(coverages = nil,
|
78
|
+
insured_risk = nil,
|
79
|
+
customer = nil,
|
80
|
+
product = nil,
|
81
|
+
parent = nil,
|
82
|
+
additional_interests = nil,
|
83
|
+
additional_insured = nil,
|
84
|
+
agent = nil,
|
85
|
+
installment_plan = nil)
|
86
|
+
@coverages = coverages
|
87
|
+
@insured_risk = insured_risk
|
88
|
+
@customer = customer
|
89
|
+
@product = product
|
90
|
+
@parent = parent
|
91
|
+
@additional_interests = additional_interests
|
92
|
+
@additional_insured = additional_insured
|
93
|
+
@agent = agent
|
94
|
+
@installment_plan = installment_plan
|
95
|
+
end
|
96
|
+
|
97
|
+
# Creates an instance of the object from a hash.
|
98
|
+
def self.from_hash(hash)
|
99
|
+
return nil unless hash
|
100
|
+
|
101
|
+
# Extract variables from the hash.
|
102
|
+
coverages = Coverages.from_hash(hash['coverages']) if hash['coverages']
|
103
|
+
insured_risk = InsuredRisk.from_hash(hash['insured_risk']) if hash['insured_risk']
|
104
|
+
customer = Customer.from_hash(hash['customer']) if hash['customer']
|
105
|
+
product = Product2.from_hash(hash['product']) if hash['product']
|
106
|
+
parent = Parent.from_hash(hash['parent']) if hash['parent']
|
107
|
+
additional_interests = AdditionalInterests.from_hash(hash['additional_interests']) if
|
108
|
+
hash['additional_interests']
|
109
|
+
additional_insured = AdditionalInsured.from_hash(hash['additional_insured']) if
|
110
|
+
hash['additional_insured']
|
111
|
+
agent = Agent.from_hash(hash['agent']) if hash['agent']
|
112
|
+
installment_plan = InstallmentPlan.from_hash(hash['installment_plan']) if
|
113
|
+
hash['installment_plan']
|
114
|
+
|
115
|
+
# Create object from extracted values.
|
116
|
+
Relationships3.new(coverages,
|
117
|
+
insured_risk,
|
118
|
+
customer,
|
119
|
+
product,
|
120
|
+
parent,
|
121
|
+
additional_interests,
|
122
|
+
additional_insured,
|
123
|
+
agent,
|
124
|
+
installment_plan)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Items related to this coverage.
|
8
|
+
class Relationships4 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# UUID that identifies this policy.
|
13
|
+
# @return [Policy]
|
14
|
+
attr_accessor :policy
|
15
|
+
|
16
|
+
# UUID that identifies this endorsement.
|
17
|
+
# @return [Endorsement]
|
18
|
+
attr_accessor :endorsement
|
19
|
+
|
20
|
+
# UUID that identifies this product coverage.
|
21
|
+
# @return [Coverage]
|
22
|
+
attr_accessor :coverage
|
23
|
+
|
24
|
+
# A mapping from model property names to API property names.
|
25
|
+
def self.names
|
26
|
+
@_hash = {} if @_hash.nil?
|
27
|
+
@_hash['policy'] = 'policy'
|
28
|
+
@_hash['endorsement'] = 'endorsement'
|
29
|
+
@_hash['coverage'] = 'coverage'
|
30
|
+
@_hash
|
31
|
+
end
|
32
|
+
|
33
|
+
# An array for optional fields
|
34
|
+
def self.optionals
|
35
|
+
[]
|
36
|
+
end
|
37
|
+
|
38
|
+
# An array for nullable fields
|
39
|
+
def self.nullables
|
40
|
+
[]
|
41
|
+
end
|
42
|
+
|
43
|
+
def initialize(policy = nil,
|
44
|
+
endorsement = nil,
|
45
|
+
coverage = nil)
|
46
|
+
@policy = policy
|
47
|
+
@endorsement = endorsement
|
48
|
+
@coverage = coverage
|
49
|
+
end
|
50
|
+
|
51
|
+
# Creates an instance of the object from a hash.
|
52
|
+
def self.from_hash(hash)
|
53
|
+
return nil unless hash
|
54
|
+
|
55
|
+
# Extract variables from the hash.
|
56
|
+
policy = Policy.from_hash(hash['policy']) if hash['policy']
|
57
|
+
endorsement = Endorsement.from_hash(hash['endorsement']) if hash['endorsement']
|
58
|
+
coverage = Coverage.from_hash(hash['coverage']) if hash['coverage']
|
59
|
+
|
60
|
+
# Create object from extracted values.
|
61
|
+
Relationships4.new(policy,
|
62
|
+
endorsement,
|
63
|
+
coverage)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|