trinsic_api 2.2.0 → 2.3.0.pre.alpha2
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/AddRedirectUriResponse.md +18 -0
- data/docs/AttachmentAccessKeys.md +2 -0
- data/docs/ContractField.md +2 -0
- data/docs/ContractIdentifierField.md +22 -0
- data/docs/CreateHostedProviderSessionResponse.md +1 -1
- data/docs/CreateVerificationProfileResponse.md +18 -0
- data/docs/CreateWidgetSessionResponse.md +1 -1
- data/docs/EnvironmentRedirectUrisAddRequest.md +18 -0
- data/docs/EnvironmentRedirectUrisApi.md +222 -0
- data/docs/FaydaProviderOutput.md +18 -0
- data/docs/Identifier.md +22 -0
- data/docs/IdentityData.md +5 -1
- data/docs/IntegrationStep.md +1 -1
- data/docs/KenyaNidBiometric2Input.md +22 -0
- data/docs/KenyaNidInput.md +1 -1
- data/docs/KenyaNidLookup2Input.md +18 -0
- data/docs/KenyaNidMatch2Input.md +28 -0
- data/docs/ListEnvironmentRedirectUrisResponse.md +20 -0
- data/docs/ListVerificationProfilesResponse.md +20 -0
- data/docs/MexicoCurpProviderOutput.md +18 -0
- data/docs/NigeriaNinInput.md +1 -1
- data/docs/PhilippinesDigitalNidProviderOutput.md +18 -0
- data/docs/PhilippinesPhysicalNidProviderOutput.md +18 -0
- data/docs/ProviderContract.md +2 -0
- data/docs/ProviderInput.md +8 -0
- data/docs/ProviderOutput.md +26 -0
- data/docs/RedirectUriResponse.md +20 -0
- data/docs/SexV1.md +15 -0
- data/docs/SouthAfricaNidInput.md +1 -1
- data/docs/SouthAfricaNidLookup2Input.md +18 -0
- data/docs/SpidBillingInformation.md +22 -0
- data/docs/SpidInput.md +3 -1
- data/docs/SpidProviderOutput.md +44 -0
- data/docs/VerificationProfileResponse.md +28 -0
- data/docs/VerificationProfilesApi.md +231 -0
- data/lib/trinsic_api/api/environment_redirect_uris_api.rb +228 -0
- data/lib/trinsic_api/api/verification_profiles_api.rb +273 -0
- data/lib/trinsic_api/models/add_redirect_uri_response.rb +237 -0
- data/lib/trinsic_api/models/attachment_access_keys.rb +11 -1
- data/lib/trinsic_api/models/contract_field.rb +28 -1
- data/lib/trinsic_api/models/contract_identifier_field.rb +315 -0
- data/lib/trinsic_api/models/create_verification_profile_response.rb +238 -0
- data/lib/trinsic_api/models/environment_redirect_uris_add_request.rb +237 -0
- data/lib/trinsic_api/models/fayda_provider_output.rb +222 -0
- data/lib/trinsic_api/models/identifier.rb +289 -0
- data/lib/trinsic_api/models/identity_data.rb +43 -5
- data/lib/trinsic_api/models/kenya_nid_biometric2_input.rb +246 -0
- data/lib/trinsic_api/models/kenya_nid_input.rb +1 -1
- data/lib/trinsic_api/models/kenya_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/kenya_nid_match2_input.rb +299 -0
- data/lib/trinsic_api/models/list_environment_redirect_uris_response.rb +268 -0
- data/lib/trinsic_api/models/list_verification_profiles_response.rb +266 -0
- data/lib/trinsic_api/models/mexico_curp_provider_output.rb +222 -0
- data/lib/trinsic_api/models/nigeria_nin_input.rb +1 -1
- data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +238 -0
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +238 -0
- data/lib/trinsic_api/models/provider_contract.rb +14 -1
- data/lib/trinsic_api/models/provider_input.rb +45 -1
- data/lib/trinsic_api/models/provider_output.rb +261 -0
- data/lib/trinsic_api/models/redirect_uri_response.rb +263 -0
- data/lib/trinsic_api/models/sex_v1.rb +42 -0
- data/lib/trinsic_api/models/south_africa_nid_input.rb +1 -1
- data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/spid_billing_information.rb +293 -0
- data/lib/trinsic_api/models/spid_input.rb +16 -5
- data/lib/trinsic_api/models/spid_provider_output.rb +397 -0
- data/lib/trinsic_api/models/verification_profile_response.rb +375 -0
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +23 -0
- data/spec/api/environment_redirect_uris_api_spec.rb +72 -0
- data/spec/api/verification_profiles_api_spec.rb +76 -0
- data/spec/models/add_redirect_uri_response_spec.rb +36 -0
- data/spec/models/attachment_access_keys_spec.rb +6 -0
- data/spec/models/contract_field_spec.rb +6 -0
- data/spec/models/contract_identifier_field_spec.rb +48 -0
- data/spec/models/create_verification_profile_response_spec.rb +36 -0
- data/spec/models/environment_redirect_uris_add_request_spec.rb +36 -0
- data/spec/models/fayda_provider_output_spec.rb +36 -0
- data/spec/models/identifier_spec.rb +48 -0
- data/spec/models/identity_data_spec.rb +12 -0
- data/spec/models/kenya_nid_biometric2_input_spec.rb +48 -0
- data/spec/models/kenya_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/kenya_nid_match2_input_spec.rb +66 -0
- data/spec/models/list_environment_redirect_uris_response_spec.rb +42 -0
- data/spec/models/list_verification_profiles_response_spec.rb +42 -0
- data/spec/models/mexico_curp_provider_output_spec.rb +36 -0
- data/spec/models/philippines_digital_nid_provider_output_spec.rb +36 -0
- data/spec/models/philippines_physical_nid_provider_output_spec.rb +36 -0
- data/spec/models/provider_contract_spec.rb +6 -0
- data/spec/models/provider_input_spec.rb +24 -0
- data/spec/models/provider_output_spec.rb +60 -0
- data/spec/models/redirect_uri_response_spec.rb +42 -0
- data/spec/models/sex_v1_spec.rb +30 -0
- data/spec/models/south_africa_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/spid_billing_information_spec.rb +48 -0
- data/spec/models/spid_input_spec.rb +6 -0
- data/spec/models/spid_provider_output_spec.rb +114 -0
- data/spec/models/verification_profile_response_spec.rb +66 -0
- metadata +94 -2
|
@@ -0,0 +1,228 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module TrinsicApi
|
|
16
|
+
class EnvironmentRedirectUrisApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Add Redirect URI
|
|
23
|
+
# Add a new redirect uri to the environment.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [EnvironmentRedirectUrisAddRequest] :environment_redirect_uris_add_request Request for uri to add to the environment. Must be absolute, not relative. Wildcard \"*\" accepted.
|
|
26
|
+
# @return [AddRedirectUriResponse]
|
|
27
|
+
def add(opts = {})
|
|
28
|
+
data, _status_code, _headers = add_with_http_info(opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Add Redirect URI
|
|
33
|
+
# Add a new redirect uri to the environment.
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [EnvironmentRedirectUrisAddRequest] :environment_redirect_uris_add_request Request for uri to add to the environment. Must be absolute, not relative. Wildcard \"*\" accepted.
|
|
36
|
+
# @return [Array<(AddRedirectUriResponse, Integer, Hash)>] AddRedirectUriResponse data, response status code and response headers
|
|
37
|
+
def add_with_http_info(opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: EnvironmentRedirectUrisApi.add ...'
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/api/valpha/environments/redirect-uris'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
|
53
|
+
if !content_type.nil?
|
|
54
|
+
header_params['Content-Type'] = content_type
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'environment_redirect_uris_add_request'])
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type] || 'AddRedirectUriResponse'
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"EnvironmentRedirectUrisApi.add",
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: EnvironmentRedirectUrisApi#add\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Delete Redirect URI
|
|
87
|
+
# Delete a redirect uri from the environment.
|
|
88
|
+
# @param id [String] The id of the redirect uri to delete.
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [nil]
|
|
91
|
+
def delete(id, opts = {})
|
|
92
|
+
delete_with_http_info(id, opts)
|
|
93
|
+
nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete Redirect URI
|
|
97
|
+
# Delete a redirect uri from the environment.
|
|
98
|
+
# @param id [String] The id of the redirect uri to delete.
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
101
|
+
def delete_with_http_info(id, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: EnvironmentRedirectUrisApi.delete ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'id' is set
|
|
106
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling EnvironmentRedirectUrisApi.delete"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '/api/valpha/environments/redirect-uris/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = opts[:header_params] || {}
|
|
117
|
+
# HTTP header 'Accept' (if needed)
|
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/problem+json']) unless header_params['Accept']
|
|
119
|
+
|
|
120
|
+
# form parameters
|
|
121
|
+
form_params = opts[:form_params] || {}
|
|
122
|
+
|
|
123
|
+
# http body (model)
|
|
124
|
+
post_body = opts[:debug_body]
|
|
125
|
+
|
|
126
|
+
# return_type
|
|
127
|
+
return_type = opts[:debug_return_type]
|
|
128
|
+
|
|
129
|
+
# auth_names
|
|
130
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
131
|
+
|
|
132
|
+
new_options = opts.merge(
|
|
133
|
+
:operation => :"EnvironmentRedirectUrisApi.delete",
|
|
134
|
+
:header_params => header_params,
|
|
135
|
+
:query_params => query_params,
|
|
136
|
+
:form_params => form_params,
|
|
137
|
+
:body => post_body,
|
|
138
|
+
:auth_names => auth_names,
|
|
139
|
+
:return_type => return_type
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
143
|
+
if @api_client.config.debugging
|
|
144
|
+
@api_client.config.logger.debug "API called: EnvironmentRedirectUrisApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
145
|
+
end
|
|
146
|
+
return data, status_code, headers
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# List Redirect URIs
|
|
150
|
+
# List redirect URIs within the environment.
|
|
151
|
+
# @param [Hash] opts the optional parameters
|
|
152
|
+
# @option opts [Integer] :page Number of pages of uris to return. (default to 1)
|
|
153
|
+
# @option opts [Integer] :page_size Size of the list to be returned. Accepted range from 1 to 100 (default to 20)
|
|
154
|
+
# @return [ListEnvironmentRedirectUrisResponse]
|
|
155
|
+
def list(opts = {})
|
|
156
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
157
|
+
data
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# List Redirect URIs
|
|
161
|
+
# List redirect URIs within the environment.
|
|
162
|
+
# @param [Hash] opts the optional parameters
|
|
163
|
+
# @option opts [Integer] :page Number of pages of uris to return. (default to 1)
|
|
164
|
+
# @option opts [Integer] :page_size Size of the list to be returned. Accepted range from 1 to 100 (default to 20)
|
|
165
|
+
# @return [Array<(ListEnvironmentRedirectUrisResponse, Integer, Hash)>] ListEnvironmentRedirectUrisResponse data, response status code and response headers
|
|
166
|
+
def list_with_http_info(opts = {})
|
|
167
|
+
if @api_client.config.debugging
|
|
168
|
+
@api_client.config.logger.debug 'Calling API: EnvironmentRedirectUrisApi.list ...'
|
|
169
|
+
end
|
|
170
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 2147483647
|
|
171
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling EnvironmentRedirectUrisApi.list, must be smaller than or equal to 2147483647.'
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
175
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling EnvironmentRedirectUrisApi.list, must be greater than or equal to 1.'
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
|
|
179
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling EnvironmentRedirectUrisApi.list, must be smaller than or equal to 100.'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
183
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling EnvironmentRedirectUrisApi.list, must be greater than or equal to 1.'
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# resource path
|
|
187
|
+
local_var_path = '/api/valpha/environments/redirect-uris'
|
|
188
|
+
|
|
189
|
+
# query parameters
|
|
190
|
+
query_params = opts[:query_params] || {}
|
|
191
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
192
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
193
|
+
|
|
194
|
+
# header parameters
|
|
195
|
+
header_params = opts[:header_params] || {}
|
|
196
|
+
# HTTP header 'Accept' (if needed)
|
|
197
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
|
198
|
+
|
|
199
|
+
# form parameters
|
|
200
|
+
form_params = opts[:form_params] || {}
|
|
201
|
+
|
|
202
|
+
# http body (model)
|
|
203
|
+
post_body = opts[:debug_body]
|
|
204
|
+
|
|
205
|
+
# return_type
|
|
206
|
+
return_type = opts[:debug_return_type] || 'ListEnvironmentRedirectUrisResponse'
|
|
207
|
+
|
|
208
|
+
# auth_names
|
|
209
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
210
|
+
|
|
211
|
+
new_options = opts.merge(
|
|
212
|
+
:operation => :"EnvironmentRedirectUrisApi.list",
|
|
213
|
+
:header_params => header_params,
|
|
214
|
+
:query_params => query_params,
|
|
215
|
+
:form_params => form_params,
|
|
216
|
+
:body => post_body,
|
|
217
|
+
:auth_names => auth_names,
|
|
218
|
+
:return_type => return_type
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
222
|
+
if @api_client.config.debugging
|
|
223
|
+
@api_client.config.logger.debug "API called: EnvironmentRedirectUrisApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
224
|
+
end
|
|
225
|
+
return data, status_code, headers
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
end
|
|
@@ -0,0 +1,273 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module TrinsicApi
|
|
16
|
+
class VerificationProfilesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create Verification Profile
|
|
23
|
+
# Creates a new verification profile within your organization.
|
|
24
|
+
# @param _alias [String] An alias of the verification profile shown to developers and administrators.
|
|
25
|
+
# @param brand_name [String] The brand name of the verification profile shown to end-users.
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [String] :primary_color The primary color of the verification profile. Must be a 6-character hex string prefixed with a '#' character. Example: #000000
|
|
28
|
+
# @option opts [Array<String>] :providers The list of providers you'd like to select for this profile. We will not currently enable any providers.
|
|
29
|
+
# @option opts [File] :logo The logo of the verification profile.
|
|
30
|
+
# @return [CreateVerificationProfileResponse]
|
|
31
|
+
def create_verification_profile(_alias, brand_name, opts = {})
|
|
32
|
+
data, _status_code, _headers = create_verification_profile_with_http_info(_alias, brand_name, opts)
|
|
33
|
+
data
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Create Verification Profile
|
|
37
|
+
# Creates a new verification profile within your organization.
|
|
38
|
+
# @param _alias [String] An alias of the verification profile shown to developers and administrators.
|
|
39
|
+
# @param brand_name [String] The brand name of the verification profile shown to end-users.
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [String] :primary_color The primary color of the verification profile. Must be a 6-character hex string prefixed with a '#' character. Example: #000000
|
|
42
|
+
# @option opts [Array<String>] :providers The list of providers you'd like to select for this profile. We will not currently enable any providers.
|
|
43
|
+
# @option opts [File] :logo The logo of the verification profile.
|
|
44
|
+
# @return [Array<(CreateVerificationProfileResponse, Integer, Hash)>] CreateVerificationProfileResponse data, response status code and response headers
|
|
45
|
+
def create_verification_profile_with_http_info(_alias, brand_name, opts = {})
|
|
46
|
+
if @api_client.config.debugging
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: VerificationProfilesApi.create_verification_profile ...'
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter '_alias' is set
|
|
50
|
+
if @api_client.config.client_side_validation && _alias.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter '_alias' when calling VerificationProfilesApi.create_verification_profile"
|
|
52
|
+
end
|
|
53
|
+
if @api_client.config.client_side_validation && _alias.to_s.length > 255
|
|
54
|
+
fail ArgumentError, 'invalid value for "_alias" when calling VerificationProfilesApi.create_verification_profile, the character length must be smaller than or equal to 255.'
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
if @api_client.config.client_side_validation && _alias.to_s.length < 1
|
|
58
|
+
fail ArgumentError, 'invalid value for "_alias" when calling VerificationProfilesApi.create_verification_profile, the character length must be great than or equal to 1.'
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# verify the required parameter 'brand_name' is set
|
|
62
|
+
if @api_client.config.client_side_validation && brand_name.nil?
|
|
63
|
+
fail ArgumentError, "Missing the required parameter 'brand_name' when calling VerificationProfilesApi.create_verification_profile"
|
|
64
|
+
end
|
|
65
|
+
if @api_client.config.client_side_validation && brand_name.to_s.length > 2500
|
|
66
|
+
fail ArgumentError, 'invalid value for "brand_name" when calling VerificationProfilesApi.create_verification_profile, the character length must be smaller than or equal to 2500.'
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
if @api_client.config.client_side_validation && brand_name.to_s.length < 1
|
|
70
|
+
fail ArgumentError, 'invalid value for "brand_name" when calling VerificationProfilesApi.create_verification_profile, the character length must be great than or equal to 1.'
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if @api_client.config.client_side_validation && !opts[:'primary_color'].nil? && opts[:'primary_color'].to_s.length > 7
|
|
74
|
+
fail ArgumentError, 'invalid value for "opts[:"primary_color"]" when calling VerificationProfilesApi.create_verification_profile, the character length must be smaller than or equal to 7.'
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if @api_client.config.client_side_validation && !opts[:'primary_color'].nil? && opts[:'primary_color'].to_s.length < 7
|
|
78
|
+
fail ArgumentError, 'invalid value for "opts[:"primary_color"]" when calling VerificationProfilesApi.create_verification_profile, the character length must be great than or equal to 7.'
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# resource path
|
|
82
|
+
local_var_path = '/api/valpha/verification-profiles'
|
|
83
|
+
|
|
84
|
+
# query parameters
|
|
85
|
+
query_params = opts[:query_params] || {}
|
|
86
|
+
|
|
87
|
+
# header parameters
|
|
88
|
+
header_params = opts[:header_params] || {}
|
|
89
|
+
# HTTP header 'Accept' (if needed)
|
|
90
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
|
91
|
+
# HTTP header 'Content-Type'
|
|
92
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
93
|
+
if !content_type.nil?
|
|
94
|
+
header_params['Content-Type'] = content_type
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# form parameters
|
|
98
|
+
form_params = opts[:form_params] || {}
|
|
99
|
+
form_params['Alias'] = _alias
|
|
100
|
+
form_params['BrandName'] = brand_name
|
|
101
|
+
form_params['PrimaryColor'] = opts[:'primary_color'] if !opts[:'primary_color'].nil?
|
|
102
|
+
form_params['Providers'] = @api_client.build_collection_param(opts[:'providers'], :multi) if !opts[:'providers'].nil?
|
|
103
|
+
form_params['Logo'] = opts[:'logo'] if !opts[:'logo'].nil?
|
|
104
|
+
|
|
105
|
+
# http body (model)
|
|
106
|
+
post_body = opts[:debug_body]
|
|
107
|
+
|
|
108
|
+
# return_type
|
|
109
|
+
return_type = opts[:debug_return_type] || 'CreateVerificationProfileResponse'
|
|
110
|
+
|
|
111
|
+
# auth_names
|
|
112
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
113
|
+
|
|
114
|
+
new_options = opts.merge(
|
|
115
|
+
:operation => :"VerificationProfilesApi.create_verification_profile",
|
|
116
|
+
:header_params => header_params,
|
|
117
|
+
:query_params => query_params,
|
|
118
|
+
:form_params => form_params,
|
|
119
|
+
:body => post_body,
|
|
120
|
+
:auth_names => auth_names,
|
|
121
|
+
:return_type => return_type
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
125
|
+
if @api_client.config.debugging
|
|
126
|
+
@api_client.config.logger.debug "API called: VerificationProfilesApi#create_verification_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
127
|
+
end
|
|
128
|
+
return data, status_code, headers
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Get Verification Profile
|
|
132
|
+
# Gets a specific verification profile by ID.
|
|
133
|
+
# @param id [String]
|
|
134
|
+
# @param [Hash] opts the optional parameters
|
|
135
|
+
# @return [VerificationProfileResponse]
|
|
136
|
+
def get_verification_profile_by_id(id, opts = {})
|
|
137
|
+
data, _status_code, _headers = get_verification_profile_by_id_with_http_info(id, opts)
|
|
138
|
+
data
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Get Verification Profile
|
|
142
|
+
# Gets a specific verification profile by ID.
|
|
143
|
+
# @param id [String]
|
|
144
|
+
# @param [Hash] opts the optional parameters
|
|
145
|
+
# @return [Array<(VerificationProfileResponse, Integer, Hash)>] VerificationProfileResponse data, response status code and response headers
|
|
146
|
+
def get_verification_profile_by_id_with_http_info(id, opts = {})
|
|
147
|
+
if @api_client.config.debugging
|
|
148
|
+
@api_client.config.logger.debug 'Calling API: VerificationProfilesApi.get_verification_profile_by_id ...'
|
|
149
|
+
end
|
|
150
|
+
# verify the required parameter 'id' is set
|
|
151
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
152
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VerificationProfilesApi.get_verification_profile_by_id"
|
|
153
|
+
end
|
|
154
|
+
# resource path
|
|
155
|
+
local_var_path = '/api/valpha/verification-profiles/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
156
|
+
|
|
157
|
+
# query parameters
|
|
158
|
+
query_params = opts[:query_params] || {}
|
|
159
|
+
|
|
160
|
+
# header parameters
|
|
161
|
+
header_params = opts[:header_params] || {}
|
|
162
|
+
# HTTP header 'Accept' (if needed)
|
|
163
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
|
164
|
+
|
|
165
|
+
# form parameters
|
|
166
|
+
form_params = opts[:form_params] || {}
|
|
167
|
+
|
|
168
|
+
# http body (model)
|
|
169
|
+
post_body = opts[:debug_body]
|
|
170
|
+
|
|
171
|
+
# return_type
|
|
172
|
+
return_type = opts[:debug_return_type] || 'VerificationProfileResponse'
|
|
173
|
+
|
|
174
|
+
# auth_names
|
|
175
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
176
|
+
|
|
177
|
+
new_options = opts.merge(
|
|
178
|
+
:operation => :"VerificationProfilesApi.get_verification_profile_by_id",
|
|
179
|
+
:header_params => header_params,
|
|
180
|
+
:query_params => query_params,
|
|
181
|
+
:form_params => form_params,
|
|
182
|
+
:body => post_body,
|
|
183
|
+
:auth_names => auth_names,
|
|
184
|
+
:return_type => return_type
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
188
|
+
if @api_client.config.debugging
|
|
189
|
+
@api_client.config.logger.debug "API called: VerificationProfilesApi#get_verification_profile_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
190
|
+
end
|
|
191
|
+
return data, status_code, headers
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# List Verification Profiles
|
|
195
|
+
# List the verification profiles for the current organization and environment.
|
|
196
|
+
# @param [Hash] opts the optional parameters
|
|
197
|
+
# @option opts [Integer] :page (default to 1)
|
|
198
|
+
# @option opts [Integer] :page_size Size of the list to be returned. Accepted range from 1 to 100 (default to 20)
|
|
199
|
+
# @return [ListVerificationProfilesResponse]
|
|
200
|
+
def list_verification_profiles(opts = {})
|
|
201
|
+
data, _status_code, _headers = list_verification_profiles_with_http_info(opts)
|
|
202
|
+
data
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# List Verification Profiles
|
|
206
|
+
# List the verification profiles for the current organization and environment.
|
|
207
|
+
# @param [Hash] opts the optional parameters
|
|
208
|
+
# @option opts [Integer] :page (default to 1)
|
|
209
|
+
# @option opts [Integer] :page_size Size of the list to be returned. Accepted range from 1 to 100 (default to 20)
|
|
210
|
+
# @return [Array<(ListVerificationProfilesResponse, Integer, Hash)>] ListVerificationProfilesResponse data, response status code and response headers
|
|
211
|
+
def list_verification_profiles_with_http_info(opts = {})
|
|
212
|
+
if @api_client.config.debugging
|
|
213
|
+
@api_client.config.logger.debug 'Calling API: VerificationProfilesApi.list_verification_profiles ...'
|
|
214
|
+
end
|
|
215
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 2147483647
|
|
216
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling VerificationProfilesApi.list_verification_profiles, must be smaller than or equal to 2147483647.'
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
220
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling VerificationProfilesApi.list_verification_profiles, must be greater than or equal to 1.'
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
|
|
224
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling VerificationProfilesApi.list_verification_profiles, must be smaller than or equal to 100.'
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
228
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling VerificationProfilesApi.list_verification_profiles, must be greater than or equal to 1.'
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# resource path
|
|
232
|
+
local_var_path = '/api/valpha/verification-profiles'
|
|
233
|
+
|
|
234
|
+
# query parameters
|
|
235
|
+
query_params = opts[:query_params] || {}
|
|
236
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
237
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
238
|
+
|
|
239
|
+
# header parameters
|
|
240
|
+
header_params = opts[:header_params] || {}
|
|
241
|
+
# HTTP header 'Accept' (if needed)
|
|
242
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
|
243
|
+
|
|
244
|
+
# form parameters
|
|
245
|
+
form_params = opts[:form_params] || {}
|
|
246
|
+
|
|
247
|
+
# http body (model)
|
|
248
|
+
post_body = opts[:debug_body]
|
|
249
|
+
|
|
250
|
+
# return_type
|
|
251
|
+
return_type = opts[:debug_return_type] || 'ListVerificationProfilesResponse'
|
|
252
|
+
|
|
253
|
+
# auth_names
|
|
254
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
255
|
+
|
|
256
|
+
new_options = opts.merge(
|
|
257
|
+
:operation => :"VerificationProfilesApi.list_verification_profiles",
|
|
258
|
+
:header_params => header_params,
|
|
259
|
+
:query_params => query_params,
|
|
260
|
+
:form_params => form_params,
|
|
261
|
+
:body => post_body,
|
|
262
|
+
:auth_names => auth_names,
|
|
263
|
+
:return_type => return_type
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
267
|
+
if @api_client.config.debugging
|
|
268
|
+
@api_client.config.logger.debug "API called: VerificationProfilesApi#list_verification_profiles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
269
|
+
end
|
|
270
|
+
return data, status_code, headers
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
end
|