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.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/docs/IntegrationStep.md +1 -1
  3. data/docs/ProviderContract.md +3 -1
  4. data/docs/ProviderHealth.md +15 -0
  5. data/docs/WellKnownApi.md +71 -0
  6. data/lib/trinsic_api/api/attachments_api.rb +1 -1
  7. data/lib/trinsic_api/api/network_api.rb +1 -1
  8. data/lib/trinsic_api/api/sessions_api.rb +1 -1
  9. data/lib/trinsic_api/api/well_known_api.rb +75 -0
  10. data/lib/trinsic_api/api_client.rb +8 -9
  11. data/lib/trinsic_api/api_error.rb +1 -1
  12. data/lib/trinsic_api/configuration.rb +1 -1
  13. data/lib/trinsic_api/models/aadhaar_input.rb +10 -4
  14. data/lib/trinsic_api/models/address.rb +10 -4
  15. data/lib/trinsic_api/models/attachment_access_keys.rb +20 -4
  16. data/lib/trinsic_api/models/bangladesh_national_id_input.rb +10 -4
  17. data/lib/trinsic_api/models/brazil_cpf_check_input.rb +10 -4
  18. data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +10 -4
  19. data/lib/trinsic_api/models/cancel_session_response.rb +20 -4
  20. data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +10 -4
  21. data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +40 -4
  22. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +10 -4
  23. data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +40 -4
  24. data/lib/trinsic_api/models/create_widget_session_request.rb +10 -4
  25. data/lib/trinsic_api/models/create_widget_session_response.rb +40 -4
  26. data/lib/trinsic_api/models/document_data.rb +10 -4
  27. data/lib/trinsic_api/models/document_scan_attachments.rb +10 -4
  28. data/lib/trinsic_api/models/document_type.rb +1 -1
  29. data/lib/trinsic_api/models/get_attachment_request.rb +10 -4
  30. data/lib/trinsic_api/models/get_attachment_response.rb +30 -4
  31. data/lib/trinsic_api/models/get_session_response.rb +20 -4
  32. data/lib/trinsic_api/models/get_session_result_request.rb +20 -4
  33. data/lib/trinsic_api/models/get_session_result_response.rb +20 -4
  34. data/lib/trinsic_api/models/http_validation_problem_details.rb +10 -4
  35. data/lib/trinsic_api/models/identity_data.rb +10 -4
  36. data/lib/trinsic_api/models/idin_input.rb +10 -4
  37. data/lib/trinsic_api/models/indonesia_nik_input.rb +20 -4
  38. data/lib/trinsic_api/models/integration_capability.rb +1 -1
  39. data/lib/trinsic_api/models/integration_launch_method.rb +1 -1
  40. data/lib/trinsic_api/models/integration_step.rb +30 -6
  41. data/lib/trinsic_api/models/kenya_nid_input.rb +20 -4
  42. data/lib/trinsic_api/models/language.rb +1 -1
  43. data/lib/trinsic_api/models/list_provider_contracts_response.rb +20 -4
  44. data/lib/trinsic_api/models/list_providers_response.rb +20 -4
  45. data/lib/trinsic_api/models/list_sessions_response.rb +40 -4
  46. data/lib/trinsic_api/models/mexico_curp_input.rb +10 -4
  47. data/lib/trinsic_api/models/mobile_id_input.rb +10 -4
  48. data/lib/trinsic_api/models/nigeria_nin_input.rb +20 -4
  49. data/lib/trinsic_api/models/order_direction.rb +1 -1
  50. data/lib/trinsic_api/models/person_data.rb +10 -4
  51. data/lib/trinsic_api/models/philippine_match_input.rb +10 -4
  52. data/lib/trinsic_api/models/philippine_qr_input.rb +10 -4
  53. data/lib/trinsic_api/models/problem_details.rb +10 -4
  54. data/lib/trinsic_api/models/provider_attachments.rb +10 -4
  55. data/lib/trinsic_api/models/provider_contract.rb +182 -9
  56. data/lib/trinsic_api/models/provider_health.rb +40 -0
  57. data/lib/trinsic_api/models/provider_info.rb +40 -4
  58. data/lib/trinsic_api/models/provider_information.rb +40 -4
  59. data/lib/trinsic_api/models/provider_input.rb +10 -4
  60. data/lib/trinsic_api/models/recommend_request.rb +10 -4
  61. data/lib/trinsic_api/models/recommend_response.rb +40 -4
  62. data/lib/trinsic_api/models/recommendation_info.rb +10 -4
  63. data/lib/trinsic_api/models/refresh_step_content_request.rb +10 -4
  64. data/lib/trinsic_api/models/refresh_step_content_response.rb +20 -4
  65. data/lib/trinsic_api/models/result_collection.rb +30 -4
  66. data/lib/trinsic_api/models/result_collection_method.rb +1 -1
  67. data/lib/trinsic_api/models/session.rb +60 -4
  68. data/lib/trinsic_api/models/session_error_code.rb +1 -1
  69. data/lib/trinsic_api/models/session_ordering.rb +1 -1
  70. data/lib/trinsic_api/models/sex.rb +1 -1
  71. data/lib/trinsic_api/models/smart_id_input.rb +10 -4
  72. data/lib/trinsic_api/models/south_africa_nid_input.rb +20 -4
  73. data/lib/trinsic_api/models/spid_input.rb +10 -4
  74. data/lib/trinsic_api/models/step_refresh_info.rb +40 -4
  75. data/lib/trinsic_api/models/sub_provider_metadata.rb +50 -4
  76. data/lib/trinsic_api/models/trinsic_test_database_lookup_input.rb +10 -4
  77. data/lib/trinsic_api/models/trinsic_test_sub_providers_input.rb +10 -4
  78. data/lib/trinsic_api/version.rb +2 -2
  79. data/lib/trinsic_api.rb +3 -1
  80. data/spec/api/attachments_api_spec.rb +1 -1
  81. data/spec/api/network_api_spec.rb +1 -1
  82. data/spec/api/sessions_api_spec.rb +1 -1
  83. data/spec/api/well_known_api_spec.rb +44 -0
  84. data/spec/models/aadhaar_input_spec.rb +1 -1
  85. data/spec/models/address_spec.rb +1 -1
  86. data/spec/models/attachment_access_keys_spec.rb +1 -1
  87. data/spec/models/bangladesh_national_id_input_spec.rb +1 -1
  88. data/spec/models/brazil_cpf_check_input_spec.rb +1 -1
  89. data/spec/models/brazil_digital_cnh_input_spec.rb +1 -1
  90. data/spec/models/cancel_session_response_spec.rb +1 -1
  91. data/spec/models/create_advanced_provider_session_request_spec.rb +1 -1
  92. data/spec/models/create_advanced_provider_session_response_spec.rb +1 -1
  93. data/spec/models/create_hosted_provider_session_request_spec.rb +1 -1
  94. data/spec/models/create_hosted_provider_session_response_spec.rb +1 -1
  95. data/spec/models/create_widget_session_request_spec.rb +1 -1
  96. data/spec/models/create_widget_session_response_spec.rb +1 -1
  97. data/spec/models/document_data_spec.rb +1 -1
  98. data/spec/models/document_scan_attachments_spec.rb +1 -1
  99. data/spec/models/document_type_spec.rb +1 -1
  100. data/spec/models/get_attachment_request_spec.rb +1 -1
  101. data/spec/models/get_attachment_response_spec.rb +1 -1
  102. data/spec/models/get_session_response_spec.rb +1 -1
  103. data/spec/models/get_session_result_request_spec.rb +1 -1
  104. data/spec/models/get_session_result_response_spec.rb +1 -1
  105. data/spec/models/http_validation_problem_details_spec.rb +1 -1
  106. data/spec/models/identity_data_spec.rb +1 -1
  107. data/spec/models/idin_input_spec.rb +1 -1
  108. data/spec/models/indonesia_nik_input_spec.rb +1 -1
  109. data/spec/models/integration_capability_spec.rb +1 -1
  110. data/spec/models/integration_launch_method_spec.rb +1 -1
  111. data/spec/models/integration_step_spec.rb +1 -1
  112. data/spec/models/kenya_nid_input_spec.rb +1 -1
  113. data/spec/models/language_spec.rb +1 -1
  114. data/spec/models/list_provider_contracts_response_spec.rb +1 -1
  115. data/spec/models/list_providers_response_spec.rb +1 -1
  116. data/spec/models/list_sessions_response_spec.rb +1 -1
  117. data/spec/models/mexico_curp_input_spec.rb +1 -1
  118. data/spec/models/mobile_id_input_spec.rb +1 -1
  119. data/spec/models/nigeria_nin_input_spec.rb +1 -1
  120. data/spec/models/order_direction_spec.rb +1 -1
  121. data/spec/models/person_data_spec.rb +1 -1
  122. data/spec/models/philippine_match_input_spec.rb +1 -1
  123. data/spec/models/philippine_qr_input_spec.rb +1 -1
  124. data/spec/models/problem_details_spec.rb +1 -1
  125. data/spec/models/provider_attachments_spec.rb +1 -1
  126. data/spec/models/provider_contract_spec.rb +7 -1
  127. data/spec/models/provider_health_spec.rb +30 -0
  128. data/spec/models/provider_info_spec.rb +1 -1
  129. data/spec/models/provider_information_spec.rb +1 -1
  130. data/spec/models/provider_input_spec.rb +1 -1
  131. data/spec/models/recommend_request_spec.rb +1 -1
  132. data/spec/models/recommend_response_spec.rb +1 -1
  133. data/spec/models/recommendation_info_spec.rb +1 -1
  134. data/spec/models/refresh_step_content_request_spec.rb +1 -1
  135. data/spec/models/refresh_step_content_response_spec.rb +1 -1
  136. data/spec/models/result_collection_method_spec.rb +1 -1
  137. data/spec/models/result_collection_spec.rb +1 -1
  138. data/spec/models/session_error_code_spec.rb +1 -1
  139. data/spec/models/session_ordering_spec.rb +1 -1
  140. data/spec/models/session_spec.rb +1 -1
  141. data/spec/models/sex_spec.rb +1 -1
  142. data/spec/models/smart_id_input_spec.rb +1 -1
  143. data/spec/models/south_africa_nid_input_spec.rb +1 -1
  144. data/spec/models/spid_input_spec.rb +1 -1
  145. data/spec/models/step_refresh_info_spec.rb +1 -1
  146. data/spec/models/sub_provider_metadata_spec.rb +1 -1
  147. data/spec/models/trinsic_test_database_lookup_input_spec.rb +1 -1
  148. data/spec/models/trinsic_test_sub_providers_input_spec.rb +1 -1
  149. data/spec/spec_helper.rb +1 -1
  150. data/trinsic_api.gemspec +1 -1
  151. metadata +62 -54
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa14bb9bd00b017345d4f218e0c95a581467789d125e6abfaca16861b116c9cf
4
- data.tar.gz: a5cd42b42828d252fecf19bf85464276a39a77302194601f83bea2582e1e6b67
3
+ metadata.gz: c4f23ecceaf01bbc42f2fa2089457277132aa516d5820a316da9d9ea75f3cfb6
4
+ data.tar.gz: 10caa0a74ff4142f0c536c2a95adc0cc04888d80f2f3fd357af99a87a9c2560b
5
5
  SHA512:
6
- metadata.gz: '0699ad53215ddbea96c703f1f5bcecba64965b8b1dc23838497ac82cb5f45982ea728522d939f229d25c5f06664ee5dfbe180a1af30c4bac6bc7d880fcbd41d6'
7
- data.tar.gz: a27e0981198674c648dde26d63bd4a70fffbdd0f9e94a63c5e64c1ea192e3dab0c702472afb409203a8baecbca24fee80f698187281581d9d414db4825427632
6
+ metadata.gz: 4024fb98584c58df4d3cb55d4e3330a68db481f8ce495b9ff7ae669a0105454a9902bd4eb8d036b555f125d1838acd590c1e94d50c5127905a866c58958c76e5
7
+ data.tar.gz: c3766c8b8116a393e621f711ba475fb3659f48874d7531ef810884d3285f84cc5628d652b7262c33664e2e1a0572ee83e6e62fffd16277a5957e6d03d90b3b4d
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **method** | [**IntegrationLaunchMethod**](IntegrationLaunchMethod.md) | The launch method to perform | |
8
8
  | **content** | **String** | Step type-specific content related to the step: a URL for `LaunchBrowser`, a deeplink for `DeeplinkToMobile` or a string to show to the user for `ShowContent`. | |
9
- | **refresh** | [**StepRefreshInfo**](StepRefreshInfo.md) | If non-null, contains metadata about how to refresh the value of `content`. | |
9
+ | **refresh** | [**StepRefreshInfo**](StepRefreshInfo.md) | If non-null, contains metadata about how to refresh the value of `content`. | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -19,6 +19,7 @@
19
19
  | **has_trinsic_interface** | **Boolean** | Whether there exists a Trinsic-hosted UI for this Provider. This is `true` for any Provider which is not a simple, OIDC-like redirect flow. | |
20
20
  | **supports_advanced_provider_sessions** | **Boolean** | Whether this Provider can be fully whitelabeled/OEMed through the Advanced Provider Sessions API. If `false`, the Provider may still be launched through Advanced Provider Sessions; however, it will necessarily require a Trinsic-hosted UI to function. | |
21
21
  | **sub_providers** | [**Array<SubProviderMetadata>**](SubProviderMetadata.md) | 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. | [optional] |
22
+ | **status** | [**ProviderHealth**](ProviderHealth.md) | 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. | |
22
23
 
23
24
  ## Example
24
25
 
@@ -40,7 +41,8 @@ instance = TrinsicApi::ProviderContract.new(
40
41
  requires_input: false,
41
42
  has_trinsic_interface: true,
42
43
  supports_advanced_provider_sessions: true,
43
- sub_providers: null
44
+ sub_providers: null,
45
+ status: null
44
46
  )
45
47
  ```
46
48
 
@@ -0,0 +1,15 @@
1
+ # TrinsicApi::ProviderHealth
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'trinsic_api'
12
+
13
+ instance = TrinsicApi::ProviderHealth.new()
14
+ ```
15
+
@@ -0,0 +1,71 @@
1
+ # TrinsicApi::WellKnownApi
2
+
3
+ All URIs are relative to *https://api.trinsic.id*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**interac_jwk**](WellKnownApi.md#interac_jwk) | **GET** /api/integrations/v1/interac/.well-known/jwks.json | |
8
+
9
+
10
+ ## interac_jwk
11
+
12
+ > interac_jwk
13
+
14
+
15
+
16
+ ### Examples
17
+
18
+ ```ruby
19
+ require 'time'
20
+ require 'trinsic_api'
21
+ # setup authorization
22
+ TrinsicApi.configure do |config|
23
+ # Configure Bearer authorization: Bearer
24
+ config.access_token = 'YOUR_BEARER_TOKEN'
25
+ end
26
+
27
+ api_instance = TrinsicApi::WellKnownApi.new
28
+
29
+ begin
30
+
31
+ api_instance.interac_jwk
32
+ rescue TrinsicApi::ApiError => e
33
+ puts "Error when calling WellKnownApi->interac_jwk: #{e}"
34
+ end
35
+ ```
36
+
37
+ #### Using the interac_jwk_with_http_info variant
38
+
39
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
40
+
41
+ > <Array(nil, Integer, Hash)> interac_jwk_with_http_info
42
+
43
+ ```ruby
44
+ begin
45
+
46
+ data, status_code, headers = api_instance.interac_jwk_with_http_info
47
+ p status_code # => 2xx
48
+ p headers # => { ... }
49
+ p data # => nil
50
+ rescue TrinsicApi::ApiError => e
51
+ puts "Error when calling WellKnownApi->interac_jwk_with_http_info: #{e}"
52
+ end
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+ This endpoint does not need any parameter.
58
+
59
+ ### Return type
60
+
61
+ nil (empty response body)
62
+
63
+ ### Authorization
64
+
65
+ [Bearer](../README.md#Bearer)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: Not defined
70
+ - **Accept**: application/json
71
+
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,75 @@
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 WellKnownApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param [Hash] opts the optional parameters
23
+ # @return [nil]
24
+ def interac_jwk(opts = {})
25
+ interac_jwk_with_http_info(opts)
26
+ nil
27
+ end
28
+
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
31
+ def interac_jwk_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: WellKnownApi.interac_jwk ...'
34
+ end
35
+ # resource path
36
+ local_var_path = '/api/integrations/v1/interac/.well-known/jwks.json'
37
+
38
+ # query parameters
39
+ query_params = opts[:query_params] || {}
40
+
41
+ # header parameters
42
+ header_params = opts[:header_params] || {}
43
+ # HTTP header 'Accept' (if needed)
44
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
45
+
46
+ # form parameters
47
+ form_params = opts[:form_params] || {}
48
+
49
+ # http body (model)
50
+ post_body = opts[:debug_body]
51
+
52
+ # return_type
53
+ return_type = opts[:debug_return_type]
54
+
55
+ # auth_names
56
+ auth_names = opts[:debug_auth_names] || ['Bearer']
57
+
58
+ new_options = opts.merge(
59
+ :operation => :"WellKnownApi.interac_jwk",
60
+ :header_params => header_params,
61
+ :query_params => query_params,
62
+ :form_params => form_params,
63
+ :body => post_body,
64
+ :auth_names => auth_names,
65
+ :return_type => return_type
66
+ )
67
+
68
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
69
+ if @api_client.config.debugging
70
+ @api_client.config.logger.debug "API called: WellKnownApi#interac_jwk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
+ end
72
+ return data, status_code, headers
73
+ end
74
+ end
75
+ 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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -49,7 +49,8 @@ module TrinsicApi
49
49
  # the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
50
50
  def call_api(http_method, path, opts = {})
51
51
  request = build_request(http_method, path, opts)
52
- tempfile = download_file(request) if opts[:return_type] == 'File'
52
+ tempfile = nil
53
+ (download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
53
54
  response = request.run
54
55
 
55
56
  if @config.debugging
@@ -188,19 +189,17 @@ module TrinsicApi
188
189
  chunk.force_encoding(encoding)
189
190
  tempfile.write(chunk)
190
191
  end
191
- # run the request to ensure the tempfile is created successfully before returning it
192
- request.run
193
- if tempfile
192
+ request.on_complete do
193
+ if !tempfile
194
+ fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
195
+ end
194
196
  tempfile.close
195
197
  @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
196
198
  "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
197
199
  "will be deleted automatically with GC. It's also recommended to delete the temp file "\
198
200
  "explicitly with `tempfile.delete`"
199
- else
200
- fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
201
+ yield tempfile if block_given?
201
202
  end
202
-
203
- tempfile
204
203
  end
205
204
 
206
205
  # Check if the given MIME is a JSON MIME.
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -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.8.0
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
- attribute_map.values
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 (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::AadhaarInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ if (!acceptable_attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::AadhaarInput`. 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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -45,9 +45,14 @@ module TrinsicApi
45
45
  }
46
46
  end
47
47
 
48
+ # Returns attribute mapping this model knows about
49
+ def self.acceptable_attribute_map
50
+ attribute_map
51
+ end
52
+
48
53
  # Returns all the JSON keys this model knows about
49
54
  def self.acceptable_attributes
50
- attribute_map.values
55
+ acceptable_attribute_map.values
51
56
  end
52
57
 
53
58
  # Attribute type mapping.
@@ -86,9 +91,10 @@ module TrinsicApi
86
91
  end
87
92
 
88
93
  # check to see if the attribute exists and convert string to symbol for hash key
94
+ acceptable_attribute_map = self.class.acceptable_attribute_map
89
95
  attributes = attributes.each_with_object({}) { |(k, v), h|
90
- if (!self.class.attribute_map.key?(k.to_sym))
91
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::Address`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
+ if (!acceptable_attribute_map.key?(k.to_sym))
97
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::Address`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
92
98
  end
93
99
  h[k.to_sym] = v
94
100
  }
@@ -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.8.0
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
- attribute_map.values
46
+ acceptable_attribute_map.values
42
47
  end
43
48
 
44
49
  # Attribute type mapping.
@@ -70,9 +75,10 @@ module TrinsicApi
70
75
  end
71
76
 
72
77
  # check to see if the attribute exists and convert string to symbol for hash key
78
+ acceptable_attribute_map = self.class.acceptable_attribute_map
73
79
  attributes = attributes.each_with_object({}) { |(k, v), h|
74
- if (!self.class.attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::AttachmentAccessKeys`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ if (!acceptable_attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::AttachmentAccessKeys`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
82
  end
77
83
  h[k.to_sym] = v
78
84
  }
@@ -120,6 +126,16 @@ module TrinsicApi
120
126
  true
121
127
  end
122
128
 
129
+ # Custom attribute writer method with validation
130
+ # @param [Object] provider Value to be assigned
131
+ def provider=(provider)
132
+ if provider.nil?
133
+ fail ArgumentError, 'provider cannot be nil'
134
+ end
135
+
136
+ @provider = provider
137
+ end
138
+
123
139
  # Checks equality by comparing each attribute.
124
140
  # @param [Object] Object to be compared
125
141
  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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -37,9 +37,14 @@ module TrinsicApi
37
37
  }
38
38
  end
39
39
 
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
40
45
  # Returns all the JSON keys this model knows about
41
46
  def self.acceptable_attributes
42
- attribute_map.values
47
+ acceptable_attribute_map.values
43
48
  end
44
49
 
45
50
  # Attribute type mapping.
@@ -70,9 +75,10 @@ module TrinsicApi
70
75
  end
71
76
 
72
77
  # check to see if the attribute exists and convert string to symbol for hash key
78
+ acceptable_attribute_map = self.class.acceptable_attribute_map
73
79
  attributes = attributes.each_with_object({}) { |(k, v), h|
74
- if (!self.class.attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BangladeshNationalIdInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ if (!acceptable_attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BangladeshNationalIdInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
82
  end
77
83
  h[k.to_sym] = v
78
84
  }
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -25,9 +25,14 @@ module TrinsicApi
25
25
  }
26
26
  end
27
27
 
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
28
33
  # Returns all the JSON keys this model knows about
29
34
  def self.acceptable_attributes
30
- attribute_map.values
35
+ acceptable_attribute_map.values
31
36
  end
32
37
 
33
38
  # 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 (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilCpfCheckInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilCpfCheckInput`. 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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -37,9 +37,14 @@ module TrinsicApi
37
37
  }
38
38
  end
39
39
 
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
40
45
  # Returns all the JSON keys this model knows about
41
46
  def self.acceptable_attributes
42
- attribute_map.values
47
+ acceptable_attribute_map.values
43
48
  end
44
49
 
45
50
  # Attribute type mapping.
@@ -69,9 +74,10 @@ module TrinsicApi
69
74
  end
70
75
 
71
76
  # check to see if the attribute exists and convert string to symbol for hash key
77
+ acceptable_attribute_map = self.class.acceptable_attribute_map
72
78
  attributes = attributes.each_with_object({}) { |(k, v), h|
73
- if (!self.class.attribute_map.key?(k.to_sym))
74
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilDigitalCnhInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
+ if (!acceptable_attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilDigitalCnhInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
75
81
  end
76
82
  h[k.to_sym] = v
77
83
  }
@@ -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.8.0
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
- attribute_map.values
34
+ acceptable_attribute_map.values
30
35
  end
31
36
 
32
37
  # Attribute type mapping.
@@ -50,9 +55,10 @@ module TrinsicApi
50
55
  end
51
56
 
52
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
53
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
- if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CancelSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CancelSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
56
62
  end
57
63
  h[k.to_sym] = v
58
64
  }
@@ -84,6 +90,16 @@ module TrinsicApi
84
90
  true
85
91
  end
86
92
 
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] session Value to be assigned
95
+ def session=(session)
96
+ if session.nil?
97
+ fail ArgumentError, 'session cannot be nil'
98
+ end
99
+
100
+ @session = session
101
+ end
102
+
87
103
  # Checks equality by comparing each attribute.
88
104
  # @param [Object] Object to be compared
89
105
  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.8.0
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
- attribute_map.values
51
+ acceptable_attribute_map.values
47
52
  end
48
53
 
49
54
  # Attribute type mapping.
@@ -74,9 +79,10 @@ module TrinsicApi
74
79
  end
75
80
 
76
81
  # check to see if the attribute exists and convert string to symbol for hash key
82
+ acceptable_attribute_map = self.class.acceptable_attribute_map
77
83
  attributes = attributes.each_with_object({}) { |(k, v), h|
78
- if (!self.class.attribute_map.key?(k.to_sym))
79
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateAdvancedProviderSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
+ if (!acceptable_attribute_map.key?(k.to_sym))
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateAdvancedProviderSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
80
86
  end
81
87
  h[k.to_sym] = v
82
88
  }