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,76 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Included3 Model.
|
8
|
+
class Included3 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# The type of resource being represented.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
# The local ID that ties this resource to a related object in
|
17
|
+
# `data.relationships`.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :lid
|
20
|
+
|
21
|
+
# Attributes for this object.
|
22
|
+
# @return [Attributes10]
|
23
|
+
attr_accessor :attributes
|
24
|
+
|
25
|
+
# Related items.
|
26
|
+
# @return [Relationships10]
|
27
|
+
attr_accessor :relationships
|
28
|
+
|
29
|
+
# A mapping from model property names to API property names.
|
30
|
+
def self.names
|
31
|
+
@_hash = {} if @_hash.nil?
|
32
|
+
@_hash['type'] = 'type'
|
33
|
+
@_hash['lid'] = 'lid'
|
34
|
+
@_hash['attributes'] = 'attributes'
|
35
|
+
@_hash['relationships'] = 'relationships'
|
36
|
+
@_hash
|
37
|
+
end
|
38
|
+
|
39
|
+
# An array for optional fields
|
40
|
+
def self.optionals
|
41
|
+
[]
|
42
|
+
end
|
43
|
+
|
44
|
+
# An array for nullable fields
|
45
|
+
def self.nullables
|
46
|
+
[]
|
47
|
+
end
|
48
|
+
|
49
|
+
def initialize(type = 'coverage',
|
50
|
+
lid = nil,
|
51
|
+
attributes = nil,
|
52
|
+
relationships = nil)
|
53
|
+
@type = type
|
54
|
+
@lid = lid
|
55
|
+
@attributes = attributes
|
56
|
+
@relationships = relationships
|
57
|
+
end
|
58
|
+
|
59
|
+
# Creates an instance of the object from a hash.
|
60
|
+
def self.from_hash(hash)
|
61
|
+
return nil unless hash
|
62
|
+
|
63
|
+
# Extract variables from the hash.
|
64
|
+
type = hash['type'] ||= 'coverage'
|
65
|
+
lid = hash.key?('lid') ? hash['lid'] : nil
|
66
|
+
attributes = Attributes10.from_hash(hash['attributes']) if hash['attributes']
|
67
|
+
relationships = Relationships10.from_hash(hash['relationships']) if hash['relationships']
|
68
|
+
|
69
|
+
# Create object from extracted values.
|
70
|
+
Included3.new(type,
|
71
|
+
lid,
|
72
|
+
attributes,
|
73
|
+
relationships)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Included31 Model.
|
8
|
+
class Included31 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# The type of resource being represented.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
# The local ID that ties this resource to a related object in
|
17
|
+
# `data.relationships`.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :lid
|
20
|
+
|
21
|
+
# The insured entity.
|
22
|
+
# @return [Attributes11]
|
23
|
+
attr_accessor :attributes
|
24
|
+
|
25
|
+
# A mapping from model property names to API property names.
|
26
|
+
def self.names
|
27
|
+
@_hash = {} if @_hash.nil?
|
28
|
+
@_hash['type'] = 'type'
|
29
|
+
@_hash['lid'] = 'lid'
|
30
|
+
@_hash['attributes'] = 'attributes'
|
31
|
+
@_hash
|
32
|
+
end
|
33
|
+
|
34
|
+
# An array for optional fields
|
35
|
+
def self.optionals
|
36
|
+
[]
|
37
|
+
end
|
38
|
+
|
39
|
+
# An array for nullable fields
|
40
|
+
def self.nullables
|
41
|
+
[]
|
42
|
+
end
|
43
|
+
|
44
|
+
def initialize(type = 'customer',
|
45
|
+
lid = nil,
|
46
|
+
attributes = nil)
|
47
|
+
@type = type
|
48
|
+
@lid = lid
|
49
|
+
@attributes = attributes
|
50
|
+
end
|
51
|
+
|
52
|
+
# Creates an instance of the object from a hash.
|
53
|
+
def self.from_hash(hash)
|
54
|
+
return nil unless hash
|
55
|
+
|
56
|
+
# Extract variables from the hash.
|
57
|
+
type = hash['type'] ||= 'customer'
|
58
|
+
lid = hash.key?('lid') ? hash['lid'] : nil
|
59
|
+
attributes = Attributes11.from_hash(hash['attributes']) if hash['attributes']
|
60
|
+
|
61
|
+
# Create object from extracted values.
|
62
|
+
Included31.new(type,
|
63
|
+
lid,
|
64
|
+
attributes)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Included32 Model.
|
8
|
+
class Included32 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# The type of resource being represented.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
# The local ID that ties this resource to a related object in
|
17
|
+
# `data.relationships`.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :lid
|
20
|
+
|
21
|
+
# The insured risk.
|
22
|
+
# @return [Attributes12]
|
23
|
+
attr_accessor :attributes
|
24
|
+
|
25
|
+
# A mapping from model property names to API property names.
|
26
|
+
def self.names
|
27
|
+
@_hash = {} if @_hash.nil?
|
28
|
+
@_hash['type'] = 'type'
|
29
|
+
@_hash['lid'] = 'lid'
|
30
|
+
@_hash['attributes'] = 'attributes'
|
31
|
+
@_hash
|
32
|
+
end
|
33
|
+
|
34
|
+
# An array for optional fields
|
35
|
+
def self.optionals
|
36
|
+
[]
|
37
|
+
end
|
38
|
+
|
39
|
+
# An array for nullable fields
|
40
|
+
def self.nullables
|
41
|
+
[]
|
42
|
+
end
|
43
|
+
|
44
|
+
def initialize(type = 'insured_risk',
|
45
|
+
lid = nil,
|
46
|
+
attributes = nil)
|
47
|
+
@type = type
|
48
|
+
@lid = lid
|
49
|
+
@attributes = attributes
|
50
|
+
end
|
51
|
+
|
52
|
+
# Creates an instance of the object from a hash.
|
53
|
+
def self.from_hash(hash)
|
54
|
+
return nil unless hash
|
55
|
+
|
56
|
+
# Extract variables from the hash.
|
57
|
+
type = hash['type'] ||= 'insured_risk'
|
58
|
+
lid = hash.key?('lid') ? hash['lid'] : nil
|
59
|
+
attributes = Attributes12.from_hash(hash['attributes']) if hash['attributes']
|
60
|
+
|
61
|
+
# Create object from extracted values.
|
62
|
+
Included32.new(type,
|
63
|
+
lid,
|
64
|
+
attributes)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Included4 Model.
|
8
|
+
class Included4 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# The type of resource being represented.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
# Unique Boost-generated UUID that identifies this resource.
|
17
|
+
# @return [UUID | String]
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# The local ID that ties this resource to a related object in
|
21
|
+
# `data.relationships`.
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :lid
|
24
|
+
|
25
|
+
# Attributes for this object.
|
26
|
+
# @return [Attributes10]
|
27
|
+
attr_accessor :attributes
|
28
|
+
|
29
|
+
# Related items.
|
30
|
+
# @return [Relationships10]
|
31
|
+
attr_accessor :relationships
|
32
|
+
|
33
|
+
# A mapping from model property names to API property names.
|
34
|
+
def self.names
|
35
|
+
@_hash = {} if @_hash.nil?
|
36
|
+
@_hash['type'] = 'type'
|
37
|
+
@_hash['id'] = 'id'
|
38
|
+
@_hash['lid'] = 'lid'
|
39
|
+
@_hash['attributes'] = 'attributes'
|
40
|
+
@_hash['relationships'] = 'relationships'
|
41
|
+
@_hash
|
42
|
+
end
|
43
|
+
|
44
|
+
# An array for optional fields
|
45
|
+
def self.optionals
|
46
|
+
[]
|
47
|
+
end
|
48
|
+
|
49
|
+
# An array for nullable fields
|
50
|
+
def self.nullables
|
51
|
+
[]
|
52
|
+
end
|
53
|
+
|
54
|
+
def initialize(type = 'coverage',
|
55
|
+
id = nil,
|
56
|
+
lid = nil,
|
57
|
+
attributes = nil,
|
58
|
+
relationships = nil)
|
59
|
+
@type = type
|
60
|
+
@id = id
|
61
|
+
@lid = lid
|
62
|
+
@attributes = attributes
|
63
|
+
@relationships = relationships
|
64
|
+
end
|
65
|
+
|
66
|
+
# Creates an instance of the object from a hash.
|
67
|
+
def self.from_hash(hash)
|
68
|
+
return nil unless hash
|
69
|
+
|
70
|
+
# Extract variables from the hash.
|
71
|
+
type = hash['type'] ||= 'coverage'
|
72
|
+
id = hash.key?('id') ? hash['id'] : nil
|
73
|
+
lid = hash.key?('lid') ? hash['lid'] : nil
|
74
|
+
attributes = Attributes10.from_hash(hash['attributes']) if hash['attributes']
|
75
|
+
relationships = Relationships10.from_hash(hash['relationships']) if hash['relationships']
|
76
|
+
|
77
|
+
# Create object from extracted values.
|
78
|
+
Included4.new(type,
|
79
|
+
id,
|
80
|
+
lid,
|
81
|
+
attributes,
|
82
|
+
relationships)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Included41 Model.
|
8
|
+
class Included41 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# The type of resource being represented.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
# Unique Boost-generated UUID that identifies this resource.
|
17
|
+
# @return [UUID | String]
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# The local ID that ties this resource to a related object in
|
21
|
+
# `data.relationships`.
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :lid
|
24
|
+
|
25
|
+
# The insured entity.
|
26
|
+
# @return [Attributes11]
|
27
|
+
attr_accessor :attributes
|
28
|
+
|
29
|
+
# Related items.
|
30
|
+
# @return [Relationships13]
|
31
|
+
attr_accessor :relationships
|
32
|
+
|
33
|
+
# A mapping from model property names to API property names.
|
34
|
+
def self.names
|
35
|
+
@_hash = {} if @_hash.nil?
|
36
|
+
@_hash['type'] = 'type'
|
37
|
+
@_hash['id'] = 'id'
|
38
|
+
@_hash['lid'] = 'lid'
|
39
|
+
@_hash['attributes'] = 'attributes'
|
40
|
+
@_hash['relationships'] = 'relationships'
|
41
|
+
@_hash
|
42
|
+
end
|
43
|
+
|
44
|
+
# An array for optional fields
|
45
|
+
def self.optionals
|
46
|
+
[]
|
47
|
+
end
|
48
|
+
|
49
|
+
# An array for nullable fields
|
50
|
+
def self.nullables
|
51
|
+
[]
|
52
|
+
end
|
53
|
+
|
54
|
+
def initialize(type = 'customer',
|
55
|
+
id = nil,
|
56
|
+
lid = nil,
|
57
|
+
attributes = nil,
|
58
|
+
relationships = nil)
|
59
|
+
@type = type
|
60
|
+
@id = id
|
61
|
+
@lid = lid
|
62
|
+
@attributes = attributes
|
63
|
+
@relationships = relationships
|
64
|
+
end
|
65
|
+
|
66
|
+
# Creates an instance of the object from a hash.
|
67
|
+
def self.from_hash(hash)
|
68
|
+
return nil unless hash
|
69
|
+
|
70
|
+
# Extract variables from the hash.
|
71
|
+
type = hash['type'] ||= 'customer'
|
72
|
+
id = hash.key?('id') ? hash['id'] : nil
|
73
|
+
lid = hash.key?('lid') ? hash['lid'] : nil
|
74
|
+
attributes = Attributes11.from_hash(hash['attributes']) if hash['attributes']
|
75
|
+
relationships = Relationships13.from_hash(hash['relationships']) if hash['relationships']
|
76
|
+
|
77
|
+
# Create object from extracted values.
|
78
|
+
Included41.new(type,
|
79
|
+
id,
|
80
|
+
lid,
|
81
|
+
attributes,
|
82
|
+
relationships)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# Included42 Model.
|
8
|
+
class Included42 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# The type of resource being represented.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
# Unique Boost-generated UUID that identifies this resource.
|
17
|
+
# @return [UUID | String]
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# The local ID that ties this resource to a related object in
|
21
|
+
# `data.relationships`.
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :lid
|
24
|
+
|
25
|
+
# The insured risk.
|
26
|
+
# @return [Attributes12]
|
27
|
+
attr_accessor :attributes
|
28
|
+
|
29
|
+
# Related items.
|
30
|
+
# @return [Relationships14]
|
31
|
+
attr_accessor :relationships
|
32
|
+
|
33
|
+
# A mapping from model property names to API property names.
|
34
|
+
def self.names
|
35
|
+
@_hash = {} if @_hash.nil?
|
36
|
+
@_hash['type'] = 'type'
|
37
|
+
@_hash['id'] = 'id'
|
38
|
+
@_hash['lid'] = 'lid'
|
39
|
+
@_hash['attributes'] = 'attributes'
|
40
|
+
@_hash['relationships'] = 'relationships'
|
41
|
+
@_hash
|
42
|
+
end
|
43
|
+
|
44
|
+
# An array for optional fields
|
45
|
+
def self.optionals
|
46
|
+
[]
|
47
|
+
end
|
48
|
+
|
49
|
+
# An array for nullable fields
|
50
|
+
def self.nullables
|
51
|
+
[]
|
52
|
+
end
|
53
|
+
|
54
|
+
def initialize(type = 'insured_risk',
|
55
|
+
id = nil,
|
56
|
+
lid = nil,
|
57
|
+
attributes = nil,
|
58
|
+
relationships = nil)
|
59
|
+
@type = type
|
60
|
+
@id = id
|
61
|
+
@lid = lid
|
62
|
+
@attributes = attributes
|
63
|
+
@relationships = relationships
|
64
|
+
end
|
65
|
+
|
66
|
+
# Creates an instance of the object from a hash.
|
67
|
+
def self.from_hash(hash)
|
68
|
+
return nil unless hash
|
69
|
+
|
70
|
+
# Extract variables from the hash.
|
71
|
+
type = hash['type'] ||= 'insured_risk'
|
72
|
+
id = hash.key?('id') ? hash['id'] : nil
|
73
|
+
lid = hash.key?('lid') ? hash['lid'] : nil
|
74
|
+
attributes = Attributes12.from_hash(hash['attributes']) if hash['attributes']
|
75
|
+
relationships = Relationships14.from_hash(hash['relationships']) if hash['relationships']
|
76
|
+
|
77
|
+
# Create object from extracted values.
|
78
|
+
Included42.new(type,
|
79
|
+
id,
|
80
|
+
lid,
|
81
|
+
attributes,
|
82
|
+
relationships)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
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
|
+
# The Boost UUID for the `installment_plan` based on the chosen installment
|
8
|
+
# plan.
|
9
|
+
class InstallmentPlan < BaseModel
|
10
|
+
SKIP = Object.new
|
11
|
+
private_constant :SKIP
|
12
|
+
|
13
|
+
# Provided data for this installment plan relationship.
|
14
|
+
# @return [Data18]
|
15
|
+
attr_accessor :data
|
16
|
+
|
17
|
+
# A mapping from model property names to API property names.
|
18
|
+
def self.names
|
19
|
+
@_hash = {} if @_hash.nil?
|
20
|
+
@_hash['data'] = 'data'
|
21
|
+
@_hash
|
22
|
+
end
|
23
|
+
|
24
|
+
# An array for optional fields
|
25
|
+
def self.optionals
|
26
|
+
[]
|
27
|
+
end
|
28
|
+
|
29
|
+
# An array for nullable fields
|
30
|
+
def self.nullables
|
31
|
+
[]
|
32
|
+
end
|
33
|
+
|
34
|
+
def initialize(data = nil)
|
35
|
+
@data = data
|
36
|
+
end
|
37
|
+
|
38
|
+
# Creates an instance of the object from a hash.
|
39
|
+
def self.from_hash(hash)
|
40
|
+
return nil unless hash
|
41
|
+
|
42
|
+
# Extract variables from the hash.
|
43
|
+
data = Data18.from_hash(hash['data']) if hash['data']
|
44
|
+
|
45
|
+
# Create object from extracted values.
|
46
|
+
InstallmentPlan.new(data)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# merged_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MergedApi
|
7
|
+
# InstallmentPlan2 Model.
|
8
|
+
class InstallmentPlan2 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# The billing period for this installment plan entry.
|
13
|
+
# @return [Date]
|
14
|
+
attr_accessor :billing_period
|
15
|
+
|
16
|
+
# Boost generated amount due for this installment plan entry.
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :amount_due
|
19
|
+
|
20
|
+
# The date on which payment is due for this billing period.
|
21
|
+
# @return [Date]
|
22
|
+
attr_accessor :due_date
|
23
|
+
|
24
|
+
# Boost generated taxes due for this installment plan entry.
|
25
|
+
# @return [String]
|
26
|
+
attr_accessor :taxes
|
27
|
+
|
28
|
+
# Boost generated fees due for this installment plan entry.
|
29
|
+
# @return [String]
|
30
|
+
attr_accessor :fees
|
31
|
+
|
32
|
+
# A mapping from model property names to API property names.
|
33
|
+
def self.names
|
34
|
+
@_hash = {} if @_hash.nil?
|
35
|
+
@_hash['billing_period'] = 'billing_period'
|
36
|
+
@_hash['amount_due'] = 'amount_due'
|
37
|
+
@_hash['due_date'] = 'due_date'
|
38
|
+
@_hash['taxes'] = 'taxes'
|
39
|
+
@_hash['fees'] = 'fees'
|
40
|
+
@_hash
|
41
|
+
end
|
42
|
+
|
43
|
+
# An array for optional fields
|
44
|
+
def self.optionals
|
45
|
+
[]
|
46
|
+
end
|
47
|
+
|
48
|
+
# An array for nullable fields
|
49
|
+
def self.nullables
|
50
|
+
[]
|
51
|
+
end
|
52
|
+
|
53
|
+
def initialize(billing_period = nil,
|
54
|
+
amount_due = nil,
|
55
|
+
due_date = nil,
|
56
|
+
taxes = nil,
|
57
|
+
fees = nil)
|
58
|
+
@billing_period = billing_period
|
59
|
+
@amount_due = amount_due
|
60
|
+
@due_date = due_date
|
61
|
+
@taxes = taxes
|
62
|
+
@fees = fees
|
63
|
+
end
|
64
|
+
|
65
|
+
# Creates an instance of the object from a hash.
|
66
|
+
def self.from_hash(hash)
|
67
|
+
return nil unless hash
|
68
|
+
|
69
|
+
# Extract variables from the hash.
|
70
|
+
billing_period =
|
71
|
+
hash.key?('billing_period') ? hash['billing_period'] : nil
|
72
|
+
amount_due = hash.key?('amount_due') ? hash['amount_due'] : nil
|
73
|
+
due_date = hash.key?('due_date') ? hash['due_date'] : nil
|
74
|
+
taxes = hash.key?('taxes') ? hash['taxes'] : nil
|
75
|
+
fees = hash.key?('fees') ? hash['fees'] : nil
|
76
|
+
|
77
|
+
# Create object from extracted values.
|
78
|
+
InstallmentPlan2.new(billing_period,
|
79
|
+
amount_due,
|
80
|
+
due_date,
|
81
|
+
taxes,
|
82
|
+
fees)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
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
|
+
# The risk insured by the policy.
|
8
|
+
class InsuredRisk < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Provided data for this insured risk relationship.
|
13
|
+
# @return [Data11]
|
14
|
+
attr_accessor :data
|
15
|
+
|
16
|
+
# A mapping from model property names to API property names.
|
17
|
+
def self.names
|
18
|
+
@_hash = {} if @_hash.nil?
|
19
|
+
@_hash['data'] = 'data'
|
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(data = nil)
|
34
|
+
@data = data
|
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
|
+
data = Data11.from_hash(hash['data']) if hash['data']
|
43
|
+
|
44
|
+
# Create object from extracted values.
|
45
|
+
InsuredRisk.new(data)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
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
|
+
# Insured risk that will be created at the same time as this resource.
|
8
|
+
class InsuredRisk2 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Provided data for this insured risk relationship with local ID.
|
13
|
+
# @return [Data42]
|
14
|
+
attr_accessor :data
|
15
|
+
|
16
|
+
# A mapping from model property names to API property names.
|
17
|
+
def self.names
|
18
|
+
@_hash = {} if @_hash.nil?
|
19
|
+
@_hash['data'] = 'data'
|
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(data = nil)
|
34
|
+
@data = data
|
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
|
+
data = Data42.from_hash(hash['data']) if hash['data']
|
43
|
+
|
44
|
+
# Create object from extracted values.
|
45
|
+
InsuredRisk2.new(data)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|