Struct CreateInvoiceDto
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
GuidPhotoIdentifier
GuidPhotoLocation
UriPhotoMetadata
IDictionary<string, object>
Properties
PhotoIdentifier
public Guid PhotoIdentifier { get; init; }
Property Value
PhotoLocation
public Uri PhotoLocation { get; init; }
Property Value
PhotoMetadata
public IDictionary<string, object> PhotoMetadata { get; init; }
Property Value
UserIdentifier
public Guid UserIdentifier { get; init; }
Property Value
Methods
ToInvoice()
Method used to convert the DTO to an invoice.
public Invoice ToInvoice()