Skip to content

Commit

Permalink
feat: update client all (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrazhnyk authored Jun 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 5bb6c18 commit 6f93eb4
Showing 211 changed files with 1,064 additions and 677 deletions.
Original file line number Diff line number Diff line change
@@ -114,5 +114,3 @@ lib/model/update_issuance_config_input.dart
lib/model/vc_claimed_error.dart
lib/model/well_known_open_id_credential_issuer_response.dart
pubspec.yaml
test/issuance_config_dto_credential_supported_inner_test.dart
test/start_issuance_input_data_inner_meta_data_test.dart
2 changes: 1 addition & 1 deletion clients/dart/credential_issuance_client/README.md
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ try {

## Documentation for API Endpoints

All URIs are relative to _http://localhost_
All URIs are relative to *https://apse1.api.affinidi.io/cis*

| Class | Method | HTTP request | Description |
| ------------------ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ----------- |
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
import 'package:affinidi_tdk_credential_issuance_client/api.dart';
```

All URIs are relative to _http://localhost_
All URIs are relative to *https://apse1.api.affinidi.io/cis*

| Method | HTTP request | Description |
| ---------------------------------------------------------------------------- | ----------------------------------------------- | ----------- |
Original file line number Diff line number Diff line change
@@ -10,6 +10,8 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart';

| Name | Type | Description | Notes |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| **name** | **String** | | [optional] |
| **description** | **String** | | [optional] |
| **issuerWalletId** | **String** | Issuer Wallet id |
| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] |
| **format** | **String** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] |
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
import 'package:affinidi_tdk_credential_issuance_client/api.dart';
```

All URIs are relative to _http://localhost_
All URIs are relative to *https://apse1.api.affinidi.io/cis*

| Method | HTTP request | Description |
| ---------------------------------------------------------------- | ----------------------------------- | ----------- |
2 changes: 1 addition & 1 deletion clients/dart/credential_issuance_client/doc/IssuanceApi.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
import 'package:affinidi_tdk_credential_issuance_client/api.dart';
```

All URIs are relative to _http://localhost_
All URIs are relative to *https://apse1.api.affinidi.io/cis*

| Method | HTTP request | Description |
| ------------------------------------------------- | --------------------------------------------------- | ----------- |
Original file line number Diff line number Diff line change
@@ -11,6 +11,8 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart';
| Name | Type | Description | Notes |
| --------------------------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| **id** | **String** | | [optional] |
| **name** | **String** | | [optional] |
| **description** | **String** | | [optional] |
| **issuerDid** | **String** | Issuer DID | [optional] |
| **issuerWalletId** | **String** | Issuer Wallet id | [optional] |
| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] |
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart';
| Name | Type | Description | Notes |
| --------------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| **id** | **String** | |
| **name** | **String** | | [optional] |
| **issuerDid** | **String** | Issuer DID | [optional] |
| **issuerWalletId** | **String** | Issuer Wallet id | [optional] |
| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] |
2 changes: 1 addition & 1 deletion clients/dart/credential_issuance_client/doc/OfferApi.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
import 'package:affinidi_tdk_credential_issuance_client/api.dart';
```

All URIs are relative to _http://localhost_
All URIs are relative to *https://apse1.api.affinidi.io/cis*

| Method | HTTP request | Description |
| -------------------------------------------------------- | ------------------------------------------- | ----------- |
Original file line number Diff line number Diff line change
@@ -10,6 +10,8 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart';

| Name | Type | Description | Notes |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| **name** | **String** | | [optional] |
| **description** | **String** | | [optional] |
| **issuerWalletId** | **String** | Issuer Wallet id | [optional] |
| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] |
| **format** | **String** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] |
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
import 'package:affinidi_tdk_credential_issuance_client/api.dart';
```

All URIs are relative to _http://localhost_
All URIs are relative to *https://apse1.api.affinidi.io/cis*

| Method | HTTP request | Description |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ----------- |
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
part of openapi.api;

class ApiClient {
ApiClient({this.basePath = 'http://localhost', this.authentication,});
ApiClient({this.basePath = 'https://apse1.api.affinidi.io/cis', this.authentication,});

final String basePath;
final Authentication? authentication;
Original file line number Diff line number Diff line change
@@ -13,13 +13,31 @@ part of openapi.api;
class CreateIssuanceConfigInput {
/// Returns a new [CreateIssuanceConfigInput] instance.
CreateIssuanceConfigInput({
this.name,
this.description,
required this.issuerWalletId,
this.credentialOfferDuration,
this.format,
this.credentialSupported = const [],
this.issuerMetadata = const {},
});

///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? name;

///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? description;

/// Issuer Wallet id
String issuerWalletId;

@@ -45,6 +63,8 @@ class CreateIssuanceConfigInput {

@override
bool operator ==(Object other) => identical(this, other) || other is CreateIssuanceConfigInput &&
other.name == name &&
other.description == description &&
other.issuerWalletId == issuerWalletId &&
other.credentialOfferDuration == credentialOfferDuration &&
other.format == format &&
@@ -54,17 +74,29 @@ class CreateIssuanceConfigInput {
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(name == null ? 0 : name!.hashCode) +
(description == null ? 0 : description!.hashCode) +
(issuerWalletId.hashCode) +
(credentialOfferDuration == null ? 0 : credentialOfferDuration!.hashCode) +
(format == null ? 0 : format!.hashCode) +
(credentialSupported.hashCode) +
(issuerMetadata.hashCode);

@override
String toString() => 'CreateIssuanceConfigInput[issuerWalletId=$issuerWalletId, credentialOfferDuration=$credentialOfferDuration, format=$format, credentialSupported=$credentialSupported, issuerMetadata=$issuerMetadata]';
String toString() => 'CreateIssuanceConfigInput[name=$name, description=$description, issuerWalletId=$issuerWalletId, credentialOfferDuration=$credentialOfferDuration, format=$format, credentialSupported=$credentialSupported, issuerMetadata=$issuerMetadata]';

Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
json[r'issuerWalletId'] = this.issuerWalletId;
if (this.credentialOfferDuration != null) {
json[r'credentialOfferDuration'] = this.credentialOfferDuration;
@@ -100,6 +132,8 @@ class CreateIssuanceConfigInput {
}());

return CreateIssuanceConfigInput(
name: mapValueOfType<String>(json, r'name'),
description: mapValueOfType<String>(json, r'description'),
issuerWalletId: mapValueOfType<String>(json, r'issuerWalletId')!,
credentialOfferDuration: mapValueOfType<int>(json, r'credentialOfferDuration'),
format: CreateIssuanceConfigInputFormatEnum.fromJson(json[r'format']),
Loading
Oops, something went wrong.

0 comments on commit 6f93eb4

Please sign in to comment.