File

src/issuer/issuance/oid4vci/dto/deferred-credential-request.dto.ts

Description

DTO for the Deferred Credential Request.

According to OID4VCI Section 9.1, the request MUST include a transaction_id that was previously returned by the Credential Endpoint.

See https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#name-deferred-credential-request

Index

Properties

Properties

transaction_id
Type : string
Decorators :
@ApiProperty({description: 'The transaction identifier previously returned by the Credential Endpoint', example: '8xLOxBtZp8'})
@IsString()

The transaction identifier returned by the Credential Endpoint.

import { ApiProperty } from "@nestjs/swagger";
import { IsString } from "class-validator";

/**
 * DTO for the Deferred Credential Request.
 *
 * According to OID4VCI Section 9.1, the request MUST include a `transaction_id`
 * that was previously returned by the Credential Endpoint.
 *
 * @see https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#name-deferred-credential-request
 */
export class DeferredCredentialRequestDto {
    /**
     * The transaction identifier returned by the Credential Endpoint.
     */
    @ApiProperty({
        description:
            "The transaction identifier previously returned by the Credential Endpoint",
        example: "8xLOxBtZp8",
    })
    @IsString()
    transaction_id!: string;
}

results matching ""

    No results matching ""