Interface IInvoiceProcessingService
- Assembly
- arolariu.Backend.Domain.Invoices.dll
This interface represents the invoice processing service.
public interface IInvoiceProcessingService
Methods
AddProduct(Guid, Product)
Adds a product to an invoice.
Task<Invoice> AddProduct(Guid invoiceIdentifier, Product product)
Parameters
Returns
AddProduct(Invoice, Product)
Adds a product to an invoice.
Task<Invoice> AddProduct(Invoice invoice, Product product)
Parameters
Returns
AnalyzeInvoice(Guid, Guid, AnalysisOptions)
Analyze an invoice.
Task AnalyzeInvoice(Guid identifier, Guid userIdentifier, AnalysisOptions options)
Parameters
identifier
GuiduserIdentifier
Guidoptions
AnalysisOptions
Returns
AnalyzeInvoice(Guid, AnalysisOptions)
Analyze an invoice.
Task AnalyzeInvoice(Guid identifier, AnalysisOptions options)
Parameters
identifier
Guidoptions
AnalysisOptions
Returns
AnalyzeInvoice(Invoice, AnalysisOptions)
Analyze an invoice.
Task AnalyzeInvoice(Invoice invoice, AnalysisOptions options)
Parameters
invoice
Invoiceoptions
AnalysisOptions
Returns
CreateInvoice(Invoice)
Creates an invoice object.
Task<Invoice> CreateInvoice(Invoice invoice)
Parameters
invoice
Invoice
Returns
CreateMerchant(Merchant)
Creates a merchant object.
Task<Merchant> CreateMerchant(Merchant merchant)
Parameters
merchant
Merchant
Returns
DeleteInvoice(Guid)
Deletes an invoice object, given only its identifier. This method should be called by superusers only.
Task DeleteInvoice(Guid identifier)
Parameters
identifier
Guid
Returns
DeleteInvoice(Guid, Guid)
Deletes an invoice object, given its identifier and the user identifier.
Task DeleteInvoice(Guid identifier, Guid userIdentifier)
Parameters
Returns
DeleteMerchant(Guid)
Deletes a merchant object, given only its identifier. This method should be called by superusers only.
Task DeleteMerchant(Guid identifier)
Parameters
identifier
Guid
Returns
DeleteMerchant(Guid, Guid)
Deletes a merchant object.
Task DeleteMerchant(Guid identifier, Guid parentCompanyId)
Parameters
Returns
DeleteProduct(Guid, string)
Deletes a product.
Task<Invoice> DeleteProduct(Guid invoiceIdentifier, string productName)
Parameters
Returns
DeleteProduct(Guid, Product)
Deletes a product.
Task<Invoice> DeleteProduct(Guid invoiceIdentifier, Product product)
Parameters
Returns
DeleteProduct(Invoice, string)
Deletes a product.
Task<Invoice> DeleteProduct(Invoice invoice, string productName)
Parameters
Returns
DeleteProduct(Invoice, Product)
Deletes a product.
Task<Invoice> DeleteProduct(Invoice invoice, Product product)
Parameters
Returns
GetProduct(Guid, string)
Gets the products from an invoice.
Task<Product> GetProduct(Guid invoiceIdentifier, string productName)
Parameters
Returns
GetProduct(Invoice, string)
Gets a product from an invoice.
Task<Product> GetProduct(Invoice invoice, string productName)
Parameters
Returns
GetProducts(Guid)
Gets the products from an invoice.
Task<IEnumerable<Product>> GetProducts(Guid invoiceIdentifier)
Parameters
invoiceIdentifier
Guid
Returns
GetProducts(Guid, Guid)
Gets the products from an invoice.
Task<IEnumerable<Product>> GetProducts(Guid invoiceIdentifier, Guid userIdentifier)
Parameters
Returns
GetProducts(Invoice)
Gets the products from an invoice.
Task<IEnumerable<Product>> GetProducts(Invoice invoice)
Parameters
invoice
Invoice
Returns
ReadInvoice(Guid)
Reads an invoice object, given only its identifier.
Task<Invoice> ReadInvoice(Guid identifier)
Parameters
identifier
Guid
Returns
ReadInvoice(Guid, Guid)
Reads an invoice object, given its identifier and the user identifier.
Task<Invoice> ReadInvoice(Guid identifier, Guid userIdentifier)
Parameters
Returns
ReadInvoices()
Reads all invoice objects, regardless of the user identifier. This method should be called by superusers only.
Task<IEnumerable<Invoice>> ReadInvoices()
Returns
ReadInvoices(Guid)
Reads all invoice objects, given the user identifier (partition key).
Task<IEnumerable<Invoice>> ReadInvoices(Guid userIdentifier)
Parameters
userIdentifier
Guid
Returns
ReadMerchant(Guid)
Reads a merchant object, given only its identifier.
Task<Merchant> ReadMerchant(Guid identifier)
Parameters
identifier
Guid
Returns
ReadMerchant(Guid, Guid)
Reads a merchant object, given its identifier and the parent company identifier.
Task<Merchant> ReadMerchant(Guid identifier, Guid parentCompanyId)
Parameters
Returns
ReadMerchants()
Reads all merchant objects, regardless of the parent company identifier. This method should be called by superusers only.
Task<IEnumerable<Merchant>> ReadMerchants()
Returns
ReadMerchants(Guid)
Reads all merchant objects.
Task<IEnumerable<Merchant>> ReadMerchants(Guid parentCompanyId)
Parameters
parentCompanyId
Guid
Returns
UpdateInvoice(Guid, Invoice)
Updates an invoice object, given only its identifier.
Task<Invoice> UpdateInvoice(Guid invoiceIdentifier, Invoice updatedInvoice)
Parameters
Returns
UpdateMerchant(Guid, Merchant)
Updates a merchant object.
Task<Merchant> UpdateMerchant(Guid identifier, Merchant updatedMerchant)