Table of Contents

Interface IInvoiceStorageFoundationService

Namespace
arolariu.Backend.Domain.Invoices.Services.Foundation.InvoiceStorage
Assembly
arolariu.Backend.Domain.Invoices.dll

The invoice storage foundation service interface represents the foundation storage service for the invoice domain.

public interface IInvoiceStorageFoundationService

Methods

CreateInvoiceObject(Invoice)

Creates an invoice object.

Task<Invoice> CreateInvoiceObject(Invoice invoice)

Parameters

invoice Invoice

Returns

Task<Invoice>

DeleteInvoiceObject(Guid)

Deletes an invoice object.

Task DeleteInvoiceObject(Guid identifier)

Parameters

identifier Guid

Returns

Task

DeleteInvoiceObject(Guid, Guid)

Deletes an invoice object.

Task DeleteInvoiceObject(Guid identifier, Guid userIdentifier)

Parameters

identifier Guid
userIdentifier Guid

Returns

Task

ReadAllInvoiceObjects()

Reads all invoice objects.

Task<IEnumerable<Invoice>> ReadAllInvoiceObjects()

Returns

Task<IEnumerable<Invoice>>

ReadAllInvoiceObjects(Guid)

Reads all invoice objects.

Task<IEnumerable<Invoice>> ReadAllInvoiceObjects(Guid userIdentifier)

Parameters

userIdentifier Guid

Returns

Task<IEnumerable<Invoice>>

ReadInvoiceObject(Guid)

Reads an invoice object.

Task<Invoice> ReadInvoiceObject(Guid identifier)

Parameters

identifier Guid

Returns

Task<Invoice>

ReadInvoiceObject(Guid, Guid)

Reads an invoice object.

Task<Invoice> ReadInvoiceObject(Guid identifier, Guid userIdentifier)

Parameters

identifier Guid
userIdentifier Guid

Returns

Task<Invoice>

UpdateInvoiceObject(Guid, Invoice)

Updates an invoice object.

Task<Invoice> UpdateInvoiceObject(Guid invoiceIdentifier, Invoice updatedInvoice)

Parameters

invoiceIdentifier Guid
updatedInvoice Invoice

Returns

Task<Invoice>

UpdateInvoiceObject(Invoice, Invoice)

Updates an invoice object.

Task<Invoice> UpdateInvoiceObject(Invoice currentInvoice, Invoice updatedInvoice)

Parameters

currentInvoice Invoice
updatedInvoice Invoice

Returns

Task<Invoice>