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

Transfer history model #359

Merged
merged 8 commits into from
May 31, 2023
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Copyright (c) 2022 sovity GmbH
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* sovity GmbH - initial API and implementation
*
*/

package de.sovity.edc.ext.wrapper.api.ui.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.OffsetDateTime;

@Data
@Schema(description = "Transfer History Entry for Transfer History Page")
public class TransferHistoryEntry {
@Schema(description = "Transfer Process ID", requiredMode = Schema.RequiredMode.REQUIRED)
private String transferProcessId;

@Schema(description = "Created Date", requiredMode = Schema.RequiredMode.REQUIRED)
private OffsetDateTime createdDate;

@Schema(description = "Last Change Date", requiredMode = Schema.RequiredMode.REQUIRED)
private OffsetDateTime lastUpdatedDate;

@Schema(description = "Transfer History State", requiredMode = Schema.RequiredMode.REQUIRED)
private TransferProcessState state;

@Schema(description = "Contract Agreement ID", requiredMode = Schema.RequiredMode.REQUIRED)
private String contractAgreementId;

@Schema(description = "Incoming vs Outgoing", requiredMode = Schema.RequiredMode.REQUIRED)
private ContractAgreementDirection direction;

@Schema(description = "Other Connector's Endpoint", requiredMode = Schema.RequiredMode.REQUIRED)
private String counterPartyConnectorEndpoint;

@Schema(description = "Asset Name", requiredMode = Schema.RequiredMode.REQUIRED)
private String assetName;

@Schema(description = "Asset ID", requiredMode = Schema.RequiredMode.REQUIRED)
private String assetId;

@Schema(description = "Error Message")
private String errorMessage;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2022 sovity GmbH
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* sovity GmbH - initial API and implementation
*
*/

package de.sovity.edc.ext.wrapper.api.ui.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Data
@AllArgsConstructor
public class TransferHistoryPage {
@Schema(description = "Transfer History Page Entries", requiredMode = Schema.RequiredMode.REQUIRED)
private List<TransferHistoryEntry> transferEntries;
}