Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update client all #107

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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 |
| ------------------ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ----------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| ---------------------------------------------------------------------------- | ----------------------------------------------- | ----------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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] |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| ---------------------------------------------------------------- | ----------------------------------- | ----------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| ------------------------------------------------- | --------------------------------------------------- | ----------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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] |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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] |
Expand Down
2 changes: 1 addition & 1 deletion clients/dart/credential_issuance_client/doc/OfferApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| -------------------------------------------------------- | ------------------------------------------- | ----------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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] |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ----------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 &&
Expand All @@ -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;
Expand Down Expand Up @@ -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']),
Expand Down
Loading
Loading