Table of Contents

Struct CreateInvoiceDto

Namespace
arolariu.Backend.Domain.Invoices.DTOs
Assembly
arolariu.Backend.Domain.Invoices.dll

The Invoice DTO class represents the invoice data transfer object. The invoice data transfer object is used to transfer the invoice data from the client to the server. The data is transferred as a JSON object. This object is then deserialized into the Invoice DTO class.

[Serializable]
public readonly record struct CreateInvoiceDto : IEquatable<CreateInvoiceDto>
Implements
Inherited Members

Constructors

CreateInvoiceDto(Guid, Guid, Uri, IDictionary<string, object>)

The Invoice DTO class represents the invoice data transfer object. The invoice data transfer object is used to transfer the invoice data from the client to the server. The data is transferred as a JSON object. This object is then deserialized into the Invoice DTO class.

public CreateInvoiceDto(Guid UserIdentifier, Guid PhotoIdentifier, Uri PhotoLocation, IDictionary<string, object> PhotoMetadata)

Parameters

UserIdentifier Guid
PhotoIdentifier Guid
PhotoLocation Uri
PhotoMetadata IDictionary<string, object>

Properties

PhotoIdentifier

public Guid PhotoIdentifier { get; init; }

Property Value

Guid

PhotoLocation

public Uri PhotoLocation { get; init; }

Property Value

Uri

PhotoMetadata

public IDictionary<string, object> PhotoMetadata { get; init; }

Property Value

IDictionary<string, object>

UserIdentifier

public Guid UserIdentifier { get; init; }

Property Value

Guid

Methods

ToInvoice()

Method used to convert the DTO to an invoice.

public Invoice ToInvoice()

Returns

Invoice