Skip to content

Commit

Permalink
Update Connect Swagger (#1714)
Browse files Browse the repository at this point in the history
Co-authored-by: geel9 <[email protected]>
Co-authored-by: mewmba <[email protected]>
Co-authored-by: Joshua Coffey <[email protected]>
  • Loading branch information
4 people authored Jul 18, 2024
1 parent fae9232 commit 395da6d
Show file tree
Hide file tree
Showing 77 changed files with 2,675 additions and 754 deletions.
27 changes: 18 additions & 9 deletions connect/dart/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@
.travis.yml
README.md
analysis_options.yaml
doc/Address.md
doc/CancelSessionResponse.md
doc/CreateSessionRequest.md
doc/CreateSessionResponse.md
doc/DisclosedFields.md
doc/DisclosedFieldsRequest.md
doc/DocumentData.md
doc/FailureMessage.md
doc/GetSessionResponseV1.md
doc/GovernmentIDOptions.md
doc/GovernmentIDOptionsRequest.md
doc/IDVSessionState.md
doc/IdentityData.md
doc/ListSessionsResponse.md
doc/NormalizedIdentityData.md
doc/OrderDirection.md
doc/PersonData.md
doc/Session.md
doc/SessionFailCode.md
doc/SessionOrdering.md
Expand All @@ -33,17 +36,20 @@ lib/auth/authentication.dart
lib/auth/http_basic_auth.dart
lib/auth/http_bearer_auth.dart
lib/auth/oauth.dart
lib/model/address.dart
lib/model/cancel_session_response.dart
lib/model/create_session_request.dart
lib/model/create_session_response.dart
lib/model/disclosed_fields.dart
lib/model/disclosed_fields_request.dart
lib/model/document_data.dart
lib/model/failure_message.dart
lib/model/get_session_response_v1.dart
lib/model/government_id_options.dart
lib/model/government_id_options_request.dart
lib/model/identity_data.dart
lib/model/idv_session_state.dart
lib/model/list_sessions_response.dart
lib/model/normalized_identity_data.dart
lib/model/order_direction.dart
lib/model/person_data.dart
lib/model/session.dart
lib/model/session_fail_code.dart
lib/model/session_ordering.dart
Expand All @@ -52,17 +58,20 @@ lib/model/verification.dart
lib/model/verification_fail_code.dart
lib/model/verification_state.dart
pubspec.yaml
test/address_test.dart
test/cancel_session_response_test.dart
test/create_session_request_test.dart
test/create_session_response_test.dart
test/disclosed_fields_request_test.dart
test/disclosed_fields_test.dart
test/document_data_test.dart
test/failure_message_test.dart
test/get_session_response_v1_test.dart
test/government_id_options_request_test.dart
test/government_id_options_test.dart
test/identity_data_test.dart
test/idv_session_state_test.dart
test/list_sessions_response_test.dart
test/normalized_identity_data_test.dart
test/order_direction_test.dart
test/person_data_test.dart
test/session_fail_code_test.dart
test/session_ordering_test.dart
test/session_test.dart
Expand Down
9 changes: 6 additions & 3 deletions connect/dart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,20 @@ Class | Method | HTTP request | Description

## Documentation For Models

- [Address](doc//Address.md)
- [CancelSessionResponse](doc//CancelSessionResponse.md)
- [CreateSessionRequest](doc//CreateSessionRequest.md)
- [CreateSessionResponse](doc//CreateSessionResponse.md)
- [DisclosedFields](doc//DisclosedFields.md)
- [DisclosedFieldsRequest](doc//DisclosedFieldsRequest.md)
- [DocumentData](doc//DocumentData.md)
- [FailureMessage](doc//FailureMessage.md)
- [GetSessionResponseV1](doc//GetSessionResponseV1.md)
- [GovernmentIDOptions](doc//GovernmentIDOptions.md)
- [GovernmentIDOptionsRequest](doc//GovernmentIDOptionsRequest.md)
- [IDVSessionState](doc//IDVSessionState.md)
- [IdentityData](doc//IdentityData.md)
- [ListSessionsResponse](doc//ListSessionsResponse.md)
- [NormalizedIdentityData](doc//NormalizedIdentityData.md)
- [OrderDirection](doc//OrderDirection.md)
- [PersonData](doc//PersonData.md)
- [Session](doc//Session.md)
- [SessionFailCode](doc//SessionFailCode.md)
- [SessionOrdering](doc//SessionOrdering.md)
Expand Down
22 changes: 22 additions & 0 deletions connect/dart/doc/Address.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# TrinsicConnect.model.Address

## Load the model package
```dart
import 'package:TrinsicConnect/api.dart';
```

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**line1** | **String** | | [optional]
**line2** | **String** | | [optional]
**line3** | **String** | | [optional]
**city** | **String** | | [optional]
**state** | **String** | | [optional]
**postalCode** | **String** | | [optional]
**country** | **String** | | [optional]
**fullAddress** | **String** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion connect/dart/doc/CreateSessionRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:TrinsicConnect/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**governmentIdOptions** | [**GovernmentIDOptionsRequest**](GovernmentIDOptionsRequest.md) | | [optional]
**fields** | [**DisclosedFieldsRequest**](DisclosedFieldsRequest.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TrinsicConnect.model.GovernmentIDOptions
# TrinsicConnect.model.DisclosedFields

## Load the model package
```dart
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TrinsicConnect.model.GovernmentIDOptionsRequest
# TrinsicConnect.model.DisclosedFieldsRequest

## Load the model package
```dart
Expand Down
20 changes: 20 additions & 0 deletions connect/dart/doc/DocumentData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# TrinsicConnect.model.DocumentData

## Load the model package
```dart
import 'package:TrinsicConnect/api.dart';
```

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **String** | | [optional]
**number** | **String** | | [optional]
**issueDate** | **String** | | [optional]
**expirationDate** | **String** | | [optional]
**issuingCountry** | **String** | | [optional]
**portrait** | **String** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


17 changes: 17 additions & 0 deletions connect/dart/doc/IdentityData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# TrinsicConnect.model.IdentityData

## Load the model package
```dart
import 'package:TrinsicConnect/api.dart';
```

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**originatingIntegrationId** | **String** | | [optional]
**person** | [**PersonData**](PersonData.md) | | [optional]
**document** | [**DocumentData**](DocumentData.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TrinsicConnect.model.NormalizedIdentityData
# TrinsicConnect.model.PersonData

## Load the model package
```dart
Expand All @@ -8,14 +8,15 @@ import 'package:TrinsicConnect/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**idNumber** | **String** | | [optional]
**givenName** | **String** | | [optional]
**familyName** | **String** | | [optional]
**address** | **String** | | [optional]
**middleName** | **String** | | [optional]
**fullName** | **String** | | [optional]
**nationality** | **String** | | [optional]
**gender** | **String** | | [optional]
**phoneNumber** | **String** | | [optional]
**address** | [**Address**](Address.md) | | [optional]
**dateOfBirth** | **String** | | [optional]
**country** | **String** | | [optional]
**issueDate** | **String** | | [optional]
**expirationDate** | **String** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 0 additions & 1 deletion connect/dart/doc/Session.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Name | Type | Description | Notes
**state** | [**IDVSessionState**](IDVSessionState.md) | |
**failCode** | [**SessionFailCode**](SessionFailCode.md) | | [optional]
**verification** | [**Verification**](Verification.md) | |
**resultVp** | **String** | | [optional]
**created** | **int** | |
**updated** | **int** | |

Expand Down
4 changes: 2 additions & 2 deletions connect/dart/doc/Verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Name | Type | Description | Notes
**failCode** | [**VerificationFailCode**](VerificationFailCode.md) | | [optional]
**reused** | **bool** | |
**updated** | **int** | |
**governmentIdOptions** | [**GovernmentIDOptions**](GovernmentIDOptions.md) | |
**normalizedGovernmentIdData** | [**NormalizedIdentityData**](NormalizedIdentityData.md) | | [optional]
**disclosedFields** | [**DisclosedFields**](DisclosedFields.md) | |
**identityData** | [**IdentityData**](IdentityData.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
9 changes: 6 additions & 3 deletions connect/dart/lib/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@ part 'auth/http_bearer_auth.dart';

part 'api/sessions_api.dart';

part 'model/address.dart';
part 'model/cancel_session_response.dart';
part 'model/create_session_request.dart';
part 'model/create_session_response.dart';
part 'model/disclosed_fields.dart';
part 'model/disclosed_fields_request.dart';
part 'model/document_data.dart';
part 'model/failure_message.dart';
part 'model/get_session_response_v1.dart';
part 'model/government_id_options.dart';
part 'model/government_id_options_request.dart';
part 'model/idv_session_state.dart';
part 'model/identity_data.dart';
part 'model/list_sessions_response.dart';
part 'model/normalized_identity_data.dart';
part 'model/order_direction.dart';
part 'model/person_data.dart';
part 'model/session.dart';
part 'model/session_fail_code.dart';
part 'model/session_ordering.dart';
Expand Down
18 changes: 12 additions & 6 deletions connect/dart/lib/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,28 +229,34 @@ class ApiClient {
return valueString == 'true' || valueString == '1';
case 'DateTime':
return value is DateTime ? value : DateTime.tryParse(value);
case 'Address':
return Address.fromJson(value);
case 'CancelSessionResponse':
return CancelSessionResponse.fromJson(value);
case 'CreateSessionRequest':
return CreateSessionRequest.fromJson(value);
case 'CreateSessionResponse':
return CreateSessionResponse.fromJson(value);
case 'DisclosedFields':
return DisclosedFields.fromJson(value);
case 'DisclosedFieldsRequest':
return DisclosedFieldsRequest.fromJson(value);
case 'DocumentData':
return DocumentData.fromJson(value);
case 'FailureMessage':
return FailureMessage.fromJson(value);
case 'GetSessionResponseV1':
return GetSessionResponseV1.fromJson(value);
case 'GovernmentIDOptions':
return GovernmentIDOptions.fromJson(value);
case 'GovernmentIDOptionsRequest':
return GovernmentIDOptionsRequest.fromJson(value);
case 'IDVSessionState':
return IDVSessionStateTypeTransformer().decode(value);
case 'IdentityData':
return IdentityData.fromJson(value);
case 'ListSessionsResponse':
return ListSessionsResponse.fromJson(value);
case 'NormalizedIdentityData':
return NormalizedIdentityData.fromJson(value);
case 'OrderDirection':
return OrderDirectionTypeTransformer().decode(value);
case 'PersonData':
return PersonData.fromJson(value);
case 'Session':
return Session.fromJson(value);
case 'SessionFailCode':
Expand Down
Loading

0 comments on commit 395da6d

Please sign in to comment.