trinsic_api 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/IntegrationStep.md +1 -1
- data/docs/ProviderContract.md +3 -1
- data/docs/ProviderHealth.md +15 -0
- data/docs/WellKnownApi.md +71 -0
- data/lib/trinsic_api/api/attachments_api.rb +1 -1
- data/lib/trinsic_api/api/network_api.rb +1 -1
- data/lib/trinsic_api/api/sessions_api.rb +1 -1
- data/lib/trinsic_api/api/well_known_api.rb +75 -0
- data/lib/trinsic_api/api_client.rb +8 -9
- data/lib/trinsic_api/api_error.rb +1 -1
- data/lib/trinsic_api/configuration.rb +1 -1
- data/lib/trinsic_api/models/aadhaar_input.rb +10 -4
- data/lib/trinsic_api/models/address.rb +10 -4
- data/lib/trinsic_api/models/attachment_access_keys.rb +20 -4
- data/lib/trinsic_api/models/bangladesh_national_id_input.rb +10 -4
- data/lib/trinsic_api/models/brazil_cpf_check_input.rb +10 -4
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +10 -4
- data/lib/trinsic_api/models/cancel_session_response.rb +20 -4
- data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +10 -4
- data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +40 -4
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +10 -4
- data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +40 -4
- data/lib/trinsic_api/models/create_widget_session_request.rb +10 -4
- data/lib/trinsic_api/models/create_widget_session_response.rb +40 -4
- data/lib/trinsic_api/models/document_data.rb +10 -4
- data/lib/trinsic_api/models/document_scan_attachments.rb +10 -4
- data/lib/trinsic_api/models/document_type.rb +1 -1
- data/lib/trinsic_api/models/get_attachment_request.rb +10 -4
- data/lib/trinsic_api/models/get_attachment_response.rb +30 -4
- data/lib/trinsic_api/models/get_session_response.rb +20 -4
- data/lib/trinsic_api/models/get_session_result_request.rb +20 -4
- data/lib/trinsic_api/models/get_session_result_response.rb +20 -4
- data/lib/trinsic_api/models/http_validation_problem_details.rb +10 -4
- data/lib/trinsic_api/models/identity_data.rb +10 -4
- data/lib/trinsic_api/models/idin_input.rb +10 -4
- data/lib/trinsic_api/models/indonesia_nik_input.rb +20 -4
- data/lib/trinsic_api/models/integration_capability.rb +1 -1
- data/lib/trinsic_api/models/integration_launch_method.rb +1 -1
- data/lib/trinsic_api/models/integration_step.rb +30 -6
- data/lib/trinsic_api/models/kenya_nid_input.rb +20 -4
- data/lib/trinsic_api/models/language.rb +1 -1
- data/lib/trinsic_api/models/list_provider_contracts_response.rb +20 -4
- data/lib/trinsic_api/models/list_providers_response.rb +20 -4
- data/lib/trinsic_api/models/list_sessions_response.rb +40 -4
- data/lib/trinsic_api/models/mexico_curp_input.rb +10 -4
- data/lib/trinsic_api/models/mobile_id_input.rb +10 -4
- data/lib/trinsic_api/models/nigeria_nin_input.rb +20 -4
- data/lib/trinsic_api/models/order_direction.rb +1 -1
- data/lib/trinsic_api/models/person_data.rb +10 -4
- data/lib/trinsic_api/models/philippine_match_input.rb +10 -4
- data/lib/trinsic_api/models/philippine_qr_input.rb +10 -4
- data/lib/trinsic_api/models/problem_details.rb +10 -4
- data/lib/trinsic_api/models/provider_attachments.rb +10 -4
- data/lib/trinsic_api/models/provider_contract.rb +182 -9
- data/lib/trinsic_api/models/provider_health.rb +40 -0
- data/lib/trinsic_api/models/provider_info.rb +40 -4
- data/lib/trinsic_api/models/provider_information.rb +40 -4
- data/lib/trinsic_api/models/provider_input.rb +10 -4
- data/lib/trinsic_api/models/recommend_request.rb +10 -4
- data/lib/trinsic_api/models/recommend_response.rb +40 -4
- data/lib/trinsic_api/models/recommendation_info.rb +10 -4
- data/lib/trinsic_api/models/refresh_step_content_request.rb +10 -4
- data/lib/trinsic_api/models/refresh_step_content_response.rb +20 -4
- data/lib/trinsic_api/models/result_collection.rb +30 -4
- data/lib/trinsic_api/models/result_collection_method.rb +1 -1
- data/lib/trinsic_api/models/session.rb +60 -4
- data/lib/trinsic_api/models/session_error_code.rb +1 -1
- data/lib/trinsic_api/models/session_ordering.rb +1 -1
- data/lib/trinsic_api/models/sex.rb +1 -1
- data/lib/trinsic_api/models/smart_id_input.rb +10 -4
- data/lib/trinsic_api/models/south_africa_nid_input.rb +20 -4
- data/lib/trinsic_api/models/spid_input.rb +10 -4
- data/lib/trinsic_api/models/step_refresh_info.rb +40 -4
- data/lib/trinsic_api/models/sub_provider_metadata.rb +50 -4
- data/lib/trinsic_api/models/trinsic_test_database_lookup_input.rb +10 -4
- data/lib/trinsic_api/models/trinsic_test_sub_providers_input.rb +10 -4
- data/lib/trinsic_api/version.rb +2 -2
- data/lib/trinsic_api.rb +3 -1
- data/spec/api/attachments_api_spec.rb +1 -1
- data/spec/api/network_api_spec.rb +1 -1
- data/spec/api/sessions_api_spec.rb +1 -1
- data/spec/api/well_known_api_spec.rb +44 -0
- data/spec/models/aadhaar_input_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/attachment_access_keys_spec.rb +1 -1
- data/spec/models/bangladesh_national_id_input_spec.rb +1 -1
- data/spec/models/brazil_cpf_check_input_spec.rb +1 -1
- data/spec/models/brazil_digital_cnh_input_spec.rb +1 -1
- data/spec/models/cancel_session_response_spec.rb +1 -1
- data/spec/models/create_advanced_provider_session_request_spec.rb +1 -1
- data/spec/models/create_advanced_provider_session_response_spec.rb +1 -1
- data/spec/models/create_hosted_provider_session_request_spec.rb +1 -1
- data/spec/models/create_hosted_provider_session_response_spec.rb +1 -1
- data/spec/models/create_widget_session_request_spec.rb +1 -1
- data/spec/models/create_widget_session_response_spec.rb +1 -1
- data/spec/models/document_data_spec.rb +1 -1
- data/spec/models/document_scan_attachments_spec.rb +1 -1
- data/spec/models/document_type_spec.rb +1 -1
- data/spec/models/get_attachment_request_spec.rb +1 -1
- data/spec/models/get_attachment_response_spec.rb +1 -1
- data/spec/models/get_session_response_spec.rb +1 -1
- data/spec/models/get_session_result_request_spec.rb +1 -1
- data/spec/models/get_session_result_response_spec.rb +1 -1
- data/spec/models/http_validation_problem_details_spec.rb +1 -1
- data/spec/models/identity_data_spec.rb +1 -1
- data/spec/models/idin_input_spec.rb +1 -1
- data/spec/models/indonesia_nik_input_spec.rb +1 -1
- data/spec/models/integration_capability_spec.rb +1 -1
- data/spec/models/integration_launch_method_spec.rb +1 -1
- data/spec/models/integration_step_spec.rb +1 -1
- data/spec/models/kenya_nid_input_spec.rb +1 -1
- data/spec/models/language_spec.rb +1 -1
- data/spec/models/list_provider_contracts_response_spec.rb +1 -1
- data/spec/models/list_providers_response_spec.rb +1 -1
- data/spec/models/list_sessions_response_spec.rb +1 -1
- data/spec/models/mexico_curp_input_spec.rb +1 -1
- data/spec/models/mobile_id_input_spec.rb +1 -1
- data/spec/models/nigeria_nin_input_spec.rb +1 -1
- data/spec/models/order_direction_spec.rb +1 -1
- data/spec/models/person_data_spec.rb +1 -1
- data/spec/models/philippine_match_input_spec.rb +1 -1
- data/spec/models/philippine_qr_input_spec.rb +1 -1
- data/spec/models/problem_details_spec.rb +1 -1
- data/spec/models/provider_attachments_spec.rb +1 -1
- data/spec/models/provider_contract_spec.rb +7 -1
- data/spec/models/provider_health_spec.rb +30 -0
- data/spec/models/provider_info_spec.rb +1 -1
- data/spec/models/provider_information_spec.rb +1 -1
- data/spec/models/provider_input_spec.rb +1 -1
- data/spec/models/recommend_request_spec.rb +1 -1
- data/spec/models/recommend_response_spec.rb +1 -1
- data/spec/models/recommendation_info_spec.rb +1 -1
- data/spec/models/refresh_step_content_request_spec.rb +1 -1
- data/spec/models/refresh_step_content_response_spec.rb +1 -1
- data/spec/models/result_collection_method_spec.rb +1 -1
- data/spec/models/result_collection_spec.rb +1 -1
- data/spec/models/session_error_code_spec.rb +1 -1
- data/spec/models/session_ordering_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/sex_spec.rb +1 -1
- data/spec/models/smart_id_input_spec.rb +1 -1
- data/spec/models/south_africa_nid_input_spec.rb +1 -1
- data/spec/models/spid_input_spec.rb +1 -1
- data/spec/models/step_refresh_info_spec.rb +1 -1
- data/spec/models/sub_provider_metadata_spec.rb +1 -1
- data/spec/models/trinsic_test_database_lookup_input_spec.rb +1 -1
- data/spec/models/trinsic_test_sub_providers_input_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/trinsic_api.gemspec +1 -1
- metadata +62 -54
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -73,9 +73,14 @@ module TrinsicApi
|
|
73
73
|
}
|
74
74
|
end
|
75
75
|
|
76
|
+
# Returns attribute mapping this model knows about
|
77
|
+
def self.acceptable_attribute_map
|
78
|
+
attribute_map
|
79
|
+
end
|
80
|
+
|
76
81
|
# Returns all the JSON keys this model knows about
|
77
82
|
def self.acceptable_attributes
|
78
|
-
|
83
|
+
acceptable_attribute_map.values
|
79
84
|
end
|
80
85
|
|
81
86
|
# Attribute type mapping.
|
@@ -118,9 +123,10 @@ module TrinsicApi
|
|
118
123
|
end
|
119
124
|
|
120
125
|
# check to see if the attribute exists and convert string to symbol for hash key
|
126
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
121
127
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
122
|
-
if (!
|
123
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PersonData`. Please check the name to make sure it's valid. List of attributes: " +
|
128
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
129
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PersonData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
124
130
|
end
|
125
131
|
h[k.to_sym] = v
|
126
132
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -41,9 +41,14 @@ module TrinsicApi
|
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
44
|
+
# Returns attribute mapping this model knows about
|
45
|
+
def self.acceptable_attribute_map
|
46
|
+
attribute_map
|
47
|
+
end
|
48
|
+
|
44
49
|
# Returns all the JSON keys this model knows about
|
45
50
|
def self.acceptable_attributes
|
46
|
-
|
51
|
+
acceptable_attribute_map.values
|
47
52
|
end
|
48
53
|
|
49
54
|
# Attribute type mapping.
|
@@ -76,9 +81,10 @@ module TrinsicApi
|
|
76
81
|
end
|
77
82
|
|
78
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
79
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
-
if (!
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PhilippineMatchInput`. Please check the name to make sure it's valid. List of attributes: " +
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PhilippineMatchInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
82
88
|
end
|
83
89
|
h[k.to_sym] = v
|
84
90
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -29,9 +29,14 @@ module TrinsicApi
|
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
|
+
# Returns attribute mapping this model knows about
|
33
|
+
def self.acceptable_attribute_map
|
34
|
+
attribute_map
|
35
|
+
end
|
36
|
+
|
32
37
|
# Returns all the JSON keys this model knows about
|
33
38
|
def self.acceptable_attributes
|
34
|
-
|
39
|
+
acceptable_attribute_map.values
|
35
40
|
end
|
36
41
|
|
37
42
|
# Attribute type mapping.
|
@@ -58,9 +63,10 @@ module TrinsicApi
|
|
58
63
|
end
|
59
64
|
|
60
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
61
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
-
if (!
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PhilippineQRInput`. Please check the name to make sure it's valid. List of attributes: " +
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PhilippineQRInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
64
70
|
end
|
65
71
|
h[k.to_sym] = v
|
66
72
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,9 +36,14 @@ module TrinsicApi
|
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
|
+
# Returns attribute mapping this model knows about
|
40
|
+
def self.acceptable_attribute_map
|
41
|
+
attribute_map
|
42
|
+
end
|
43
|
+
|
39
44
|
# Returns all the JSON keys this model knows about
|
40
45
|
def self.acceptable_attributes
|
41
|
-
|
46
|
+
acceptable_attribute_map.values
|
42
47
|
end
|
43
48
|
|
44
49
|
# Attribute type mapping.
|
@@ -71,9 +76,10 @@ module TrinsicApi
|
|
71
76
|
end
|
72
77
|
|
73
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
74
80
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
|
-
if (!
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProblemDetails`. Please check the name to make sure it's valid. List of attributes: " +
|
81
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProblemDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
77
83
|
end
|
78
84
|
h[k.to_sym] = v
|
79
85
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -24,9 +24,14 @@ module TrinsicApi
|
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
27
|
+
# Returns attribute mapping this model knows about
|
28
|
+
def self.acceptable_attribute_map
|
29
|
+
attribute_map
|
30
|
+
end
|
31
|
+
|
27
32
|
# Returns all the JSON keys this model knows about
|
28
33
|
def self.acceptable_attributes
|
29
|
-
|
34
|
+
acceptable_attribute_map.values
|
30
35
|
end
|
31
36
|
|
32
37
|
# Attribute type mapping.
|
@@ -51,9 +56,10 @@ module TrinsicApi
|
|
51
56
|
end
|
52
57
|
|
53
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
54
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
-
if (!
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderAttachments`. Please check the name to make sure it's valid. List of attributes: " +
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderAttachments`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
57
63
|
end
|
58
64
|
h[k.to_sym] = v
|
59
65
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -60,6 +60,9 @@ module TrinsicApi
|
|
60
60
|
# Metadata about the sub-providers which are available for this Provider. For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
|
61
61
|
attr_accessor :sub_providers
|
62
62
|
|
63
|
+
# The current status of the provider and if it is available to launch. If the status is disabled, there is an issue that prevents a provider being able to launch a session.
|
64
|
+
attr_accessor :status
|
65
|
+
|
63
66
|
class EnumAttributeValidator
|
64
67
|
attr_reader :datatype
|
65
68
|
attr_reader :allowable_values
|
@@ -99,13 +102,19 @@ module TrinsicApi
|
|
99
102
|
:'requires_input' => :'requiresInput',
|
100
103
|
:'has_trinsic_interface' => :'hasTrinsicInterface',
|
101
104
|
:'supports_advanced_provider_sessions' => :'supportsAdvancedProviderSessions',
|
102
|
-
:'sub_providers' => :'subProviders'
|
105
|
+
:'sub_providers' => :'subProviders',
|
106
|
+
:'status' => :'status'
|
103
107
|
}
|
104
108
|
end
|
105
109
|
|
110
|
+
# Returns attribute mapping this model knows about
|
111
|
+
def self.acceptable_attribute_map
|
112
|
+
attribute_map
|
113
|
+
end
|
114
|
+
|
106
115
|
# Returns all the JSON keys this model knows about
|
107
116
|
def self.acceptable_attributes
|
108
|
-
|
117
|
+
acceptable_attribute_map.values
|
109
118
|
end
|
110
119
|
|
111
120
|
# Attribute type mapping.
|
@@ -125,14 +134,15 @@ module TrinsicApi
|
|
125
134
|
:'requires_input' => :'Boolean',
|
126
135
|
:'has_trinsic_interface' => :'Boolean',
|
127
136
|
:'supports_advanced_provider_sessions' => :'Boolean',
|
128
|
-
:'sub_providers' => :'Array<SubProviderMetadata>'
|
137
|
+
:'sub_providers' => :'Array<SubProviderMetadata>',
|
138
|
+
:'status' => :'ProviderHealth'
|
129
139
|
}
|
130
140
|
end
|
131
141
|
|
132
142
|
# List of attributes with nullable: true
|
133
143
|
def self.openapi_nullable
|
134
144
|
Set.new([
|
135
|
-
:'sub_providers'
|
145
|
+
:'sub_providers',
|
136
146
|
])
|
137
147
|
end
|
138
148
|
|
@@ -144,9 +154,10 @@ module TrinsicApi
|
|
144
154
|
end
|
145
155
|
|
146
156
|
# check to see if the attribute exists and convert string to symbol for hash key
|
157
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
147
158
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
148
|
-
if (!
|
149
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderContract`. Please check the name to make sure it's valid. List of attributes: " +
|
159
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
160
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderContract`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
150
161
|
end
|
151
162
|
h[k.to_sym] = v
|
152
163
|
}
|
@@ -244,6 +255,12 @@ module TrinsicApi
|
|
244
255
|
self.sub_providers = value
|
245
256
|
end
|
246
257
|
end
|
258
|
+
|
259
|
+
if attributes.key?(:'status')
|
260
|
+
self.status = attributes[:'status']
|
261
|
+
else
|
262
|
+
self.status = nil
|
263
|
+
end
|
247
264
|
end
|
248
265
|
|
249
266
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -307,6 +324,10 @@ module TrinsicApi
|
|
307
324
|
invalid_properties.push('invalid value for "supports_advanced_provider_sessions", supports_advanced_provider_sessions cannot be nil.')
|
308
325
|
end
|
309
326
|
|
327
|
+
if @status.nil?
|
328
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
329
|
+
end
|
330
|
+
|
310
331
|
invalid_properties
|
311
332
|
end
|
312
333
|
|
@@ -328,9 +349,160 @@ module TrinsicApi
|
|
328
349
|
return false if @requires_input.nil?
|
329
350
|
return false if @has_trinsic_interface.nil?
|
330
351
|
return false if @supports_advanced_provider_sessions.nil?
|
352
|
+
return false if @status.nil?
|
331
353
|
true
|
332
354
|
end
|
333
355
|
|
356
|
+
# Custom attribute writer method with validation
|
357
|
+
# @param [Object] id Value to be assigned
|
358
|
+
def id=(id)
|
359
|
+
if id.nil?
|
360
|
+
fail ArgumentError, 'id cannot be nil'
|
361
|
+
end
|
362
|
+
|
363
|
+
@id = id
|
364
|
+
end
|
365
|
+
|
366
|
+
# Custom attribute writer method with validation
|
367
|
+
# @param [Object] name Value to be assigned
|
368
|
+
def name=(name)
|
369
|
+
if name.nil?
|
370
|
+
fail ArgumentError, 'name cannot be nil'
|
371
|
+
end
|
372
|
+
|
373
|
+
@name = name
|
374
|
+
end
|
375
|
+
|
376
|
+
# Custom attribute writer method with validation
|
377
|
+
# @param [Object] description Value to be assigned
|
378
|
+
def description=(description)
|
379
|
+
if description.nil?
|
380
|
+
fail ArgumentError, 'description cannot be nil'
|
381
|
+
end
|
382
|
+
|
383
|
+
@description = description
|
384
|
+
end
|
385
|
+
|
386
|
+
# Custom attribute writer method with validation
|
387
|
+
# @param [Object] logo_url Value to be assigned
|
388
|
+
def logo_url=(logo_url)
|
389
|
+
if logo_url.nil?
|
390
|
+
fail ArgumentError, 'logo_url cannot be nil'
|
391
|
+
end
|
392
|
+
|
393
|
+
@logo_url = logo_url
|
394
|
+
end
|
395
|
+
|
396
|
+
# Custom attribute writer method with validation
|
397
|
+
# @param [Object] available Value to be assigned
|
398
|
+
def available=(available)
|
399
|
+
if available.nil?
|
400
|
+
fail ArgumentError, 'available cannot be nil'
|
401
|
+
end
|
402
|
+
|
403
|
+
@available = available
|
404
|
+
end
|
405
|
+
|
406
|
+
# Custom attribute writer method with validation
|
407
|
+
# @param [Object] geography Value to be assigned
|
408
|
+
def geography=(geography)
|
409
|
+
if geography.nil?
|
410
|
+
fail ArgumentError, 'geography cannot be nil'
|
411
|
+
end
|
412
|
+
|
413
|
+
@geography = geography
|
414
|
+
end
|
415
|
+
|
416
|
+
# Custom attribute writer method with validation
|
417
|
+
# @param [Object] regions Value to be assigned
|
418
|
+
def regions=(regions)
|
419
|
+
if regions.nil?
|
420
|
+
fail ArgumentError, 'regions cannot be nil'
|
421
|
+
end
|
422
|
+
|
423
|
+
@regions = regions
|
424
|
+
end
|
425
|
+
|
426
|
+
# Custom attribute writer method with validation
|
427
|
+
# @param [Object] launch_method Value to be assigned
|
428
|
+
def launch_method=(launch_method)
|
429
|
+
if launch_method.nil?
|
430
|
+
fail ArgumentError, 'launch_method cannot be nil'
|
431
|
+
end
|
432
|
+
|
433
|
+
@launch_method = launch_method
|
434
|
+
end
|
435
|
+
|
436
|
+
# Custom attribute writer method with validation
|
437
|
+
# @param [Object] collection_method Value to be assigned
|
438
|
+
def collection_method=(collection_method)
|
439
|
+
if collection_method.nil?
|
440
|
+
fail ArgumentError, 'collection_method cannot be nil'
|
441
|
+
end
|
442
|
+
|
443
|
+
@collection_method = collection_method
|
444
|
+
end
|
445
|
+
|
446
|
+
# Custom attribute writer method with validation
|
447
|
+
# @param [Object] results_may_be_delayed_after_redirect Value to be assigned
|
448
|
+
def results_may_be_delayed_after_redirect=(results_may_be_delayed_after_redirect)
|
449
|
+
if results_may_be_delayed_after_redirect.nil?
|
450
|
+
fail ArgumentError, 'results_may_be_delayed_after_redirect cannot be nil'
|
451
|
+
end
|
452
|
+
|
453
|
+
@results_may_be_delayed_after_redirect = results_may_be_delayed_after_redirect
|
454
|
+
end
|
455
|
+
|
456
|
+
# Custom attribute writer method with validation
|
457
|
+
# @param [Object] has_refreshable_content Value to be assigned
|
458
|
+
def has_refreshable_content=(has_refreshable_content)
|
459
|
+
if has_refreshable_content.nil?
|
460
|
+
fail ArgumentError, 'has_refreshable_content cannot be nil'
|
461
|
+
end
|
462
|
+
|
463
|
+
@has_refreshable_content = has_refreshable_content
|
464
|
+
end
|
465
|
+
|
466
|
+
# Custom attribute writer method with validation
|
467
|
+
# @param [Object] requires_input Value to be assigned
|
468
|
+
def requires_input=(requires_input)
|
469
|
+
if requires_input.nil?
|
470
|
+
fail ArgumentError, 'requires_input cannot be nil'
|
471
|
+
end
|
472
|
+
|
473
|
+
@requires_input = requires_input
|
474
|
+
end
|
475
|
+
|
476
|
+
# Custom attribute writer method with validation
|
477
|
+
# @param [Object] has_trinsic_interface Value to be assigned
|
478
|
+
def has_trinsic_interface=(has_trinsic_interface)
|
479
|
+
if has_trinsic_interface.nil?
|
480
|
+
fail ArgumentError, 'has_trinsic_interface cannot be nil'
|
481
|
+
end
|
482
|
+
|
483
|
+
@has_trinsic_interface = has_trinsic_interface
|
484
|
+
end
|
485
|
+
|
486
|
+
# Custom attribute writer method with validation
|
487
|
+
# @param [Object] supports_advanced_provider_sessions Value to be assigned
|
488
|
+
def supports_advanced_provider_sessions=(supports_advanced_provider_sessions)
|
489
|
+
if supports_advanced_provider_sessions.nil?
|
490
|
+
fail ArgumentError, 'supports_advanced_provider_sessions cannot be nil'
|
491
|
+
end
|
492
|
+
|
493
|
+
@supports_advanced_provider_sessions = supports_advanced_provider_sessions
|
494
|
+
end
|
495
|
+
|
496
|
+
# Custom attribute writer method with validation
|
497
|
+
# @param [Object] status Value to be assigned
|
498
|
+
def status=(status)
|
499
|
+
if status.nil?
|
500
|
+
fail ArgumentError, 'status cannot be nil'
|
501
|
+
end
|
502
|
+
|
503
|
+
@status = status
|
504
|
+
end
|
505
|
+
|
334
506
|
# Checks equality by comparing each attribute.
|
335
507
|
# @param [Object] Object to be compared
|
336
508
|
def ==(o)
|
@@ -350,7 +522,8 @@ module TrinsicApi
|
|
350
522
|
requires_input == o.requires_input &&
|
351
523
|
has_trinsic_interface == o.has_trinsic_interface &&
|
352
524
|
supports_advanced_provider_sessions == o.supports_advanced_provider_sessions &&
|
353
|
-
sub_providers == o.sub_providers
|
525
|
+
sub_providers == o.sub_providers &&
|
526
|
+
status == o.status
|
354
527
|
end
|
355
528
|
|
356
529
|
# @see the `==` method
|
@@ -362,7 +535,7 @@ module TrinsicApi
|
|
362
535
|
# Calculates hash code according to all attributes.
|
363
536
|
# @return [Integer] Hash code
|
364
537
|
def hash
|
365
|
-
[id, name, description, logo_url, available, geography, regions, launch_method, collection_method, results_may_be_delayed_after_redirect, has_refreshable_content, requires_input, has_trinsic_interface, supports_advanced_provider_sessions, sub_providers].hash
|
538
|
+
[id, name, description, logo_url, available, geography, regions, launch_method, collection_method, results_may_be_delayed_after_redirect, has_refreshable_content, requires_input, has_trinsic_interface, supports_advanced_provider_sessions, sub_providers, status].hash
|
366
539
|
end
|
367
540
|
|
368
541
|
# Builds the object from hash
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
#Trinsic API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TrinsicApi
|
17
|
+
class ProviderHealth
|
18
|
+
ONLINE = "Online".freeze
|
19
|
+
OFFLINE = "Offline".freeze
|
20
|
+
|
21
|
+
def self.all_vars
|
22
|
+
@all_vars ||= [ONLINE, OFFLINE].freeze
|
23
|
+
end
|
24
|
+
|
25
|
+
# Builds the enum from string
|
26
|
+
# @param [String] The enum value in the form of the string
|
27
|
+
# @return [String] The enum value
|
28
|
+
def self.build_from_hash(value)
|
29
|
+
new.build_from_hash(value)
|
30
|
+
end
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
return value if ProviderHealth.all_vars.include?(value)
|
37
|
+
raise "Invalid ENUM value #{value} for class #ProviderHealth"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,9 +34,14 @@ module TrinsicApi
|
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
37
|
+
# Returns attribute mapping this model knows about
|
38
|
+
def self.acceptable_attribute_map
|
39
|
+
attribute_map
|
40
|
+
end
|
41
|
+
|
37
42
|
# Returns all the JSON keys this model knows about
|
38
43
|
def self.acceptable_attributes
|
39
|
-
|
44
|
+
acceptable_attribute_map.values
|
40
45
|
end
|
41
46
|
|
42
47
|
# Attribute type mapping.
|
@@ -62,9 +67,10 @@ module TrinsicApi
|
|
62
67
|
end
|
63
68
|
|
64
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
65
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
-
if (!
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInfo`. Please check the name to make sure it's valid. List of attributes: " +
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
68
74
|
end
|
69
75
|
h[k.to_sym] = v
|
70
76
|
}
|
@@ -118,6 +124,36 @@ module TrinsicApi
|
|
118
124
|
true
|
119
125
|
end
|
120
126
|
|
127
|
+
# Custom attribute writer method with validation
|
128
|
+
# @param [Object] id Value to be assigned
|
129
|
+
def id=(id)
|
130
|
+
if id.nil?
|
131
|
+
fail ArgumentError, 'id cannot be nil'
|
132
|
+
end
|
133
|
+
|
134
|
+
@id = id
|
135
|
+
end
|
136
|
+
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] name Value to be assigned
|
139
|
+
def name=(name)
|
140
|
+
if name.nil?
|
141
|
+
fail ArgumentError, 'name cannot be nil'
|
142
|
+
end
|
143
|
+
|
144
|
+
@name = name
|
145
|
+
end
|
146
|
+
|
147
|
+
# Custom attribute writer method with validation
|
148
|
+
# @param [Object] logo_url Value to be assigned
|
149
|
+
def logo_url=(logo_url)
|
150
|
+
if logo_url.nil?
|
151
|
+
fail ArgumentError, 'logo_url cannot be nil'
|
152
|
+
end
|
153
|
+
|
154
|
+
@logo_url = logo_url
|
155
|
+
end
|
156
|
+
|
121
157
|
# Checks equality by comparing each attribute.
|
122
158
|
# @param [Object] Object to be compared
|
123
159
|
def ==(o)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,9 +30,14 @@ module TrinsicApi
|
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
|
+
# Returns attribute mapping this model knows about
|
34
|
+
def self.acceptable_attribute_map
|
35
|
+
attribute_map
|
36
|
+
end
|
37
|
+
|
33
38
|
# Returns all the JSON keys this model knows about
|
34
39
|
def self.acceptable_attributes
|
35
|
-
|
40
|
+
acceptable_attribute_map.values
|
36
41
|
end
|
37
42
|
|
38
43
|
# Attribute type mapping.
|
@@ -58,9 +63,10 @@ module TrinsicApi
|
|
58
63
|
end
|
59
64
|
|
60
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
61
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
-
if (!
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInformation`. Please check the name to make sure it's valid. List of attributes: " +
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
64
70
|
end
|
65
71
|
h[k.to_sym] = v
|
66
72
|
}
|
@@ -114,6 +120,36 @@ module TrinsicApi
|
|
114
120
|
true
|
115
121
|
end
|
116
122
|
|
123
|
+
# Custom attribute writer method with validation
|
124
|
+
# @param [Object] provider_id Value to be assigned
|
125
|
+
def provider_id=(provider_id)
|
126
|
+
if provider_id.nil?
|
127
|
+
fail ArgumentError, 'provider_id cannot be nil'
|
128
|
+
end
|
129
|
+
|
130
|
+
@provider_id = provider_id
|
131
|
+
end
|
132
|
+
|
133
|
+
# Custom attribute writer method with validation
|
134
|
+
# @param [Object] provider_display_name Value to be assigned
|
135
|
+
def provider_display_name=(provider_display_name)
|
136
|
+
if provider_display_name.nil?
|
137
|
+
fail ArgumentError, 'provider_display_name cannot be nil'
|
138
|
+
end
|
139
|
+
|
140
|
+
@provider_display_name = provider_display_name
|
141
|
+
end
|
142
|
+
|
143
|
+
# Custom attribute writer method with validation
|
144
|
+
# @param [Object] provider_logo Value to be assigned
|
145
|
+
def provider_logo=(provider_logo)
|
146
|
+
if provider_logo.nil?
|
147
|
+
fail ArgumentError, 'provider_logo cannot be nil'
|
148
|
+
end
|
149
|
+
|
150
|
+
@provider_logo = provider_logo
|
151
|
+
end
|
152
|
+
|
117
153
|
# Checks equality by comparing each attribute.
|
118
154
|
# @param [Object] Object to be compared
|
119
155
|
def ==(o)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -89,9 +89,14 @@ module TrinsicApi
|
|
89
89
|
}
|
90
90
|
end
|
91
91
|
|
92
|
+
# Returns attribute mapping this model knows about
|
93
|
+
def self.acceptable_attribute_map
|
94
|
+
attribute_map
|
95
|
+
end
|
96
|
+
|
92
97
|
# Returns all the JSON keys this model knows about
|
93
98
|
def self.acceptable_attributes
|
94
|
-
|
99
|
+
acceptable_attribute_map.values
|
95
100
|
end
|
96
101
|
|
97
102
|
# Attribute type mapping.
|
@@ -148,9 +153,10 @@ module TrinsicApi
|
|
148
153
|
end
|
149
154
|
|
150
155
|
# check to see if the attribute exists and convert string to symbol for hash key
|
156
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
151
157
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
152
|
-
if (!
|
153
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInput`. Please check the name to make sure it's valid. List of attributes: " +
|
158
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
159
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
154
160
|
end
|
155
161
|
h[k.to_sym] = v
|
156
162
|
}
|